xsl-list
[Top] [All Lists]

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

2013-02-04 06:43:09
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?




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>