RE: [xsl] XSL warning : can not load requested doc

Subject: RE: [xsl] XSL warning : can not load requested doc
From: "Tim Watts" <timw@xxxxxxx>
Date: Tue, 1 May 2001 09:40:14 +1000
Stephane

It would be good to indicate some of the XSL and XML you are using.

It sounds like the parser is getting confused with the paths somehow, and so
I've documented a problem we found in our project.

We used XT and then switched to Sabletron and discoverd that while XT tries
to find the document from the root of the imported stylesheets templates,
Sabletron will search from the root of the XSL whom imported the external
stylesheet.

By importing using xsl:import and then using select="document()" we had some
problems with the different parsers because of the way that the parsers
interperate the paths.

For example, you may have a root with all your XSL's and XML documents for
inclusion, and all your imported templates in a *folder* called imports.

A template calling for
<xsl:template name="currencyprint">
		<xsl:for-each select="document(currency.xml)/select/option">
...

from an imported stylesheet will search in the *root* in XT (as that is
where the XSL is located) and in Sablotron will search in the *imports
folder*( as that is where the stylesheet which has the "currencyprint"
template)

Cheers,

Tim Watts


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
Stephane.Le-Deaut@xxxxxxxxxx
Sent: Tuesday, 1 May 2001 1:09 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] XSL warning : can not load requested doc

I've written a StyleSheet with multiple inputs files XML.
The StyleSheet transforms inputs files XML into a file XML.
It's works very well with XALAN java under windows NT.

But when i try under unix i've got an XSL Warning : Can not load requested
doc: file:/home/SLD/srcgenpe/codesTable.xml

I don't understand at all. Can anyone help me ?


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


Current Thread