L
Lenny
Hello,
I want to iterate over the child elements of a certain element and read
out their names (which I don't know).
Is this possible?
I know that it's possible to read out the text content of an element
even if one does not know its name by using wild cards.
Example:
XML document:
<parentElement>
<unknownElementName>text content</unknownElementName>
<parentElement>
stylesheet:
<xsl:template match="/parentElement">
<xsl:apply-templates select="*"/>
</xsl:template>
<xsl:template match="/parentElement/*">
<xsl:variable name="var1" select="."/>
</xsl:template>
But I need the name ("unknownElementName") !!!
Best Regards,
Lenny
I want to iterate over the child elements of a certain element and read
out their names (which I don't know).
Is this possible?
I know that it's possible to read out the text content of an element
even if one does not know its name by using wild cards.
Example:
XML document:
<parentElement>
<unknownElementName>text content</unknownElementName>
<parentElement>
stylesheet:
<xsl:template match="/parentElement">
<xsl:apply-templates select="*"/>
</xsl:template>
<xsl:template match="/parentElement/*">
<xsl:variable name="var1" select="."/>
</xsl:template>
But I need the name ("unknownElementName") !!!
Best Regards,
Lenny