[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Use of xsl:document


Subject: RE: [xsl] Use of xsl:document
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 22 Jun 2006 12:28:51 +0100

> <xsl:variable name="Xml" as="document-node()"> <xsl:document> 
> <xsl:sequence select="document('file.xml')"/> </xsl:document> 
> </xsl:variable>
> 

You definitely don't wan't to do that. You're loading an external document
and then making a copy of it. You don't need to make a copy: use the
original instead!

Michael Kay
http://www.saxonica.com/


Current Thread