Bug #4602

Failure to locate parameter document: wrong base URI

Added by Michael Kay over 1 year ago. Updated about 1 year ago.

Start date:
Due date:
% Done:


Estimated time:
Legacy ID:
Applies to branch:
10, 9.9
Fix Committed on Branch:
10, 9.9
Fixed in Maintenance Release:


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.


#1 Updated by Michael Kay over 1 year ago

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.

#2 Updated by Michael Kay over 1 year ago

  • Status changed from New to Resolved
  • Applies to branch 9.9 added
  • Fix Committed on Branch 10, 9.9 added

Patch committed (to 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.)

#3 Updated by O'Neil Delpratt about 1 year ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 10.2 added

Bug fix applied in the Saxon 10.2 maintenance release.

#4 Updated by O'Neil Delpratt about 1 year ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release added

Bug fix applied on the Saxon maintenance release.

Please register to edit this issue

Also available in: Atom PDF