Next in thread → Next in month →

RE: [xml-dev] Namespace vs Prefix in error message: friendly versus correct?

From
Michael Kay <>
To
'Uche Ogbuji' <>
Date
2003-04-12T22:57:18Z
ID
<002701c30146$de3c2d10$6401a8c0@pcukmka>
Thread
RE: [xml-dev] Namespace vs Prefix in error message: friendly versus correct?
> 
> > "Element xsl:when, in namespace 
> http://www.w3.org/1999/XSL/Transform, cannot appear here"
> 
If the user has called it xsl:when, then it's reasonable to refer to it
by that name in the error message. If the problem is that the namespace
URI for prefix "xsl" is incorrect, then you can pick this up when
reading the xsl:stylesheet element; and at that point you can produce
different error messages depending whether it's the local name or the
URI that's wrong.

Michael Kay
Next in thread → Next in month →