OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Substitution groups



Ben Ryan <b_ryan@c-elect.co.uk> writes:

> Hi,
> 	I am trying to a schema where I want to model addresses that can handle
> both UK and US style codes e.g. postcode and zip code. I wanted to use
> substitution groups as follows:
> 
> <xsd:element name="code" type="astring" abstract="true">
> </xsd:element>
> 
> <xsd:element name="postcode" type="astring" substitutionGroup="code">
> </xsd:element>
> 
> <xsd:element name="zip" type="astring" substitutionGroup="code">
> </xsd:element>
> 
> where the complex type astring is defined as follows:
> 
> <xsd:complexType name="astring" mixed="true">
>   <xsd:sequence minOccurs="0" maxOccurs="unbounded">
>     <xsd:any namespace="##other"/>
>   </xsd:sequence>
> </xsd:complexType>

I don't see a problem with these.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/