Re: XSLT wish list

"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 UTC