[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: New xsl:message

Subject: RE: New xsl:message
From: DPawson@xxxxxxxxxxx
Date: Tue, 9 Nov 1999 07:28:39 -0000
xsl message line number

: Steve Muench  wrote:

>It *looks* like the line number, but given a file like:
>
><list>
>  <thing id="1"/>
>  <thing id="2"/>
>  <thing id="3"/>
>  <thing id="4"/>
>  <thing id="5"/>
></list>
>
>And a stylesheet of:
>
><list xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>   <xsl:for-each select="//*">
>     <xsl:message><xsl:value-of select="@id"/></xsl:message>
>   </xsl:for-each>
></list>
>
>I see the message output of:
>
>file:/C:/TEMP/list.xml:1:
>file:/C:/TEMP/list.xml:2: 1
>file:/C:/TEMP/list.xml:3: 2
>file:/C:/TEMP/list.xml:4: 3
>file:/C:/TEMP/list.xml:5: 4
>file:/C:/TEMP/list.xml:6: 5
>
>So it seems like something else, like some
>other kind of node-id other than generate-id()
>would give you.


Mmmm. I see. This is what James uses for his
error reports.

Thanks Steve. I was hoping for access to line number
for 'commenting' on a source file in the output stream,
as in 

file:/C:/TEMP/list.xml:5: img element with no alt text.

Is this generally useful, or is my usage off beat?
And the feed to error stream is useful, perhaps what
I'm asking for is the same, but as part of the normal
output, perhaps
 <xsl:source-location />  or similar?
Regards, DaveP


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.