Feature #3938
closedCreate a virtual tree with modified base URI and/or system ID
100%
Description
At some stage in the past it was possible to call NodeInfo.setSystemId() to set the system ID of a node. The method still exists, because it is needed for NodeInfo to implement the JAXP Source interface, but it will generally throw an IllegalArgumentException; this is because the data structures used to hold system ID and base URI generally don't allow these properties to be changed for one node with complex side-effects on the properties of other nodes.
It would be useful (and easy) to provide a virtual tree model (analogous to SpaceStrippedTree and TypeStrippedTree) that essentially acts as a virtual copy of an existing tree, but with remapped base URIs and or system IDs.
Updated by Michael Kay over 5 years ago
- Status changed from New to Resolved
- Applies to branch 9.9 added
- Fix Committed on Branch 9.9 added
This feature has been implemented for 9.9. Look for class net.sf.saxon.tree.wrapper.RebasedDocument
.
Updated by O'Neil Delpratt over 5 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.9.0.2 added
Bug fix applied to the Saxon 9.9.0.2 maintenance release.
Please register to edit this issue