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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] <xsd:all> problem

[ Lists Home | Date Index | Thread Index ]

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> -----Original Message-----
> From: PeterHowells@halifax.co.uk
> [mailto:PeterHowells@halifax.co.uk]  
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <xsd:element name="person">
>   <xsd:complexType  >

>>>>>>>>>>>>>
>     <xsd:all minOccurs="0" maxOccurs="1">
>       <xsd:element name="firstname" type="xsd:string"/>
>       <xsd:element name="lastname" type="xsd:string"/>
>     </xsd:all>
>>>>>>>>>>>>>>>

>   </xsd:complexType>
> </xsd:element>
> </xsd:schema>


Isn't your schema is saying firstname lastname appears only as a
pair or not at all?

Bill de hÓra

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPQd9PuaWiFwg2CH4EQJUygCgxhmwPYSIKh+lttuvDv35EuBfbvQAoL6z
Bw6pSz5tpP02XoET853wMOGl
=b4vL
-----END PGP SIGNATURE-----





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS