Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL TREE LIKE STRUCTURE >Thread Next - Re: XSL TREE LIKE STRUCTURE Re: XSL TREE LIKE STRUCTURETo: NULL Date: 2/8/2005 12:21:00 PM On Tue, 08 Feb 2005 12:16:56 GMT, Joris Gillis <roac@p...> wrote: > That can be achieved with a stylesheet like this: Sorry, that does not work. Use: <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="id" select="13"/> <xsl:output method="xml" indent="yes"/> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="@*|node()[descendant-or-self::*/@id=$id]"/> </xsl:copy> </xsl:template> </xsl:stylesheet> (properly tested this time) -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
