W3C home > Mailing lists > Public > www-math@w3.org > May 2012

Re: unrecognized actiontype in maction

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 29 May 2012 14:12:12 +0100
Message-ID: <4FC4CB2C.2010007@nag.co.uk>
To: Frédéric WANG <fred.wang@free.fr>
Cc: www-math@w3.org
On 29/05/2012 14:03, David Carlisle wrote:
>
> the relax ng (which is mostly automatically generated from the
> tables in the spec) makes it optional. Arguably that's a bug in the
> schema although of course the schema never claims to encode _all_
> requirements of the spec.

I've been looking at how this came to be.

The main schema this time round is Relax NG, with the dtd and XSD schema
being derived from that. Unlike DTD and XSD, Relax NG can not (on its
own) express default values for attributes, so the code that extracts
the schema from the attribute syntax tables essentially ignores the
"default" cell of the table as it is not usually relevant to Relax NG.

As such it never handled the "required" value used in this case to
denote a non-optional attribute.

So probably that should be fixed if the schema is rebuilt (or
alternatively of course we could amend the spec to say that a missing
actiontype be treated like actiontype="" and treated as an unknown
value, but that would be a change rather than a correction I think)

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
Received on Tuesday, 29 May 2012 13:12:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 29 May 2012 13:12:46 GMT