Project

Profile

Help

Feature #1739

closed

Add line/column information for nodes other than elements.

Added by Michael Kay almost 11 years ago. Updated over 6 years ago.

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

0%

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

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

Is duplicate of Saxon - Bug #3543: XdmNode.getColumnNumber() is always -1 for text and comment nodes.ClosedMichael Kay2017-11-23

Actions
Actions #1

Updated by Michael Kay over 6 years ago

  • Is duplicate of Bug #3543: XdmNode.getColumnNumber() is always -1 for text and comment nodes. added
Actions #2

Updated by Michael Kay over 6 years 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