[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] =?utf-8?B?UkU6IFt4bWwtZGV2XSBkZWZpbmluZyBkeW5hbWljIHNpemVkIHRh?==?utf-8?
Thanks for the replies. I want the schema more for validation purposes regarding the dimensions. i think i might just look into Schematron. Paul P.S sorry about any confidentiality messages appended, using an email account supplied to me through work. -----Original Message----- From: Liam Quin [mailto:liam@w...] Sent: Tuesday, 31 May 2005 10:11 PM To: Paul Popiel Cc: 'xml-dev@l...' Subject: Re: defining dynamic sized tables in XML schema On Tue, May 31, 2005 at 03:35:11PM +0800, Paul Popiel wrote: > what if i had another attribute in the element 'table' called num_rows. > > is there anyway to reference or link the num_rows attribute to either > the minOccur or maxOccur properties > OR > is there anyway to use restrictions and facets You could write some XSLT that generated a schema that would "validate" your document. But then you have to ask what service validation is providing. If you are wanting type annotations (e.g. "this element contains the person's European standard shoe size ") you might consider a mix of W3C XML Schema and Schematron, perhaps with the Schematron XPath constraints (number of rows equal to table/@num_rows) embedded as schema annotations, or perhaps using a validation pipeline. If you are not so concerned about element content, about the shape of the text (the data) itself, RelaxNG or even DTD validation may suffice, combined with either Schematron or application-specific validation of other constraints. For other, less structural examples, you could also consider using XForms. > This email is confidential. No it isn't :-) Or if it was, and was sent to the list by mistake (I have no way to tell) you must not read my reply. Please try and use an email account that doesn't append nonsense like this -- text such as "If you are not the intended recipient, you must not copy, distribute, disclose or otherwise use the information contained in it." is obviously not appropriate for a public mailing list that may be mirrored and archived. When you subscribed you gave permission for such activities. Liam -- Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/ http://www.holoweb.net/~liam/ ----------------------------------------------------------------- The xml-dev list is sponsored by XML.org <http://www.xml.org>, an initiative of OASIS <http://www.oasis-open.org> The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription manager: <http://www.oasis-open.org/mlmanage/index.php> ********************************************************************** This email is confidential. If you are not the intended recipient, you must not copy, distribute, disclose or otherwise use the information contained in it. If you have received this email in error, please tell us immediately by return email or by contacting us on (+61 8) 9209 6900 and delete the document. Email may be susceptible to data corruption, interception and unauthorised amendment. Advanced Engine Components Ltd is not responsible for any changes made to a document other than those made by Advanced Engine Components Ltd, or for the effect of the changes on the document's meaning. You must scan this email and any attachments for viruses. Advanced Engine Components Ltd accepts no liability for any loss, damage or consequence, whether caused by our own negligence or not, resulting directly or indirectly from your receipt of this email or the use of any attachments. **********************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|