Feature #1739
closedAdd line/column information for nodes other than elements.
0%
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
Updated by Michael Kay over 6 years ago
- Is duplicate of Bug #3543: XdmNode.getColumnNumber() is always -1 for text and comment nodes. added
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