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

defining dynamic sized tables in XML schema

xml table dynamic
is it possible? 

more specifically, a simple example: 

i want a 'table' element to have a sequence of 'entry' elements. 
i know you can use minOccur = maxOccur = x, to enforce table to have x 
entry elements in it. 

but this x value needs to be hardcoded in the schema. 

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 
is there anyway to use restrictions and facets 

in order to define the number of entry elements i want? 

so the schema encompasses all sizes of table in one schema definition, 
based on the value put into the num_rows attribute for an instance of 
the table element, rather then having multiple schema definition for 
different sizes 

hope that made some sense, ive been trying to figure this out for a few 
hrs now, thinking of key contraints, restrictions, minOccur maxOccur 
etc etc... dont know if im missing something or if it simply isnt 
possible in XML schema 

thanks in advance for any help 

Paul Popiel
Software Engineer

Advanced Engine Components Limited
14 Energy St, Malaga WA 6090
Fax: +61 8 9209 6999
Mob: 0412 657 051

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.


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.
First Name
Last Name
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.