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

Re: Schema validation Report Language?

  • From: Rick Jelliffe <rjelliffe@allette.com.au>
  • To: Frank Steimke <f-steimke@berger-und-steimke.de>
  • Date: Thu, 9 Mar 2017 03:36:14 +1100

Re:  Schema validation Report Language?
Oh, and there is a second suggestion.  At the Github Schematron project page, you can find scripts to convert XSD to Schematron. You can then run it and generate real SVRL. 

However, we implemented this (a project for JTSOR) just to handle the subset of XSD they needed, and did not test it outside their requirements, so there is every chance arbitrary XSD might have some problem. 

You can find blog entries that serve as documentation at
  http://schematron.com/2017/01/golden-oldies-my-pick-of-postings-on-schematron-from-my-oreilly-blogs-archives/

Regards
Rick Jelliffe


On Thu, Mar 9, 2017 at 3:31 AM, Rick Jelliffe <rjelliffe@allette.com.au> wrote:
And I do have a more concrete suggestion: you should be able to convert the output of the XSD validator into SVRL and merge it with the real SVLR.   This is code you would have to write, for a particular validator.

You would do something like this:

* make an svrl:active-pattern element to hold the XSD validation results
* for each node that has an error in the PSVI, generate an svrl:fired-rule,  and provide the XPath and/or linenumber in attributes
* for each error on that node, generate an svrl:failed-assert element,  and provide a link to the XSD documentation for the particualr error in the @see attribute, and just  false() as the assertion, and some assertion text of whatever usefulness you can extract: maybe just "The document should be valid aginst the XSD schema" if the implementation provides no text.  (You may be able to fill in @role too.)

Regards
Rick





On Wed, Mar 8, 2017 at 7:30 PM, Frank Steimke <f-steimke@berger-und-steimke.de> wrote:

 
 
Hi,
validation of XML-based business documents is often a process with two ore more phases:
a) check structure against XSD or RELAX NG Schema;
b) check additional constraints against Schematron

In typical scenarios the user would like to inspect validation results before he decides about further processing. In order to support automatic inspection as well as logging the incoming trafic, we would like to have the validation report to be a single XML document, which combines all the neccessary information from the validations that took place. We also would like to have extension points for additional, user specific validation, for example electronic signatures or certificates.

So my question to this list is: is there any generic Schema Validation Report Language out there which can act as Schema for reports in this scenario? I'm quite aware of the Schematron Validation Report Language (Annex D of ISO/IEC 19757-3:2016), but this is restricted to Schematron.

Closely related to this question is another one: is it a requirement for every W3C Schema validation engine to report schema errors and validation failures in terms of appendix C "Outcome Tabulations" of XML Schema Part 1: Structures, together with a error location in a standardized way? Does this also hold for relax NG engines (although i know only one ...).

Thanks in advance,
Frank Steimke

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[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.