RE: Select entire XML doc
> > interchangeably with root or document element) means selecting the root node > containing the specified context node. So when you write > > <xsl:template match="/"> > > what you're saying is "select the root node of the document *and* the > document element." You could also do: > > <xsl:template match="/*"> > <xsl:copy-of select="."/> > </xsl:template> > > with the exact same results. no. these are different. / just matches the root node not the root node and top level element. if you xsl:copy that you'll get all the childreen including text nodes pis and comments. If you use /* you just get top level element nodes. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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