|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: select nodes only one level with same name
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








