Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.
Support #5029
closed![Author: Lou Burnard](https://www.gravatar.com/avatar/f2a8a02cd51e011a3cd1f813dbc8afbe?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: O'Neil Delpratt](https://www.gravatar.com/avatar/a0bc1766b412d8fecb16f7d304916359?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
setting result document
0%
Description
I need to set the result document for my transformation within the style sheet because I compile its name from components of the document being processed. I can do this easily with xsl:result-document. However, I also need to specify a base relative to which the result document URI is calculated. Otherwise I get that old chestnut SXRD0002: The system identifier of the principal output file is unknown. I get round this by (a) supplying an arbitrary filename as value for the output_filename parameter on myX.apply_templates_returning_file (b) always supplying an absolute path as value for xsl:result-document/@href in my stylesheet
This seems clumsy. Is there a better way?
Related issues
Updated by O'Neil Delpratt over 3 years ago
You should be able to set the base URI using the set_cwd
method on the PySaxonProcessor
class before you create the PyXslt30Processor object.
Updated by O'Neil Delpratt over 2 years ago
- Related to Bug #4395: setBaseOutputURI missing from XSLT API added
Updated by O'Neil Delpratt over 2 years ago
- Status changed from New to Duplicate
- Assignee set to O'Neil Delpratt
The solution to this bug a call on the XsltExecutable.setBaseOutputURI()
method. Available in the new release SaxonC 11.1. See bug issue #4395
Please register to edit this issue