Charles,
A variable holding the input document is usually simply
<xsl:variable name="main-doc" select="/" />
Perhaps you're over-remembering? No document() function needed.
Cheers,
Wendell
At 04:57 PM 7/17/2006, you 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?
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--