OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] defining dynamic sized tables in XML schema

[ Lists Home | Date Index | Thread Index ]

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/




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS