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
>>models)?
>
> 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
>>xml.apache.org.
>
> 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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Monday, 31 December 2001 15:29:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:25 GMT