Subject: Re: [xsl] no input from document()? From: Joseph Kesselman <keshlam@xxxxxxxxxx> Date: Mon, 23 Feb 2004 10:50:25 -0500 |
>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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] no input from document()?, Michael Kay | Thread | [xsl] Merging XML from Lookup table, Tracy |
Re: [xsl] pointed border, Mark Williams | Date | Re: [xsl] pointed border, Herwig Posedu |
Month |