W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2008

How can i include condition in XML SCHEMA

From: Andrea Merli <merli.a84@gmail.com>
Date: Thu, 25 Sep 2008 12:41:23 +0200
Message-ID: <ab4dbbf70809250341p52cffbb5h9eafa0522b360ed5@mail.gmail.com>
To: xmlschema-dev@w3.org
Hi People,
I would do this operation:

- I'have an XML Schema and i would insert a condition
                   ....
                  <xs:element name="WEB_PERMISSION" type="xs:string"
ls:isVisible="true" ls:isDisabled="false" ls:caption="TEXT"/>
                 <xs:element name="PERMISSION1" type="MenuTypeInser"
ls:isVisible="true" ls:isDisabled="false" ls:caption="TEXT"/>
                 <xs:element name="PERMISSION2" default="TEXT1"
ls:isVisible="true" ls:isDisabled="false" ls:caption="TEXTa"/>
                   ...

if field WEB_PERMISSION contain the value 1 ----> PERMISSION1;
if field WEB_PERMISSION contain the value 0 ----> PERMISSION2;

Is it possible? How can i do?

Thanks

Dott. Andrea Merli
Received on Friday, 26 September 2008 09:00:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:07 GMT