Re: [xsl] Reporting line numbers

Subject: Re: [xsl] Reporting line numbers
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 26 Oct 2005 09:48:53 +0100
>>>>> "Mark" == Dunn, Mark <mark.dunn@xxxxxxx> writes:

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

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

    Mark> Thanks for any suggestions,

My suggestion is that you will need an extension function for this.
-- 
Colin Adams
Preston Lancashire

Current Thread