Project

Profile

Help

Support for saxon:column-number

Added by Alf Eaton about 1 year ago

It's great to see saxon:line-number in the list of Saxon extensions supported by Saxon-JS.

Would it be possible to also add saxon:column-number?

Being able to pinpoint the location of specific nodes would be useful when displaying the results of a Schematron validation.


Replies (2)

RE: Support for saxon:column-number - Added by Michael Kay about 1 year ago

It could be done in principle in node.js (the SAX parser tracks line number and column number, but we only save the line number in the DOM node).

We can't do it in the browser because we don't have any control over XML parsing.

RE: Support for saxon:column-number - Added by Alf Eaton about 1 year ago

saxon:column-number in node.js would be helpful, certainly.

    (1-2/2)

    Please register to reply