[Bug 29162] [xslt30] Parameter-document: static or dynamic?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29162

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
Proposal:

(A) In ยง26, xsl:output, change the paragraph

If present, the URI supplied in the parameter-document attribute is
dereferenced, after resolution against the base URI of the xsl:output element
if it is a relative reference. If the location of the stylesheet at development
time is different from the deployed location, any relative reference should be
resolved against the deployed location. A serialization error occurs if the
result of dereferencing the URI is ill-formed or invalid; but if no document
can be found at the specified location, the attribute may be ignored.

to read

If present, the URI supplied in the parameter-document attribute is
dereferenced, after resolution against the base URI of the xsl:output element
if it is a relative reference. The parameter document SHOULD be read during
static analysis of the stylesheet. A serialization error occurs if the result
of dereferencing the URI is ill-formed or invalid; but if no document can be
found at the specified location, the attribute SHOULD be ignored.

[SHOULD rather than MUST because it can be hard to distinguish an absent
document from an invalid document, since many sites return an "error page"
rather than a 404.]

(B) In 25.1, xsl:result-document, change the paragraph

If present, the effective value of the URI supplied in the parameter-document
attribute is dereferenced, after resolution against the base URI of the
xsl:result-document element if it is a relative reference. If the location of
the stylesheet at development time is different from the deployed location, any
relative reference should be resolved against the deployed location. A
serialization error occurs if the result of dereferencing the URI is ill-formed
or invalid; but if no document can be found at the specified location, the
attribute may be ignored.

to read

If present, the effective value of the URI supplied in the parameter-document
attribute is dereferenced, after resolution against the base URI of the
xsl:result-document element if it is a relative reference. The parameter
document SHOULD be read during run-time evaluation of the stylesheet. If the
location of the stylesheet at development time is different from the deployed
location, any relative reference SHOULD be resolved against the deployed
location. A serialization error occurs if the result of dereferencing the URI
is ill-formed or invalid; but if no document can be found at the specified
location, the attribute SHOULD be ignored.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 7 October 2015 21:29:35 UTC