xsl-list
[Top] [All Lists]

RE: Select entire XML doc

2003-03-03 20:27:12

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



<Prev in Thread] Current Thread [Next in Thread>