XSL , match descendant but not leaf nodes

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
Below is my problem.
1 . how to match the desecendant or self node but a leaf or terminal nodes in a single for each condition
I have to process the attributes based on choose condition
<xsl:for-each select="descendant or self node but not leaf node"/>
<xsl:choose>
<xsl:when test="descendant
--do processing--
</xsl:when>
<xsl:otherwise>
--get the value of the leaf node ---
</xsl:otherwise>
</xsl:choose>


View the full article
 
Back
Top