Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Issue with repeating tags using substitution groups

From: Boris Kolpackov <boris@-------------.--->
To: David Broker <davidb@---------.--->
Date: 4/7/2008 12:15:00 PM
Hi David,

David Broker <davidb@w...> writes:

> My problem is how to get the "DataBlock" tags to only repeat once.
> The above workds fine execpt that the tags can be repeated. I have tried
> combinations of xs:choice, xs:all and xs:group but I cannot get it to work.

One trick in your particular setup would be to have an attribute with
default but different value for each 'data*' type. Then you can use the
xsd:unique mechanism to make sure only one instance of each value is
encountered in the 'letter' scope. The diagnostics won't be very user-
friendly though.

Boris

-- 
Boris Kolpackov, Code Synthesis Tools
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde

From davidb@w... Tue Apr 08 01:55:35 2008
Received: from far


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