Re: unrecognized actiontype in maction

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 UTC