Thanks again, Michael.
Having slept on that one, I realized this morning that your method could be
adopted to do exactly just this.
I'd suggest generating a stylesheet that's pure XSLT plus added
my:line-number attributes. Then write a SAX filter which you put between the
XML parser and the XSLT processor, and which feeds Saxon the faked line
numbers from these attributes.
You certainly don't need to change a line of Saxon code to achieve this: you
can even do it using pure JAXP interfaces.
Michael Kay
Justin Johansson
Freelance XML / XSLT / XQuery Developer
Australia
procode(at)tpg(dot)com(dot)au
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--