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

=?utf-8?B?UkU6IFt4bWwtZGV2XSBkZWZpbmluZyBkeW5hbWljIHNpemVkIHRh?==?utf-8?

  • To: =?utf-8?B?J3htbC1kZXZAbGlzdHMueG1sLm9yZyc=?= <xml-dev@l...>
  • Subject: =?utf-8?B?UkU6IFt4bWwtZGV2XSBkZWZpbmluZyBkeW5hbWljIHNpemVkIHRh?==?utf-8?B?YmxlcyBpbiBYTUwgc2NoZW1h?=
  • From: =?utf-8?B?UGF1bCBQb3BpZWw=?= <PaulP@a...>
  • Date: Wed, 1 Jun 2005 07:56:29 +0800

utf 8 b
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!

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.