Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Issue with repeating tags using substitution groups [Thread Next] Re: Issue with repeating tags using substitution groupsTo: 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
