[xsl] Will an <xsl:result-document> with no href attribute override the current stylesheet?

Subject: [xsl] Will an <xsl:result-document> with no href attribute override the current stylesheet?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sun, 15 Dec 2013 15:26:01 -0800
 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:

  href="'"'

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

My question is:

Will an <xsl:result-document> instruction with missing or empty href
attribute overwrite the current stylesheet?



-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
To achieve the impossible dream, try going to sleep.
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
Typing monkeys will write all Shakespeare's works in 200yrs.Will they
write all patents, too? :)
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.

Current Thread