W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 1999

Re: XSLT wish list

From: James Clark <jjc@jclark.com>
Date: Thu, 01 Jul 1999 19:36:26 +0700
Message-ID: <377B60CA.92DD01B2@jclark.com>
To: "Robert C. Lyons" <boblyons@unidex.com>
CC: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
"Robert C. Lyons" wrote:
> 
> I'm writing an XSLT stylesheet that must validate some of the
> fields in the source document while transforming the
> source document into a new XML document. When my XSLT stylesheet
> finds a validation error, I would like it to do the following:
> 
> - Write an error message to standard error (rather than to the result tree).
>   The error message should include the line number within the source
>   document of the invalid data.
> 
> - Abort the processing of the stylesheet and specify the exit code
>   that the XSLT processor will return.
> 
> I'm hoping that a future version of XSLT will let me use
> the xsl:message instruction to write an error message
> to standard error.
> 
> It would also be nice if XSLT provided a function that returned
> the line number for a node in the source document.

An implementation is free to implement xsl:message by writing a message
to stderr with the line number of the current node.

James
Received on Thursday, 1 July 1999 08:46:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:49 GMT