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

Re: Element names

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Sat, 02 Dec 2000 22:18:47 +0100
Message-ID: <3A296737.708B2F57@dyomedea.com>
To: Daniel Acton <dacton@itouch.co.za>
Cc: xmlschema-dev@w3.org

Daniel Acton wrote:

<example-snipped/>

> Is there a way I can tell the schema to expect an element with those
> attributes, but not explicitly state the name?

Unless I have missed something, I'd say that you can't.

If you have a finite number of possible names, you can use a xsd:choice
[1] to specify this list.

Otherwise, you have to specify the name of the element, unless you use a
xsd:any [2], but then you can't specify anything about the elements you
are accepting except their namespace.

Eric

[1] http://www.w3.org/TR/2000/CR-xmlschema-0-20001024/#SubsGroups
[2] http://www.w3.org/TR/2000/CR-xmlschema-0-20001024/#any

-- 
See you at XML 2000
      http://gca.org/attend/2000_conferences/XML_2000/building.htm#vlist
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------
Received on Saturday, 2 December 2000 16:16:03 GMT

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