RE: [xsl] Beginner's question

Subject: RE: [xsl] Beginner's question
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 5 Oct 2001 11:31:45 +0100
> How would I transform the XML doc to another XML doc that 
> contained just 
> the <site> element with a given <uid> (the output to include 
> all child 
> elements of site)?
> 
> I said it was a simple question!
> 

<xsl:copy-of select="//site[.//uid=$param]"/>

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread