xsl-list
[Top] [All Lists]

Re: [xsl] What is the equivalent of this statement ?

2012-07-13 12:54:06
<xsl:apply-templates select="elemC"/>

On Fri, Jul 13, 2012 at 6:47 PM, Lucent Lau 
<lucent(_dot_)lau(_at_)gmail(_dot_)com> wrote:
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>
--~--


--~------------------------------------------------------------------
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>