Re: [xsl] Use of a prefix in the error()'s QName

Subject: Re: [xsl] Use of a prefix in the error()'s QName
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 04 Feb 2013 12:43:00 +0000
Well, it depends what you do with the error when you catch it. If you want to display the error code in prefix:local-name form, then it might be useful to have a user-friendly prefix.

Michael Kay
Saxonica

On 04/02/2013 12:05, Andrew Welch wrote:
Hi,

What is the benefit of using a prefix in the QName in error(), for example:

error(QName('http://www.example.com/', 'err:reason')

vs

error(QName('http://www.example.com/', 'reason')

Seems redundant?

Current Thread