xsl-list
[Top] [All Lists]

[xsl] What is the equivalent of this statement ?

2012-07-13 12:47:29
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>