Reading every element from the specified node
hai,
I have the XML like this:
<root>
<artfront>
<rauthor>
<rtitle>
</artfront>
<art>
<head>
<artbody>
<section>
......
......
<subsection>
.............
.............
<subsection>
.......
<qanda>
<quest>...........</quest>
<answer>...........</answer>
<quest>...........</quest>
<answer>...........</answer>
</qanda>
<artback>
.........
.........
</artback>
</root>
here is our XSL:
<xsl:template match="artbody">
<xsl:for-each select="//*">
<xsl:message><xsl:value-of select="name()"/></xsl:message>
</xsl:for-each>
</xsl:template>
It is reading from the root.but i want to read the elements from the artbody.
i tried like this also
<xsl:template match="artbody">
<xsl:for-each select="artbody/*">
<xsl:message><xsl:value-of select="name()"/></xsl:message>
</xsl:for-each>
</xsl:template>
but it is not work.
please give the solution
Thank you
__________________
Thanks,
Rocxy.
|