Project

Profile

Help

Feature #3938

closed

Create a virtual tree with modified base URI and/or system ID

Added by Michael Kay over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2018-10-03
Due date:
% Done:

100%

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

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.

Actions #1

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.

Actions #2

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

Also available in: Atom PDF