xsl-list
[Top] [All Lists]

Re: [xsl] Avoiding boneheaded mistakes in XSLT?

2010-12-30 09:50:58
On Thu, 30 Dec 2010 13:53:42 +0000
Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:


The problem is that if someone writes

if (@version = "2.0") ...

and there is no @version attribute, it's very likely that the
semantics of the vocabulary are that an absent version attribute is
to be treated as if @version="1.0". So a warning that there is no
version attribute would be inappropriate here.


You're making assumptions Mike?
  Simple fact, the author requested an attribute that
is missing from the instance.

If set to report it, IMHO that would be useful information
from Saxon for debugging?






-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

--~------------------------------------------------------------------
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>
--~--