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] XML schema -- specify a relationship between attributes?

[ Lists Home | Date Index | Thread Index ]

Is there any specific reason why this wasnt supported within XML
Schema, or it just went between cracks ?

rgds,
Garfield.


On Tue, 23 Nov 2004 14:04:13 +0200, George Cristian Bina <george@sync.ro> wrote:
> Hi,
> 
> I will say this time:
> "you can do this very easily in Relax NG"
> :)
> 
> <element name="myElement">
>  <optional>
>   <group>
>    <attribute name="name"><data type="string"/></attribute>
>    <optional>
>     <attribute name="myattr"><data type="boolean"/></attribute>
>    </optional>
>   </group>
>  </optional>
> </element>
> 
> or, in compact syntax:
> 
> element myElement {
>  (
>   attribute name { xsd:string },
>   attribute myattr { xsd:boolean }?
>  )?
> }
> 
> Best Regards,
> George
> ---------------------------------------------------------------------
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
> 
> 
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 
>




 

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

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