|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Reporting line numbers
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.dunn@xxxxxxx] > Sent: 26 October 2005 09:32 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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[@myAtt]"> > <!-- code to report the line number of each <myTag> element with the > myAtt attribute --> > </xsl:for-each> > > Thanks for any suggestions, > > Mark Dunn
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








