Re: [xml] pb xsltproc path confusion with document() function

On Thu, Sep 25, 2003 at 05:15:24PM -0400, stephane mottelet utc fr wrote:
In fact xsltproc tries to find the document in the folder
of the stylesheet instead of the current working directory
(the one when xsltproc was run).

Is it a know bug ?

  Why on earth do you think it's a bug ?
What about reading the spec ? Section 12.1 of the XSLT spec
The URI reference may be relative. The base URI (see [3.2 Base URI])
of the node in the second argument node-set that is first in document
order is used as the base URI for resolving the relative URI into an
absolute URI. If the second argument is omitted, then it defaults to
the node in the stylesheet that contains the expression that includes
the call to the document function.
If you don't understand what an URI-Reference or the base means, the
answer is in RFC 2396


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]