- From: Martin Gudgin <marting@develop.com>
- Date: Sun, 8 Oct 2000 21:06:28 +0100
- To: "Martin Gudgin" <marting@develop.com>, "Martin J. Duerst" <duerst@w3.org>
- Cc: "Schema Comments" <www-xml-schema-comments@w3.org>
Martin, Here is an example that uses substitution groups. The original schema[1] and instance[2] allow the 'p' element to contain 'b' and 'i' elements interleaved with test ( 'p' has a content model of mixed, 'b' and 'i' have a content model of textOnly and are based on string ). A second schema[3] and instance[4] show how to allow new elements in a new namespace where 'b' and 'i' are legal. A third schema[5] and instance[6] show got to allow new elements in the same namespace where 'b' and 'i' are legal. This example is very similar to the one shown in the primer[7] I hope this illustrates how new element names ( and types ) can be substituted for the original element names ( and types ). Regards Martin Gudgin XML Schema Working Group [1] http://marting.develop.com/xsd/lc-215/subgroup.xsd [2] http://marting.develop.com/xsd/lc-215/subgroupex1.xml [3] http://marting.develop.com/xsd/lc-215/subgroup2.xsd [4] http://marting.develop.com/xsd/lc-215/subgroupex2.xml [5] http://marting.develop.com/xsd/lc-215/subgroup3.xsd [6] http://marting.develop.com/xsd/lc-215/subgroupex1ext.xml [7] http://www.w3.org/TR/xmlschema-0/#SubsGroups
Received on Sunday, 8 October 2000 16:09:17 UTC