Subject: Re: Still thinking to object oriented...
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 29 Sep 2008 10:49:04 +0100
|
> For example i have the structure like this:
>
> <node_a>
> <node_b>
> <node_c>
> <node_a>
> <node_to_search_1/>
> </node_a>
> <node_b>
> <node_d>
> <node_to_search_2/>
> </node_d>
> </node_b>
> </node_c>
> </node_b>
> </node_a>
>
> I am searching for "node_to_search_1" and "node_to_search_2" and i
> want the result like this:
>
> node_a
> node_b
> node_c
> node_a
> node_to_search_1
> node_b
> node_d
> node_to_search_2
>
I think you need to rethink that example, because it's simply the
names of the nodes listed in document order, eg:
<xsl:template match="/">
<xsl:for-each select="//*">
<xsl:value-of select="concat('
',name())"/>
</xsl:for-each>
</xsl:template>
:)
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
|