Project

Profile

Help

Bug #2245

closed

Base URI not preserved after deleting xml:base attribute

Added by O'Neil Delpratt over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Internals
Sprint/Milestone:
Start date:
2014-12-01
Due date:
% Done:

100%

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

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.

Actions #1

Updated by O'Neil Delpratt over 9 years ago

  • 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.

Actions #2

Updated by O'Neil Delpratt over 9 years ago

  • 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

Actions #3

Updated by O'Neil Delpratt over 8 years ago

  • 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