hi,
I am manipulating some xml from an asp file using some xsl transformation. I was using the same estructure other times but in this case there's something wrong with the 'for-each' loop because I retrieve nothing.
This is the xml data:
<return>
<row>
<NativeName>English, United States</NativeName>
<Enum>1</Enum>
</row>
<row>
<NativeName>Deutsch, German, Germany</NativeName>
<Enum>3</Enum>
</row>
</return>
if I apply the following:
<xsl:stylesheet xmlns:xsl=' version='1.0'>
<xsl:template match='/return'>
<xsl:value-of select='row/NativeName' />
</xsl:template>
</xsl:stylesheet>
it obviously only returns one result, so i need a loop, but if i use:
<xsl:stylesheet xmlns:xsl=' version='1.0'>
<xsl:template match='/return'>
<xsl:for-each select='row'>
<xsl:value-of select='row/NativeName' />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
it doesn't return all values....somebody sees whats wrong?
thanxs!
alej
I am manipulating some xml from an asp file using some xsl transformation. I was using the same estructure other times but in this case there's something wrong with the 'for-each' loop because I retrieve nothing.
This is the xml data:
<return>
<row>
<NativeName>English, United States</NativeName>
<Enum>1</Enum>
</row>
<row>
<NativeName>Deutsch, German, Germany</NativeName>
<Enum>3</Enum>
</row>
</return>
if I apply the following:
<xsl:stylesheet xmlns:xsl=' version='1.0'>
<xsl:template match='/return'>
<xsl:value-of select='row/NativeName' />
</xsl:template>
</xsl:stylesheet>
it obviously only returns one result, so i need a loop, but if i use:
<xsl:stylesheet xmlns:xsl=' version='1.0'>
<xsl:template match='/return'>
<xsl:for-each select='row'>
<xsl:value-of select='row/NativeName' />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
it doesn't return all values....somebody sees whats wrong?
thanxs!
alej