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

RE: Best Practice - beyond schema


xslt previous element
Is it a goal to create one authoritative document 
that can declare the conditions and constraints for 
all elections it governs, or to create a document 
from which the conditions and constraints for 
any given election locale to declare a governing 
document?

It seems to me that trying to keep all conditions 
and constraints for all election locales in one 
document will become quite cumbersome.  Local rules 
should be declared and owned locally.  I take it that is the 
reason for the include file.  This approach seems 
preferable to XSLT because it is more transparent 
although I suspect XSLT will be more powerful for more 
situations.

A social key for acceptance of these devices will be 
their ready understandability to some informed percentage 
of the electorate (no technology is truly transparent and 
as with any issue depends on some percentage to grasp it 
and explain it to the rest clearly enough that it is 
accepted).  One prefers the easier to explain solution.

len

-----Original Message-----
From: John Cowan [mailto:jcowan@r...]

Paul Spencer scripsit:

> [...] XML Schema cannot express the constraints required, for example,
> a section of a message that is required if the value of a previous
> element is "yes", but not if it is "no". 

RELAX NG can handle this very neatly: <snip/>

include "person.rnc" {
	locale = "US"

<snip/>

include "ballot.rnc" {
	affiliation = element affiliation {
		"Republican" | "Democrat" |  "Green"
		}
	}

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.