[Home] [By Thread] [By Date] [Recent Entries]
But base-uri($node) doesn't return the base URI of the stylesheet, it
returns the base URI of the specified node (which in common cases will
be the the URI of the document containing that node).
To get the base URI of the current stylesheet module (or more strictly, the base URI of the current expression in the stylesheet), use the static-base-uri() function. (Different parts of a stylesheet module can have different base URIs if you use xml:base, or if parts of the stylesheet are contained in external entities). There's no way to determine the base URI of the "currently executing main stylesheet" unless you put a global variable in the principal stylesheet module and bind it to static-base-uri() (and avoid using xml:base or external entities, and ensure that the API via which the stylesheet is loaded actually preserves the URI information...) Michael Kay Saxonica On 28/06/2012 10:12, Abel Braaksma wrote: Hi Andrew,
|

Cart



