[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Use document() function to get a reference to the
Subject: Re: Use document() function to get a reference to the input doc|
From: Steve <subsume@xxxxxxxxx>
Date: Mon, 17 Jul 2006 17:02:10 -0400
<xsl:variable name="x" select="document('document.doc')" />
On 7/17/06, cknell@xxxxxxxxxx <cknell@xxxxxxxxxx> wrote:
I know I must have done this a hundred times, but I just can't find any example on my computer at this moment. Please straighten me out.
I wish to use the document() function to create a variable holding the input document. My stylesheet contains this element:
<xsl:variable name="main-doc" select="document('/')" />
When I run the transform, Saxon complains that I may not have any content in the prologue. I know this is a huge clue as to what I've done wrong, but I just can't see it. What have I done wrong and how do I fix it?
cknell@xxxxxxxxxx - email
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format