|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|

Cart








