Re: [xsl] User-defined function for linenumber

Subject: Re: [xsl] User-defined function for linenumber
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Wed, 1 Aug 2007 10:52:29 +0200
Michael Kay wrote:
> This feels horrendously inefficient. Why not instead implement a SAX filter
> that adds the line number as an extra attribute to every element?

Yes, but my solution works using XSLT 2.0 only and that is nice. It
would be even nicer if it could be modified to also work in
Schematron, that is I can not use the analyze-string element?

Cheers
Jesper

Current Thread