Hi all!
i got following problem
I have a xml file as input file and a corresponding xsl file which creats a simple txt file.
First of all the xml:
Code:
<componentlist>
<ccb>
<ip>10.10.21.100</ip>
<ip>10.10.11.200</ip>
</ccb>
<componentlist>
and the xsl:
Code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" encoding="ISO-8859-1" indent="no" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:text>
RunAsDaemon: yes
</xsl:text>
<xsl:for-each select="/componentlist/ccb/ip">
<xsl:text>ip = </xsl:text><xsl:value-of select="/componentlist/ccb/ip"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
When i create the output file i will always get the same content
like this:
ip = 10.10.21.100
ip = 10.10.21.100
What have i to do to get something like this:
ip = 10.10.21.100
ip = 10.10.11.200
i tried some things like * or // but it wont really works :(
Could you please help me, it should be a trivial problem for you^^
Many thanks
and best regards
Frank