[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: no input from document()?

Subject: Re: no input from document()?
From: Joseph Kesselman <keshlam@xxxxxxxxxx>
Date: Mon, 23 Feb 2004 10:50:25 -0500
Re:  no input from document()?



>The document() below is leaving $B blank.
>  <xsl:variable name="B" select="document('master_file.xml')//outline"/>

document() expects a URI reference, so "master_file.xml" is being
interpreted relative to the base URI of the stylesheet (ie, it's probably
looking in the same directory as the stylesheet). If that isn't what you
intended, you need to change how you're invoking document(), or move this
file to an appropriate place, or (if your processor supports this) plug in
a resolver that knows where to look for it.

You didn't say how you were invoking the processor. Note that if you're
using the TrAX APIs, some modes of usage don't automatically set the
stylesheet's base URI; you have to provide that information explicitly. If
you fail to do so, that too could cause the document() not to be resolved
successfully.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.