Project

Profile

Help

Feature #1739

Add line/column information for nodes other than elements.

Added by Michael Kay over 4 years ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2013-04-23
Due date:
% Done:

0%

Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:

Description

Requested by Radu Coravu on the saxon-help list.

"For example if a Schematron assert checks the content of a comment, we
cannot position the user to the place where the checked comment is
present but to the parent element of the comment."


Related issues

Duplicates Saxon - Bug #3543: XdmNode.getColumnNumber() is always -1 for text and comment nodes. Closed 2017-11-23 Actions

History

#1 Updated by Michael Kay about 2 months ago

  • Duplicates Bug #3543: XdmNode.getColumnNumber() is always -1 for text and comment nodes. added

#2 Updated by Michael Kay about 2 months ago

  • Status changed from New to Resolved

For 9.8 I have made changes whose effect is that line and column information is maintained for elements, comments, and processing instructions on both the TinyTree and LinkedTree. For the TinyTree, the location information returned for a text node is that of the most recent node that has location information (usually the parent element); for the LinkedTree, it is always the parent element.

For the development branch I have made additional changes so that line and column information is maintained for text nodes.

Please register to edit this issue

Also available in: Atom PDF