RE: Is it possible (simpleType or complexType)?

> 
> Is it possible to define a schema for this?

You can define a schema that permits both these options, but not a schema
that permits *only* these two options.
> 
> I have element <arg>. I want that <arg> has simpletype 
> (xs:integer) or only one child <var> and any other elements or text.
> I don't want to create a new element e.g <number> for simpletype
> 
> <arg>
> 12345
> </arg>
> 
> or
> 
> <arg>
>     <var/>
> </arg/>
> 

Why use the same element name to mean two different things? Define a choice
between <int-arg> and <var-arg> with different content models.

Michael Kay
http://www.saxonica.com/

Received on Monday, 21 February 2005 12:50:20 UTC