Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


choice attributeGroup

From: "Tomasz Olchawa" <thm@--------.---.-->
To: <xmlschema-dev@--.--->
Date: 10/17/2005 6:56:00 PM
I have XML format like this:
 
....
<Property name="aaa" value="string"/>
<Property name="iii" value="16"/>
....
 
I want to create XML schema  for this XML format, but I cannot do this:
 
....
<xs:element name="Property">
   </xs:choice>
      <xs:attributeGroup ref="strPropType"/>
      <xs:attributeGroup ref="numPropType"/>
   <xs:choice>
</xs:element>
 
<xs:attributeGroup name="strPropType">
   <xs:attribute name="aaa" type="xs:string" fixed="aaa" />
   <xs:attribute name="value" type="xs:string" use="required"/>
</xs:attributeGroup>
 
<xs:attributeGroup name="numPropType">
   <xs:attribute name="aaa" type="xs:string" fixed="iii" use="required"/>
   <xs:attribute name="value" type="xs:integer" use="required"/>
</xs:attributeGroup>
....
 
I cannot do this because:
cos-nonambig: "http://www.parasoft.com/GRS":Property and
"http://www.parasoft.com/GRS":Property (or elements from their substitution
group) violate "Unique Particle Attribution". During validation against this
schema, ambiguity would be created for those two particles.

 
How I can to this?
(any workaround?)
 
Regards,
Tomasz Olchawa



From mike@s... Tue Oct 18 08:19:24 2005
Received: from lisa.w3.org ([128.30.


transparent
Print
Mail
Digg
delicious
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