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

Q: abstract element with attribute

From: Forge <forge@neonics.com>
Date: Tue, 27 Mar 2001 14:34:20 +0000 (UTC)
To: xmlschema-dev@w3.org
Message-ID: <Pine.LNX.4.21.0103271430450.530-100000@fire>

Hi there,

I wish to do the following:

In my xml file:

 <command name="a">
   <parameters>
     <param name="a-param">...</param>
   </parameters>
 </command>

 <command name="b"/>

I whish to make an abstract element 'command' and some 'instances'
but I do not wish to let the name of the element define which 'instance'
is used.

The idea is that I just specify a <element name="command" type="command"/>
and the schema validator just picks the right 'instance' of the abstract
element. Each command has different parameters and I do not want to
list them all there..

Any ideas on how to do this?
Received on Tuesday, 27 March 2001 07:26:42 GMT

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