Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Schema query [Thread Next] Re: Schema queryTo: NULL Date: 11/3/2008 7:18:00 PM Steve Long wrote: > I want to write an element into a schema to validate an XML input as being > between 100 and 60000 in increments of 100. Is it possible? I can use > <xs:restriction base="xs:integer> > <xs:minInclusive value="100"/> > <xs:maxInclusive value="60000"/> > </xs:restriction> > to define the lower and upper boundaries but how do I handle the increments > of 100? > With a smaller range (50 to 500 with increments of 50) I simply enumerated > the possible entries (50, 100, 150, 200, etc.) but that seems to be a very > clumsy method particularly with very large ranges. I am not sure how to solve that other than enumerating the values, of course you could write some code to create that schema. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
