[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Will an with no href attribute override the current stylesheet?


Subject: Re: [xsl] Will an <xsl:result-document> with no href attribute override the current stylesheet?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Sun, 15 Dec 2013 23:45:33 +0000

On 15 Dec 2013, at 23:26, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:

>
> The rules of resolving a relative literal-URI when applied in this
> case should produce the URI of the current stylesheet -- same as
> document('').

Not so, the href attribute of xsl:result-document is resolved relative to the
"base output URI".
>
> My question is:
>
> Will an <xsl:result-document> instruction with missing or empty href
> attribute overwrite the current stylesheet?
>

If the base output URI is set to be the same as the stylesheet URI, then
unless you're lucky, it could well do so (just as it might overwrite the
source document if the output URI and input URI are the same).

Michael Kay
Saxonica


Current Thread