[xsl] Reporting line numbers

Subject: [xsl] Reporting line numbers
From: "Dunn, Mark" <mark.dunn@xxxxxxx>
Date: Wed, 26 Oct 2005 09:32:01 +0100
Hello,

Is XSLT (1 or 2) able to tell me the line number in a file at which a
node is found? For example, is there some code that could fill in the
gap here:

<xsl:for-each select="myTag[@myAtt]">
<!-- code to report the line number of each <myTag> element with the
myAtt attribute -->
</xsl:for-each>

Thanks for any suggestions,

Mark Dunn

Current Thread