GNOME Bugzilla – Bug 670610
Request: extension function saxon:column-number() to libxslt / xsltproc
Last modified: 2021-07-05 11:01:03 UTC
I find libxslt's / xsltproc's implementation of saxon:line-number() to be very useful and would appreciate having saxon:column-number() implemented too. I can use saxon's excellent XSLT processor to get this capability. But I prefer xsltproc because it starts up and runs the transforms quicker. And I need saxon:column-number(). (It's for an XSLT ctags generator.) I am hoping it will be quick for someone who understands the code base to reference the saxon:line-number() implementation in libexslt/saxon.c and implement a similar saxon:column-number() extension function for me. Thanks
*** Bug 670611 has been marked as a duplicate of this bug. ***
*** Bug 670612 has been marked as a duplicate of this bug. ***
saxon:column-number() description: http://www.saxonica.com/documentation/extensions/functions/columnnumber.xml
This would be easy to implement if libxml2 stored each node's column number, but unfortunately, it doesn't. If you're still interested in this feature, you can open a feature request for libxml2.
Thanks @Nick. I filed https://bugzilla.gnome.org/show_bug.cgi?id=765832
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxslt/-/issues/ Thank you for your understanding and your help.