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

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


Subject: Re: [xsl] What is the equivalent of this statement ?
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Fri, 13 Jul 2012 18:53:57 +0100

<xsl:apply-templates select="elemC"/>

On Fri, Jul 13, 2012 at 6:47 PM, Lucent Lau <lucent.lau@xxxxxxxxx> 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


Current Thread
Keywords
xml