Subject: RE: [xsl] Select entire XML doc From: "Martinez, Brian" <brian.martinez@xxxxxxxx> Date: Mon, 3 Mar 2003 15:12:22 -0700 |
> From: Lars Huttar [mailto:lars_huttar@xxxxxxx] > Sent: Monday, March 03, 2003 2:46 PM > Subject: RE: [xsl] Select entire XML doc > > > copy-of is a deep copy; it copies all attributes, child > > elements and content > > to the output tree. value-of only copies the textual content > > of the nodes. > > > > hth, > > b. > > Just out of curiosity, and because I'm learning: > Wouldn't the above copy-of fail to copy any non-element > children of the > root node? E.g. comments and PI's... > (He did say "the entire XML document.") No. If the comments and PIs (by that I assume you mean processing instructions) are children of the root or context node, xsl:copy-of will write them to the result tree. cheers, b. | brian martinez brian.martinez@xxxxxxxx | | senior gui programmer 303.708.7248 | | trip network, inc. fax 303.790.9350 | | 6436 s. racine cir. englewood, co 80111 | | http://www.cheaptickets.com/ http://www.trip.com/ | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Select entire XML doc, Lars Huttar | Thread | RE: [xsl] Select entire XML doc, Lars Huttar |
Re: [xsl] XPathEvaluator in SAXON?, Liu Shuai | Date | RE: [xsl] thoroughly confused about, Lars Huttar |
Month |