You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Michael Beckerle (JIRA)" <ji...@apache.org> on 2019/02/21 23:38:00 UTC

[jira] [Commented] (DAFFODIL-1807) schematron validation

    [ https://issues.apache.org/jira/browse/DAFFODIL-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16774596#comment-16774596 ] 

Michael Beckerle commented on DAFFODIL-1807:
--------------------------------------------

Note: This feature is needed because some DFDL schemas are too accepting of malformed data. Sometimes it is easy to make the schema work for correct data, but not enforce all the nesting and other constraints that are also required.

The JPEG DFDL schema has this issue.

Hence, malformed data can end up being accepted and parsed.

The nesting and other constraints can be expressed by schematron rules, so that such malformed data is not accepted. 

> schematron validation
> ---------------------
>
>                 Key: DAFFODIL-1807
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1807
>             Project: Daffodil
>          Issue Type: New Feature
>          Components: Back End
>            Reporter: Michael Beckerle
>            Priority: Major
>
> Daffodil can run the standard XSD validator that is in Xerces.
> We should also be able to provide schematron-based validation. This should allow use of a separate rule file (usually filename.sch extension), or schematron annotations embedded directly in the DFDL schema.
> Note: the way schematron validation commonly works is that the schematron rules are converted into an XSLT, and the XSLT is run on the XML infoset to produce the schematron output. We can do this same thing, but should insure that the conversion from schematron rules into XSLT is part of schema compilation so that aspect is done once only, and the XSLT created from that has its corresponding Java "transformer" object created only once as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)