xsl-list
[Top] [All Lists]

Re: Reporting line numbers

2005-10-26 01:48:53
"Mark" == Dunn, Mark <mark(_dot_)dunn(_at_)oup(_dot_)com> 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[(_at_)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

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>