Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML W3C Schema, check excistence of attribute depending on other attributes

From: RolfK <Rolf.Kemper@--.-----.--->
To: NULL
Date: 8/30/2008 1:04:00 AM
Dear ALL,

I creating an XML which holds elements which optional attributes.
So-far no problem, I just set the "optional" value in the "required"
attribute of my schema.
But how to check for such situations (I omitted the attribute values
for the sake of short text here)

A1 is always there, all other attributes are optional.

Case one:
Combination which may exists are A1,AA2,A3 or A1,A4,A5.
<E A1="" A2="" A3="">
<E A1=""  A4"" A5="">

Case two:
The existance of an attribute depnds on a the VALUE of another
attribute
A1=a ==> A1,A2,A3
A1=b ==> A1,A4,A5
A1=c ==> A1,A6,A7

<E A1="a" A2=""  A3="">
<E A1="b" A4="" A5="">
<E A1="c" A6="" A7="">

May be there is a standard solution for this two cases.
Thanks a lot
Rolfk


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent