W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Re: LC-215 - Easy Add-ins (i18n Comment on XML Schema Last Call Working Draft)

From: Martin Gudgin <marting@develop.com>
Date: Sun, 8 Oct 2000 21:06:28 +0100
Message-ID: <030501c03163$3ff97410$0300a8c0@arbitrary>
To: "Martin Gudgin" <marting@develop.com>, "Martin J. Duerst" <duerst@w3.org>
Cc: "Schema Comments" <www-xml-schema-comments@w3.org>

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 ).


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:49 UTC