Add "-relocate" command line option for XX compiler (xslt3 package)
-relocate command line option is provided for use when exporting SEFs with SaxonEE, but this option is not currently provided with the SaxonJS xslt3 command line package. It would be useful to add it.
Currently all XX-compiled SEFs are "relocatable" - which means that the static base URI is the deployed location of the SEF, rather than the location of the XSLT stylesheet at compile time. But note that unlike XJ-compiled relocatable SEFs, XX SEFs do still contain base URI information referencing the compile time location - which should be removed.
Updated by Debbie Lockett almost 2 years ago
- Status changed from New to Resolved
- Assignee set to Debbie Lockett
- Fix Committed on JS Branch 2, Trunk added
Updates committed on saxonjs2 and main branches, to implement the
-relocate command line option for the XX compiler. The XX compiler has been updated so that it really does produce true relocatable SEFs: i.e. base URI information is now omitted for relocatable SEFs.
As for exporting to SEF with the SaxonJ command line, the default for
-relocate is false. Note that previously all XX SEFs were labelled as "relocatable", though this wasn't entirely true, and they weren't necessarily treated as such. So it is possible that there may be some subtle changes in behaviour using new XX SEFs where static base URI is concerned; to bring it into line with the (correct) expected behaviour for relocatable and non-relocatable SEFs.
Relevant unit tests have been updated.
Please register to edit this issue