Subject: RE: Select entire XML doc
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 4 Mar 2003 03:27:12 GMT
|
>
> 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
| Current Thread |
- RE: Select entire XML doc, (continued)
- Lars Huttar - Mon, 3 Mar 2003 16:43:37 -0500 (EST)
- Martinez, Brian - Mon, 3 Mar 2003 17:10:33 -0500 (EST)
- Martinez, Brian - Mon, 3 Mar 2003 19:01:18 -0500 (EST)
- David Carlisle - Mon, 3 Mar 2003 22:24:25 -0500 (EST) <=
- Wendell Piez - Tue, 4 Mar 2003 11:51:18 -0500 (EST)
- Lars Huttar - Tue, 4 Mar 2003 14:55:17 -0500 (EST)
- Martinez, Brian - Tue, 4 Mar 2003 12:22:14 -0500 (EST)
|
|