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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]
  • To: =?utf-8?B?J3htbC1kZXZAbGlzdHMueG1sLm9yZyc=?= <xml-dev@lists.xml.org>
  • Subject: =?utf-8?B?UkU6IFt4bWwtZGV2XSBkZWZpbmluZyBkeW5hbWljIHNpemVkIHRh?==?utf-8?B?YmxlcyBpbiBYTUwgc2NoZW1h?=
  • From: =?utf-8?B?UGF1bCBQb3BpZWw=?= <PaulP@advancedengine.com>
  • Date: Wed, 1 Jun 2005 07:56:29 +0800

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@w3.org]
Sent: Tuesday, 31 May 2005 10:11 PM
To: Paul Popiel
Cc: 'xml-dev@lists.xml.org'
Subject: Re: [xml-dev] 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.
**********************************************************************




 

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

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