ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
RE: [xml-dev] schematron for xml schema validation
by Paul Spencer other posts by this author
Jan 6 2006 1:57AM messages near this date
[xml-dev] schematron for xml schema validation | Re: [xml-dev] schematron for xml schema validation
& XSLT I have used Schematron for tailoring XML schemas for specific requirements.
I came across this defining specifications for using the Election Markup
Language for messages between electoral registers in the UK. There was no
need to access external documents, so I can't help there, but I had to
produce 15 Schematron schemas, each using a subset of a larger set of rules.
I think that this might be what you mean by "controlling the Schematron
elegantly across a set of schemas".

I did this by defining each of the rules in a spreadsheet (with columns for
rule, context, assert/report etc), then having a column for each of the 15
message types saying whether that rule applied. I then used a macro to
generate some simple XML from this and then a stylesheet to produce the 15
Schematron schemas under the control of a simple ASP script. I expect a real
programmer could find a better way. Apart from the ease of only modifying a
single spreadsheet for any changes, this had the advantage that the
spreadsheet was much easier for the software suppliers that would be using
the Schematron to understand.

I have submitted this as a case study for XTech 2006.

Regards

Paul Spencer

>  -----Original Message-----
>  From: bryan rasmussen [mailto:rasmussen.bryan@[...].com]
>  Sent: 04 January 2006 13:08
>  To: xml-dev@[...].org
>  Subject: [xml-dev] schematron for xml schema validation
> 
> 
>  Hey
>  I'm doing a little schematron for validation of spec required xml
>  schema structure, some of the validation rules cannot be done by
>  schematron itself as it involves doing validation across external
>  documents (I am focusing on a schematron that will work in all
>  implementations so use of document function etc. not doable.)
> 
>  Anybody have experience with this problem, ideas for controlling the
>  schematron elegantly across a set of schemas?
> 
>  -----------------------------------------------------------------
>  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>
> 


-----------------------------------------------------------------
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> 
Thread:
Bryan Rasmussen
Paul Spencer
Bryan Rasmussen

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved