Altova Mailing List Archives
>xmlschema-dev Archive Home
>Recent entries
>Thread Prev - Re: XML result set schema validation
>Thread Next - Re: XML result set schema validation
Re: XML result set schema validation
To: "Henry S. Thompson" <ht@------.--.--.-->
Date: 6/17/2003 9:09:00 PM
If a document instance has some XML fragments included or excluded depending on the level of detail than how can the XSD schema be used to validate that instance? Using xsd:nil seems to indicate that the element is not present rather than the fact that multiple types of elements may be present or not present. I think semantically this should be possible to validate keeping in mind the required level of detail of the result set. should eacl level of detail result set have its own XSD? That would defeat the purpose of trying to model the result of the query as the same type of information? E.g., Get me my bank account transaction information such that I see all checks cleared in past one month. Get me my account transaction information such that I see all ATM transactions as well as check cleared in past one month. Get me my account information such that I see all transactions for last one year. All of these are semantically a result set of XML schema based query. However, each query result ends up including different types of account information. How would we ensure that each result set corresponds to same XSD schema and that each result set can be validated keeping in mind the specific level of detail for that result set. E.g., if we have maximum level of detail we do want to do schema validation for all the required elements expected. For a lower level of detail we do not want to impose schema validation of a higher level of detail. Any ideas? Tony Opatha. "Henry S. Thompson" <ht@c...> wrote: Tony Opatha writes: > I need to design the XML schema for a document that may need > to be initialized with a XML fragment that may vary with > different levels of details. If I've understood you correctly, your best bet is xsi:nil -- this allows you to validate an empty element even though the schema requires it to have content. ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@c... URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam] --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
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.

