Re: Attribute groups

Hi Corey,

> So if I have a type called "supertype", and two types derived from
> it- "typeone" and "typetwo" (great imagination, eh?) Could I have
> something like this in an instance document?
>
> <supertype name="CoolBeans">This is a typeone element.</supertype>
> <supertype flag="true" style="neato">This is a type two element.</supertype>

Not quite, but you could if you were OK with having xsi:type
attributes in your instance:

<supertype xsi:type="typeone" name="CoolBeans">This is a typeone element.</supertype>
<supertype xsi:type="typetwo" flag="true" style="neato">This is a type two element.</supertype>

If you don't want xsi:type attributes in your instance document, then
using Schematron, as you are doing, is the best solution, I think.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Tuesday, 19 March 2002 19:37:55 UTC