Re: [xsl] Use document() function to get a reference to the input doc

Subject: Re: [xsl] Use document() function to get a reference to the input doc
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 17 Jul 2006 22:41:59 +0100
> I wish to use the document() function to create a variable holding the
> input document. My stylesheet contains this element: 

If you really want, your wish may be granted but personally I'd go

<xsl:variable name="main-doc" select="/" />

the current input document's already been parsed and /  is its root
node, no need to do anything else.

David

Current Thread