[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [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: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 17 Jul 2006 17:54:05 -0400
Re:  Use document() function to get a reference to the

A variable holding the input document is usually simply

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

Perhaps you're over-remembering? No document() function needed.


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?

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.