Q: abstract element with attribute

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 UTC