[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] What is the equivalent of this statement ?


Subject: [xsl] What is the equivalent of this statement ?
From: Lucent Lau <lucent.lau@xxxxxxxxx>
Date: Sat, 14 Jul 2012 00:47:16 +0700

Hello,

If I have this XML structure:

<root>
<elemA>
     <elemB>
         <elemC id="1"/>
</elemB>
</elemA>
</root>

what is the equivalent of this statement if I do not want to
specifically use elemC
<xsl:apply-templates select="node()[ not( self::elemC[@id=('1')])]" />

Can I say:
<xsl:apply-templates select="node()[ not( self::elemA/*/*[@id=('1')])]" />


Thanks.
Lau


Current Thread
Keywords
xml