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

Schematron validation in Java

  • From: Dennis Sosnoski <dms@s...>
  • To: XML DEV <xml-dev@l...>
  • Date: Tue, 02 Dec 2008 11:32:15 +1300

Schematron validation in Java
I'd like to be able to use both schema and schmatron validation for 
messages in a Java web service environment. Schema validation is easy, 
but schematron is proving to be a real problem. I've tried using the 
XSLTs from http://www.schematron.com/ using both the built-in Java 5 and 
6 XSLT handling (based on Xalan, I believe) and also the Saxon 9.1 XSLT 
implementation, and both ways the XSLTs seem to work ok but the final 
output I get from running the generated validation XSLT on a sample 
document is just:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<svrl:schematron-output xmlns:schold="http://www.ascc.net/xml/schematron"
                        xmlns:iso="http://purl.oclc.org/dsdl/schematron"
                        xmlns:cl="xxx"
                        xmlns:saxon="http://saxon.sf.net/"
                        xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
                        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                        xmlns:xs="http://www.w3.org/2001/XMLSchema"
                        title="Rule set for Application Fulfillment"
                        schemaVersion="ISO19757-3"><!--  Â
          Â
          Â
         --><svrl:ns-prefix-in-attribute-values uri="xx" prefix="cl"/>
   <svrl:active-pattern/>
</svrl:schematron-output>

(namespace removed, since it's a client schema) whether the document is 
schematron-valid or not. Does anyone have any suggestions as to what I 
might be doing wrong? Or for any other ways to get ISO Schematron 
validation in Java? Or even if this is the expected output?

Thanks,

  - Dennis

-- 
Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.