Bug #2245
closed
Base URI not preserved after deleting xml:base attribute
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Description
Bug reported by Norm Walsh:
The test class (supplied privately) is some code that builds a document, walks over it deleting the xml:base attribute but attempting to preserve the base URI of each node, and then walks over it again, printing out the base URI of a descendant node.
In Saxon 9.5, the base URI is preserved. In Saxon 9.6, it gets removed somehow.
- Status changed from New to Resolved
- % Done changed from 0 to 100
The bug issue has been reproduced and fixed.
In the TinyBuilder class where we create an Element
if the source locator returns null for the systemId then an empty systemId is added to the map of system IDs. This is then used for the Base URI later on. Incidentally, the SourceLocator supplied by the user returns null for the systemId.
The fix was to handle the case where the source locator returns null for the SystemId the same if the SourceLocator is null.
- Status changed from Resolved to Closed
- Fixed in version set to 9.6.0.3
Bug fix patch applied to the Saxon 9.6.0.3 maintenance release
- Sprint/Milestone set to 9.6.0.3
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.3 added
Please register to edit this issue
Also available in: Atom
PDF