[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Will an <xsl:result-document> with no href attribu

Subject: Re: 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
Re:  Will an <xsl:result-document> with no href attribu
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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.