[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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('
',name())"/> </xsl:for-each> </xsl:template> :) -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
|
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
|