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

Testability and Schema validity

  • To: "xml-dev@l..." <xml-dev@l...>
  • Subject: Testability and Schema validity
  • From: Mike Champion <mc@x...>
  • Date: Mon, 26 May 2003 17:16:40 -0400
  • User-agent: Opera7.03/Win32 M2 build 2670

schema dogged

In the "OWL and DTDs" thread, some strong claims about schemas being 
necessary for an XML application to be testable were made. That sounds 
sensible, and probably is usually very practical, but I'm not at all sure 
it's logically true.

For example, consider a purchase order format definition.  It will 
undoubtably define the element names and attributes and content model(s) 
that are legal, and at least Schematron is capable of defining some fairly 
robust models that won't break in the face of change, extra 
information,etc. But a real test regime will require constraints that 
aren't expressible in any XML schema language AFAIK:

The <part_number> attribute value on each <item> element must match [a 
product in our catalog]"

"The <quantity> element value must be less than or equal to the [number 
currently in stock according to ERP system]"

"The <total_price> element value must [approved by the credit checking 
service given the credit card number, expiration date, cardholders name]"

"The <key> element value must be a prime number represented by at least 20 
decimal digits"  [OK, that's totally contrived in the purchase order 
context, sorry]

Given that the test suite definition us going to have to specify how to do 
all this database lookup or web service invocation or calculation or 
whatever, why is a schema for the syntax really and truly necessary?  If 
one has enough confidence in one's testing regime, it could be the "real" 
definition of validity, no?

-- 
 

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.