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

RE: Select entire XML doc

Subject: RE: Select entire XML doc
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 4 Mar 2003 03:27:12 GMT
xml doc top level
> 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.


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

Current Thread


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.
First Name
Last Name
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.