Subject: Re: New XT release (19991105) From: "Steve Muench" <smuench@xxxxxxxxxxxxx> Date: Tue, 9 Nov 1999 07:20:45 -0600 |
Ahh... Since I was assuming folks were looking for the line number of the stylesheet (as a debugging aid) my brain was focussed on trying to understand the numbering with respect to the *stylesheet* line numbers. Doh! :-) But now that I'm thinking about it more, since one puts in the <xsl:message> one can make the message unique enough to understand from whence the message came so line numbers from the stylesheet now in retrospect don't seem that useful, and as usual XT is just doing the right thing. _________________________________________________________ Steve Muench, Consulting Product Manager & XML Evangelist Business Components for Java Development Team http://technet.oracle.com/tech/java http://technet.oracle.com/tech/xml ----- Original Message ----- From: James Clark <jjc@xxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxx> Sent: Tuesday, November 09, 1999 3:00 AM Subject: Re: New XT release (19991105) | 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. | | One of us is missing something. The first element (list) starts on line | 1. The second element (<thing id="1">) starts on line 2. The format | used by xsl:message is: | | <URI>:<linenumber>: <content of xsl:message converted to a string> | | This is the same format that XP and XT use for other error messages. | | James | | | | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: New XT release (19991105), James Clark | Thread | Re: New XT release (19991105), Francis Norton |
Re: New XT release (19991105), James Clark | Date | Re: normalize() function in xt, Tony Graham |
Month |