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

RE: Are people really using Identity constraints specified in

  • To: "Bullard, Claude L \(Len\)" <len.bullard@i...>, "Roger L. Costello" <costello@m...>, <xml-dev@l...>
  • Subject: RE: Are people really using Identity constraints specified in XML schema?
  • From: "Cox, Bruce" <Bruce.Cox@U...>
  • Date: Mon, 16 Aug 2004 17:41:25 -0400
  • Disposition-notification-to: "Cox, Bruce" <Bruce.Cox@U...>
  • Thread-index: AcSD2ceOPxK8lKoUQxOmDWLhk7+VRg==
  • Thread-topic: Are people really using Identity constraints specified in XML schema?

example using identity
I, for one, am very interested in discussing these issues further.
Since XML Schema data typing cannot express all the business rules that
constrain, for example, patent document numbers (from about 100 issuing
offices), what other technologies can be invoked that would?  What
combination of technologies should be used, and in what order, to
accomplish the goal?  I'm interested in standards-based technologies,
such as XML Schema, to express such rules in a fashion that removes as
much variation as possible among systems that implement them around the
world.  Should we use a repository for the rules and their
implementations?

Is anyone else interested?

Bruce B. Cox
U.S. Patent & Trademark Office
SA4XMLT
+1-703-306-2606

-----Original Message-----
From: Bullard, Claude L (Len) [mailto:len.bullard@i...] 
Sent: Friday, August 13, 2004 12:35 PM
To: 'Roger L. Costello'; xml-dev@l...
Subject: RE:  Are people really using Identity constraints
specified in XML schema?

Michael is right, but this isn't a one size fits all decision. 
Loose filters allow dirt to seep into the system.  The architectural
question is what are the right places to put such rules into a system?
We are aware of different technologies for this, and it is a good thread
to out the issues if that interests the members of this list.

That a technology can accomplish a task doesn't mean it is the right
tech for that task.  It doesn't mean it isn't. 
I suspect this is another task situatedness issue, but given a services
architecture, one might want to inquire about tasks relative to their
roles in distributed processes that are candidates for orchestration.

len


From: Roger L. Costello [mailto:costello@m...]

Michael Kay wrote:

> I tend to be a little wary of constraints myself. 
> Many of those you see in student textbooks are 
> misguided. If I see a schema (XML or RDB) with the
> constraint that employees must be over 16, I ask 
> myself what the IT department would do if the 
> business decided to hire someone under 16. If
> there's a rule that an employee's manager must 
> themselves be an employee, I ask what would 
> happen when someone is told that they now report 
> to a contractor. 

This is excellent:

> It's not the job of computers to limit what people 
> are allowed to do (or the job of the IT department 
> to regulate the business). 

The following innocuous sentence has profound implications  
on the role of schemas:

> A guideline I use is that constraints should be there 
> only to protect the IT system itself from data that 
> it cannot handle.

Would you elaborate upon this sentence Michael?  I believe
that you are saying that the role of a schema is to define
things such as:
- ensure that a "date" is indeed a valid date
- ensure that an "age" is indeed a valid age

The role of a schema is not, for example, to specify:
- the "age" must be at least 16.

So, your guideline says: use schemas to specify datatypes
for objects, not their range of values.  Is that a fair
summary of your guideline?  /Roger



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.