[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Still thinking to object oriented...

Subject: Re: Still thinking to object oriented...
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 29 Sep 2008 10:49:04 +0100
Re:  Still thinking to object oriented...
> 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('&#xa;',name())"/>
	</xsl:for-each>
</xsl:template>

:)


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.