[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: defining dynamic sized tables in XML schema


tables in xml
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/

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.