Re: select nodes only one level with same name

Subject: Re: select nodes only one level with same name
From: Klaas Bals <kbals@xxxxxxxxxxx>
Date: Mon, 24 May 1999 22:05:42 +0200
If it's alwas the first level and the second level you can do it like:

<xsl:template match="/">
    <xsl:apply-templates select="./operation" />
    <xsl:apply-templates select="./*/operation" />
</xsl:template>

It should also work without the "./" .

Is this an answer?
Klaas

xsl-list@xxxxxxxxx wrote:

> hi*
>
> Example of xml:
>
> <rootnode>
> <operation>
>         bla-bla-bla...
>         <operation>
>                 another bla-bla-bla...
>         </operation>
>         another bla-bla-bla again
> </operation>
>
> Example of xsl:
>
> <xsl:template match="/">
> bla-bla...
> <xsl:apply-templates select="I want to select first operation node">
> bla-bla-...
> <xsl:apply-templates select="I want to second level operation node">
> </xsl:template>
>
> How can I do it?
> Thanks.
> Eugeny.
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread