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

RE: [schema] which assertions can't you express ?

  • To: "Philippe Poulard" <Philippe.Poulard@s...>,<xml-dev@l...>
  • Subject: RE: [schema] which assertions can't you express ?
  • From: "Cross, Neal - Senior Developer" <ncross@i...>
  • Date: Wed, 8 Sep 2004 14:36:26 +0100
  • Thread-index: AcSVm3pGzE5U3mDQTseF0i8s+UxQQgADKTug
  • Thread-topic: [schema] which assertions can't you express ?

date in xml
I have found that a schema is of no use to us at all because of the way that our XML is structured:-

<section id="report definition">
	<section id="officers">
		<section id="secretary" limit="2">
			<section id="name"/>
			<section id="appointment date"/>
			<section id="date of birth"/>
			<section id="occupation"/>
			<section id="address"/>
			<section id="disqualified flag"/>
			<section id="disqualified reason"/>
			<section id="disqualified start"/>
			<section id="disqualified end"/>
			<section id="previous address" limit="1">
				<section id="address"/>
			</section>

etc, etc.

Now, how do I create a schema to represent this considering that is is indexed by the attribute value of id?

-----Original Message-----
From: Philippe Poulard [mailto:Philippe.Poulard@s...]
Sent: 08 September 2004 12:54
To: xml-dev@l...
Subject:  [schema] which assertions can't you express ?


hi,

An XML Schema is the expression of some assertions expected on an XML 
document class. Assertions on XML documents ensure that applications 
will process them without causing faults. Expressing assertions with 
schemas ensure that applications developpers will spend most of their 
time in designing data process and few of their time in controlling them.

Any schema technology is designed to cover numbers of assertions 
expressed. However, if think that the existing schema technologies (DTD, 
W3C XML Schema, Relax NG, Schematron) can't express some constraint types.

I have some ideas of what these constraint types might be, but I'd like 
to know, helped by your own experiences, which kind of useful assertions 
can't be expressed with these schema technologies (so frustrating).

For example :
-i'd like that the number of occurrences of an element is equal to a 
value of a given attribute (Schematron could do that)
-i'd like that the value of a given attribute exists in my RDBMS
-etc...

Thanks in advance
-- 
Cordialement,

            ///
           (. .)
  -----ooO--(_)--Ooo-----
|   Philippe Poulard    |
  -----------------------

-----------------------------------------------------------------
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 e-mail message has been scanned for Viruses and Content.
BOSS
#####################################################################################

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.