[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Schemas in W3C working drafts
- From: "alexander.selkirk" <alexander.selkirk@ntlworld.com>
- To: XML-DEV <xml-dev@lists.xml.org>
- Date: Fri, 29 Jun 2001 20:11:26 +0100
Now that XML-Schema is a W3C recommendation, many people will be trying to
learn how to use schemas (or schemata). With that in mind, it is
disappointing to see errors in their use in W3C working drafts. For example
XML Syntax for XQuery 1.0 (7 June 2001) contains a schema which uses the
'attribute' complex type with an illegal 'value' attribute:-
<xsd:attribute name = "order" use = "default" value = "ASCENDING">
Also XForms (8 June 2001), while having a valid (as far as I can tell)
schema defines the 'item' element as type 'string'. Yet its first example
has the line
<item value="cash">Cash</item>
So could the XQuery working group donate its spare 'value' attributes to the
XForms committee? :-)
I understand that W3C working drafts are just drafts, and it is
"inappropriate to cite them as other than 'work in progress' ". However
since there are not yet many examples of XML schemas around, could there be
a little more effort to ensure correctness? Running a schema through a
validator and checking that the first two examples in any specification are
schema-valid prior to publishing would be helpful.
Cheers,
Alex