Hi,
I'm new to XML and what I have an XML document with the following strucure:
<TOP>
<Header>
<Subheader>
...
<Subheader>
</Header>
...
<Header>
<Subheader>
...
<Subheader>
</Header>
</TOP>
What I'm trying to do is loop through each header and print out all the subheaders it has.
If I use <xsl:for-each select="TOP/Header"> then <xsl:value-of select="subheader"/> it only prints out the first subheader. How do I get it to print all the subheaders?
Also if I have a name associated with each Header, how do I get to print those out too?
thanks.
I'm new to XML and what I have an XML document with the following strucure:
<TOP>
<Header>
<Subheader>
...
<Subheader>
</Header>
...
<Header>
<Subheader>
...
<Subheader>
</Header>
</TOP>
What I'm trying to do is loop through each header and print out all the subheaders it has.
If I use <xsl:for-each select="TOP/Header"> then <xsl:value-of select="subheader"/> it only prints out the first subheader. How do I get it to print all the subheaders?
Also if I have a name associated with each Header, how do I get to print those out too?
thanks.