W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Re: Redeclaring attribute in derived type

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 26 Dec 2001 15:03:52 +0000
Message-ID: <14172984909.20011226150352@jenitennison.com>
To: Jesse McCarthy <mccarthy36@earthlink.net>
CC: xmlschema-dev@w3.org
Hi Jesse,

>>I assume that this element could appear just about anywhere
>>(otherwise you could probably constrain it more easily using content
> I have an element X. Within X there are several element types that
> can appear only once each, in any order, and an additional element
> type that may appear more than once.

It's the additional element type that may appear more than once which
causes the problems. Otherwise you could use xs:all to describe the
content model. Of course if you are in charge of the design of the
markup language, you could always use a wrapper around the repeatable
elements, to make xs:all usable. Or redesign it so that the elements
occur in a fixed order.

>>Well, Xerces-C++ and now Xerces-J v2 claim to cover all of XML
>>Schema now. I haven't tried Xerces-J yet, but I haven't yet come
>>across anything that Xerces-C++ doesn't handle. Those are both from
> Those don't sound like stand-alone, end user applications (?).

You can run them both from the command line using "SAX2Count" (which
counts the number of elements and attributes in the instance document,
and does validation as a byproduct). They don't have a particularly
pretty interface, admittedly.



Jeni Tennison
Received on Monday, 31 December 2001 15:29:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:56 UTC