Bug #4602
closed
Failure to locate parameter document: wrong base URI
Applies to branch:
10, 9.9
Fix Committed on Branch:
10, 9.9
Fixed in Maintenance Release:
Description
See test case output-0722
When a serialization parameter document is referenced from a result-document instruction in a stylesheet module held in a subdirectory, the wrong base URI is used for resolving the parameter document URI.
Both the xsl:output declaration and the xsl:result-document
instruction place the static base URI in the (Saxon-internal) serialization property saxon:parameter-document-base-uri
, and the xsl:result-document
one wins. The problem is that a parameter document could be listed in either place (or indeed in both). I think the safest approach is that xsl:result-document
should set this property only if there is a parameter-document
attribute present on the instruction.
- Status changed from New to Resolved
- Applies to branch 9.9 added
- Fix Committed on Branch 10, 9.9 added
Patch committed (to ResultDocument.java) on the 9.9 and 10 branches. The patch ensures that xsl:result-document only sets the parameter document base URI if the local properties include parameter-document
.
(I'm not quite sure why the code is keeping parameter document base URI as a separate property, rather than resolving the URI as soon as it is encountered. But I prefer not to change the design right now. It might be related to the fact that the relative URI and base URI have to be supplied separately to the URIResolver.)
- % Done changed from 0 to 100
- Fixed in Maintenance Release 10.2 added
Bug fix applied in the Saxon 10.2 maintenance release.
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.9.1.8 added
Bug fix applied on the Saxon 9.9.1.8 maintenance release.
Please register to edit this issue
Also available in: Atom
PDF