xsl-list
[Top] [All Lists]

RE: Reporting line numbers

2005-10-26 11:12:22
Saxon has an extension saxon:line-number() but there's nothing in the
standard language.

For saxon:line-number() to work you need to specify an option when building
the source document: on the command line it's -l (letter ell)

Michael Kay
Saxonica 

-----Original Message-----
From: Dunn, Mark [mailto:mark(_dot_)dunn(_at_)oup(_dot_)com] 
Sent: 26 October 2005 09:32
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Reporting line numbers

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[(_at_)myAtt]">
<!-- code to report the line number of each <myTag> element with the
myAtt attribute -->
</xsl:for-each>

Thanks for any suggestions,

Mark Dunn

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






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