Re: [xml-dev] Type substitution vs. element substitution (aka substitution groups)

From
Farrukh Najmi <>
To
Date
2008-11-25T17:39:41Z
ID
<>
Thread
Re: [xml-dev] Type substitution vs. element substitution (aka substitution groups)
Farrukh Najmi wrote:
> Dear colleagues,
>
> Is there a suggested best practice to choose between type substitution 
> and element substitution for XML schemas that wish to support 
> extension via inheritance? Please share your opinions and experience 
> as well as any resources on the subject. Thank you.
>

Here are some resources I have found:

Against xsi:type:

<http://blog.whatfettle.com/2006/11/29/xsitype-is-evil/>
<http://norman.walsh.name/2004/01/29/trainwreck>

Against element substitution:

<http://www.kohsuke.org/xmlschema/XMLSchemaDOsAndDONTs.html>

Neutral or leaning towards xsi:type:

<http://www.xfront.com/VariableContentContainers.pdf>

I am surprised that this question got only 1 response (thanks Boris).
Can we please get some more input and experience sharing on this. 

Thanks.

-- 
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com