Subject: Re: [xsl] Will an <xsl:result-document> with no href attribute override the current stylesheet?|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 15 Dec 2013 18:45:57 -0500
Hi, The W3C XSLT 2.0 Specification says (about the href attribute of <xsl:result-document>):
"The href attribute is optional. The default value is the zero-length string. The effective value of the attribute must be a URI Reference, which may be absolute or relative. There may be implementation-defined restrictions on the form of absolute URI that may be used, but the implementation is not required to enforce any restrictions. Any legal relative URI must be accepted. Note that the zero-length string is a legal relative URI." http://www.w3.org/TR/xslt20/#element-result-document
It isn't absolutely clear, but I am interpreting this to mean that no href attribute is equivalent to:
The rules of resolving a relative literal-URI when applied in this case should produce the URI of the current stylesheet -- same as document('').
Will an <xsl:result-document> instruction with missing or empty href attribute overwrite the current stylesheet?
-- Public XSLT, XSL-FO, UBL & code list classes: Melbourne, AU May 2014 | Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |