[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: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 18 Jul 2006 06:18:18 +0100
RE:  Use document() function to get a reference to the
> 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. 

The message comes from the XML parser, not from Saxon - Saxon is only the
messenger, and tries hard to make this clear, but people still think it's
Saxon complaining.

I *think* that this message from Xerces usually means that a file has been
successfully read, but it's not XML, or anything remotely resembling XML. In
this case I suspect that the resource with URI "/" is a directory listing,
and Xerces of course can't parse a directory listing as XML.

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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.