Re: Redeclaring attribute in derived type

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 UTC