GithubHelp home page GithubHelp logo

phax / ph-schematron Goto Github PK

View Code? Open in Web Editor NEW
106.0 12.0 37.0 25.09 MB

Java Schematron library that supports XSLT and native application

License: Apache License 2.0

CSS 8.04% Java 91.74% XSLT 0.22%
schematron xml-files iso-schematron schematron-files java xslt ant-task ph-schematron source-schematron xslt-files

ph-schematron's Introduction

ph-schematron

Maven Central javadoc CodeCov

ph-schematron is a Java library that validates XML documents via ISO Schematron, SchXslt or a Java "pure" implementation.

Schematron is an XML based validation language to validate XML documents.

Schematron is part of the ISO 19757 standard "Information technology — Document Schema Definition Languages (DSDL)", Part 3 "Rule-based validation — Schematron".

See the Wiki for more details.

The project is licensed under Apache 2.0 license.


My personal Coding Styleguide | It is appreciated if you star the GitHub project if you like it.

ph-schematron's People

Contributors

aanno avatar baerrach avatar bertrand-lorentz avatar johnpoth avatar jw3 avatar nkutsche avatar phax avatar rolfkleef avatar slieschke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ph-schematron's Issues

Pass in parameter to Schematron file

It would be very useful to be able to pass in data to a schematron file. For example, document() file paths, etc. Is this currently supported?

Support Ant error levels

Unfortunately error levels are not supported, see #16. I've changed the <report> level to warning, so the build should throw a warning and no error and should not fail. Builds should fail only on fatal or error.

Current output

[schematron] Validating XML file '/tmp/temp20170816172804143/topic-1.dita' against Schematron rules from 'topic-validation.sch' expecting success
[schematron] 1 Schematron errors for XML file '/tmp/temp20170816172804143/topic-1.dita'
[schematron] [error] in /topic/title @ /tmp/temp20170816172804143/topic-1.dita 
[schematron]                 Do not use inline formatting in <title>
[schematron]              Test=*[contains(@class, 'hi-d/')]

It would be nice, if the output would be one line per <report>/<assert>. This would make it easier to implement a log parser/filter. I'd recommend (as a replacement for the snippet above):

[schematron] /tmp/temp20170816172804143/topic-1.dita:4: [WARNING]: Do not use inline formatting in <title>

Note: The :4 shout mean line 4. I think the line is important to find the position of the error quickly. The test that fired the report/assert is not important, I think.

Possible bug: Diagnostics don't work when using abstract rules

I am using the validateXMLViaPureSchematron when performing validation. Here's the snippet:

File schFile = new File("simpleAbstract.sch");
File xmlFile = new File("simple.xml");
SchematronOutputType schematronOutputType = validateXMLViaPureSchematron(schFile, xmlFile);
System.out.println(schematronOutputType);

The simpleAbstract.sch:

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron">
  <title>Length check</title>
  <pattern name="AbstractRules" id="abstracts">
    <rule abstract="true" id="lengthCheck">
      <assert test="string-length(A) &lt;=10">
        A exceeds 10 characters
      </assert>
      <assert test="string-length(B) &lt;=5">
        B exceeds 5 characters
      </assert>
    </rule>
  </pattern>

  <pattern id="length-checks">
    <rule context="X">
      <extends rule="lengthCheck"/>
    </rule>
    <rule context="Y">
      <extends rule="lengthCheck"/>
    </rule>
  </pattern>

  <pattern id="structure">
    <rule context="simple">
      <assert test="Z" diagnostics="d1">
        Does not contain Z element
      </assert>
    </rule>
  </pattern>

  <diagnostics>
    <diagnostic id="d1">
      Diagnostic d1 <value-of select="title"/>
    </diagnostic>
  </diagnostics>
</schema>

The simple.xml:

<simple>
  <title>Example</title>
  <X>
    <A>This is string XA</A>
    <B>This is string XB</B>
  </X>
  <Y>
    <A>This is string YA</A>
    <B>This is string YB</B>
  </Y>
</simple>

When the "abstracts" and "length-checks" elements are commented out, this is the result of the fired rule:

[FiredRule@0x2aa3cd93: id=null; context=//simple; role=null; flag=null], [FailedAssert@0x7ea37dbf: diagnosticReference=[[DiagnosticReference@0x4b44655e: text=
      Diagnostic d1 Example
    ; diagnostic=d1]]; text=
        Does not contain Z element
      ; id=null; location=/simple; test=Z; role=null; flag=null]]; title=Length check; phase=null; schemaVersion=null]

However, when "abstracts" is uncommented (length-checks can remain commented), the result of the fired rule is missing the diagnositc:

[FiredRule@0x290d210d: id=null; context=//simple; role=null; flag=null], [FailedAssert@0x1d76aeea: diagnosticReference=[]; text=
        Does not contain Z element
      ; id=null; location=/simple; test=Z; role=null; flag=null]]; title=Length check; phase=null; schemaVersion=null]

Fatal errors when running schematron validation

Hello Philip.

I'm trying to use ph-schematron with mvn plugin, but i'm getting Undeclared namespace prefix errors. I know, talk is cheap. Here is the code for testing https://github.com/o/schematron-test

Here is the outputs

(Double indented output indicated running phase)

Cheers!

Osmans-MacBook-Pro-Home osman ~/Developer/schematron-test (master=) $ mvn clean package
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building schematrontr 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ schematrontr ---
[INFO] Deleting /Users/osman/Developer/schematron-test/target
[INFO] 
[INFO] --- ph-sch2xslt-maven-plugin:3.0.1:convert (default) @ schematrontr ---
[INFO] Converting Schematron file '/Users/osman/Developer/schematron-test/src/main/resources/schematron/UBL-TR_Codelist.xml' to XSLT file '/Users/osman/Developer/schematron-test/src/main/resources/xslt/UBL-TR_Codelist.xslt'
[INFO] Converting Schematron file '/Users/osman/Developer/schematron-test/src/main/resources/schematron/UBL-TR_Common_Schematron.xml' to XSLT file '/Users/osman/Developer/schematron-test/src/main/resources/xslt/UBL-TR_Common_Schematron.xslt'
[INFO] Converting Schematron file '/Users/osman/Developer/schematron-test/src/main/resources/schematron/UBL-TR_Main_Schematron.xml' to XSLT file '/Users/osman/Developer/schematron-test/src/main/resources/xslt/UBL-TR_Main_Schematron.xslt'
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[WARNING] [warn] Transformation warning (net.sf.saxon.trans.XPathException: The child axis starting at an attribute node will never select anything)
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ schematrontr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ schematrontr ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/osman/Developer/schematron-test/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ schematrontr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/osman/Developer/schematron-test/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ schematrontr ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ schematrontr ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ schematrontr ---
[INFO] Building jar: /Users/osman/Developer/schematron-test/target/schematrontr-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-shade-plugin:2.4.3:shade (default) @ schematrontr ---
[INFO] Including com.helger:ph-schematron:jar:3.0.1 in the shaded jar.
[INFO] Including com.helger:ph-commons:jar:6.2.0 in the shaded jar.
[INFO] Including com.google.code.findbugs:annotations:jar:2.0.3 in the shaded jar.
[INFO] Including com.helger:ph-jaxb:jar:6.2.0 in the shaded jar.
[INFO] Including net.sf.saxon:Saxon-HE:jar:9.6.0-7 in the shaded jar.
[INFO] Including org.slf4j:slf4j-simple:jar:1.7.10 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.10 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing /Users/osman/Developer/schematron-test/target/schematrontr-1.0-SNAPSHOT.jar with /Users/osman/Developer/schematron-test/target/schematrontr-1.0-SNAPSHOT-shaded.jar
[INFO] Dependency-reduced POM written at: /Users/osman/Developer/schematron-test/dependency-reduced-pom.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.489 s
[INFO] Finished at: 2016-05-30T14:15:44+03:00
[INFO] Final Memory: 64M/1221M
[INFO] ------------------------------------------------------------------------

    Osmans-MacBook-Pro-Home osman ~/Developer/schematron-test (master=) $ java -jar target/schematrontr-1.0-SNAPSHOT.jar 
    [main] INFO com.helger.schematron.xslt.SchematronResourceXSLTCache - Compiling XSLT instance [cpPath=xslt/UBL-TR_Main_Schematron.xslt; urlResolved=true; URL=jar:file:/Users/osman/Developer/schematron-test/target/schematrontr-1.0-SNAPSHOT.jar!/xslt/UBL-TR_Main_Schematron.xslt]
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ef})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xsi})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xs})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xs})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ef})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ef})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xsi})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xsi})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ext})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.commons.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] ERROR com.helger.schematron.xslt.SchematronProviderXSLTPrebuild - XSLT read/compilation error for [cpPath=xslt/UBL-TR_Main_Schematron.xslt; urlResolved=true; URL=jar:file:/Users/osman/Developer/schematron-test/target/schematrontr-1.0-SNAPSHOT.jar!/xslt/UBL-TR_Main_Schematron.xslt]
    javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Stylesheet compilation failed: 419 errors reported
        at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:155)
        at com.helger.schematron.xslt.SchematronProviderXSLTPrebuild.<init>(SchematronProviderXSLTPrebuild.java:63)
        at com.helger.schematron.xslt.SchematronResourceXSLTCache.createSchematronXSLTProvider(SchematronResourceXSLTCache.java:68)
        at com.helger.schematron.xslt.SchematronResourceXSLTCache.getSchematronXSLTProvider(SchematronResourceXSLTCache.java:147)
        at com.helger.schematron.xslt.SchematronResourceXSLT.getXSLTProvider(SchematronResourceXSLT.java:66)
        at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.isValidSchematron(AbstractSchematronXSLTBasedResource.java:158)
        at com.github.o.schematrontr.Application.main(Application.java:10)
    Caused by: net.sf.saxon.s9api.SaxonApiException: Stylesheet compilation failed: 419 errors reported
        at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:546)
        at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:152)
        ... 6 more
    Caused by: net.sf.saxon.trans.XPathException: Stylesheet compilation failed: 419 errors reported
        at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:97)
        at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:543)
        ... 7 more
    ---------
    net.sf.saxon.s9api.SaxonApiException: Stylesheet compilation failed: 419 errors reported
        at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:546)
        at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:152)
        at com.helger.schematron.xslt.SchematronProviderXSLTPrebuild.<init>(SchematronProviderXSLTPrebuild.java:63)
        at com.helger.schematron.xslt.SchematronResourceXSLTCache.createSchematronXSLTProvider(SchematronResourceXSLTCache.java:68)
        at com.helger.schematron.xslt.SchematronResourceXSLTCache.getSchematronXSLTProvider(SchematronResourceXSLTCache.java:147)
        at com.helger.schematron.xslt.SchematronResourceXSLT.getXSLTProvider(SchematronResourceXSLT.java:66)
        at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.isValidSchematron(AbstractSchematronXSLTBasedResource.java:158)
        at com.github.o.schematrontr.Application.main(Application.java:10)
    Caused by: net.sf.saxon.trans.XPathException: Stylesheet compilation failed: 419 errors reported
        at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:97)
        at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:543)
        ... 7 more
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache - The XSLT resource 'jar:file:/Users/osman/Developer/schematron-test/target/schematrontr-1.0-SNAPSHOT.jar!/xslt/UBL-TR_Main_Schematron.xslt' is invalid!
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ef})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xsi})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {sh})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xs})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xs})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ef})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ef})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xsi})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {inv})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {xsi})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ext})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cac})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {apr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {cbc})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {oa})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {ds})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})
    [main] WARN com.helger.schematron.xslt.SchematronResourceXSLTCache -   [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Undeclared namespace prefix {hr})

Create Distributable Jar

I want to use this code as part of my project, but I can seem to find a distributable jar on the release page.

Resource not being found when trying to call the applySchematronValidation api

Hi,
I have tried lots of different things but strangely I can't get the basic api to work when trying to use applySchematronValidation on the xslt and the pure implememtation to retrieve the svrl document. I am using the com.helger.commons.io.resource.ClassPathResource for the resource. The calling code looks like this;

final Document doc = validateXMLViaPureSchematronDoc(new File("src/test/resources/schematron.sch"),
"src/test/resources/schematron.xml");

Code is as follows;

public Document validateXMLViaPureSchematronDoc(@nonnull final File aSchematronFile, @nonnull final String aXMLFile)
throws Exception {

    final ISchematronResource aResPure = SchematronResourcePure.fromFile(aSchematronFile);
    if (!aResPure.isValidSchematron()) {
        throw new IllegalArgumentException("Invalid Schematron!");
    }
    final ClassPathResource resource = new ClassPathResource(aXMLFile);
    return aResPure.applySchematronValidation(resource);
}

Any help much appreciated.

Many Thanks

Use ph-shematron in an OSGI container

When I tried to install and start in a karaf

mvn:com.helger/ph-schematron/4.3.4

The following error occurred.

Error executing command: Error executing command on bundles: Error starting bundle 52: Unable to resolve com.helger.ph-schematron [52](R 52.0): missing requirement [com.helger.ph-schematron [52](R 52.0)] osgi.wiring.package; (&(osgi.wiring.package=com.helger.commons)(version>=8.6.0)(!(version>=9.0.0))) Unresolved requirements: [[com.helger.ph-schematron [52](R 52.0)] osgi.wiring.package; (&(osgi.wiring.package=com.helger.commons)(version>=8.6.0)(!(version>=9.0.0)))]

But version for ph-commons is 8.6.6. In next step, I tried to install and start

mvn:com.helger/ph-commons/8.6.6

The received error was
Error executing command: Error executing command on bundles: Error starting bundle 54: Unable to resolve com.helger.ph-commons [54](R 54.0): missing requirement [com.helger.ph-commons [54](R 54.0)] osgi.extender; (osgi.extender=osgi.serviceloader.registrar) Unresolved requirements: [[com.helger.ph-commons [54](R 54.0)] osgi.extender; (osgi.extender=osgi.serviceloader.registrar)]

By searching, I tried to use the SPI Fly(http://aries.apache.org/modules/spi-fly.html) but with no chance. The ph-commons didn't start correctly.

Any extra help or information would be very helpful.

IllegalAccessError during XPathFactory creation disrupting application

Hello,

I am encountering an issue with version 3.0.1 when attempting to check if a file is valid pure xpath schematron. During the creation of the XPathFactory in PSXPathBoundSchema.createXPathFactorySaxonFirst(), the first attempt to create the xpath factory is failing with an java.lang.IllegalAccessError which, unfortunately, is a type of Throwable and not an Exception. Due to this, the catch block in the same method does not catch the Throwable and execution passes back up to the finally block in AbstractNotifyingCache.getFromCache().

This is the error text:

tried to access method javax.xml.xpath.XPathFactoryFinder.createInstance(Ljava/lang/String;)Ljavax/xml/xpath/XPathFactory; from class javax.xml.xpath.XPathFactory

This probably stems from using Xalan's xpath implementation extensively throughout the rest of my project. Are you aware of any workarounds or other options for resolving this issue?

Role is not returned when a rule is fired

I have created a rule that is fired, but when I get back the FiredRule or the SuccessfulReport, the role value is null.

My rule looks like this:

metadata/description element is missing and is a required field.

I tried putting it in the rule and also in the report, but neither work.

Abstract patterns support (needs Schematron rewriting?)

Hello,

A couple of issues with abstract patterns and schematronProcessingEngine="schematron".

The lib is working for me but I currently have many patterns and rules written in the way detailed below.

Versions tested:

  • ph-schematron-ant-task-4.3.4-jar-with-dependencies.jar
  • ph-schematron-ant-task-5.0.0-20170807.123330-8-jar-with-dependencies.jar

Example from the ISO Schematron spec repurposed a bit.

schematron.sch

<?xml version="1.0" encoding="utf-8"?>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"
  xmlns:sqf="http://www.schematron-quickfix.com/validator/process"
  queryBinding="xslt2">
  
  <sch:pattern abstract="true" id="requiredAttribute">
    <sch:title>Required Attributes</sch:title>
    <sch:rule context="$context">
      <sch:assert test="string-length($attribute) &gt; 0">
        The <sch:name/> element should have a
       <sch:value-of select="$attribute/name()"/> attribute.
      </sch:assert>
    </sch:rule>
  </sch:pattern>
  <sch:pattern is-a="requiredAttribute">
    <sch:param name="context" value="Customer"/>
    <sch:param name="attribute" value="@type"/>
  </sch:pattern>
</sch:schema> 

topic.xml

<?xml version="1.0" encoding="utf-8"?>
<file>
  <Customer type="abc">
    <firstname>abc</firstname>
  </Customer>
  <Customer>
    <firstname>def</firstname>
  </Customer>
</file>

Log


check.topic:
[schematron] [main] ERROR com.helger.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: XSLT Pattern syntax error at char 0 on line -1 in {$context}:
[schematron]     Unexpected token in pattern, found "$")
[schematron] [main] ERROR com.helger.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: XPath syntax error at char 24 on line -1 in {string-length($attribute) >}:
[schematron]     Variable $attribute has not been declared)
[schematron] [main] ERROR com.helger.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: XPath syntax error at char 10 on line -1 in {$attribute/name}:
[schematron]     Variable $attribute has not been declared)
[schematron] [main] ERROR com.helger.xml.transform.XMLTransformerFactory - Failed to parse javax.xml.transform.dom.DOMSource@3c73951
[schematron] javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 3 errors detected.
[schematron] 	at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)
[schematron] 	at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139)
[schematron] 	at com.helger.xml.transform.XMLTransformerFactory.newTemplates(XMLTransformerFactory.java:263)
[schematron] 	at com.helger.schematron.xslt.SchematronProviderXSLTFromSCH.<init>(SchematronProviderXSLTFromSCH.java:220)
[schematron] 	at com.helger.schematron.xslt.SchematronResourceSCHCache.createSchematronXSLTProvider(SchematronResourceSCHCache.java:69)
[schematron] 	at com.helger.schematron.xslt.SchematronResourceSCHCache.getSchematronXSLTProvider(SchematronResourceSCHCache.java:145)
[schematron] 	at com.helger.schematron.xslt.SchematronResourceSCH.getXSLTProvider(SchematronResourceSCH.java:92)
[schematron] 	at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.isValidSchematron(AbstractSchematronXSLTBasedResource.java:187)
[schematron] 	at com.helger.schematron.ant.Schematron.execute(Schematron.java:431)
[schematron] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[schematron] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[schematron] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[schematron] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[schematron] 	at java.lang.reflect.Method.invoke(Method.java:498)
[schematron] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[schematron] 	at org.apache.tools.ant.Task.perform(Task.java:348)
[schematron] 	at org.apache.tools.ant.Target.execute(Target.java:435)
[schematron] 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
[schematron] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[schematron] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[schematron] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[schematron] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[schematron] 	at org.apache.tools.ant.Main.runBuild(Main.java:851)
[schematron] 	at org.apache.tools.ant.Main.startAnt(Main.java:235)
[schematron] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[schematron] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[schematron] [main] WARN com.helger.schematron.xslt.SchematronResourceSCHCache - The Schematron resource 'C:\git\documentation-dita\build\validate\test\schematron.sch' is invalid!
[schematron] Successfully parsed Schematron file 'C:\git\documentation-dita\build\validate\test\schematron.sch'
[schematron] Validating XML file 'C:\git\documentation-dita\build\validate\test\fr\test.xml' against Schematron rules from 'schematron.sch' expecting success
[schematron] [main] ERROR com.helger.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: XSLT Pattern syntax error at char 0 on line -1 in {$context}:
[schematron]     Unexpected token in pattern, found "$")
[schematron] [main] ERROR com.helger.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: XPath syntax error at char 24 on line -1 in {string-length($attribute) >}:
[schematron]     Variable $attribute has not been declared)
[schematron] [main] ERROR com.helger.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: XPath syntax error at char 10 on line -1 in {$attribute/name}:
[schematron]     Variable $attribute has not been declared)
[schematron] [main] ERROR com.helger.xml.transform.XMLTransformerFactory - Failed to parse javax.xml.transform.dom.DOMSource@16a0ee18
[schematron] javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 3 errors detected.
[schematron] 	at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)
[schematron] 	at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139)
[schematron] 	at com.helger.xml.transform.XMLTransformerFactory.newTemplates(XMLTransformerFactory.java:263)
[schematron] 	at com.helger.schematron.xslt.SchematronProviderXSLTFromSCH.<init>(SchematronProviderXSLTFromSCH.java:220)
[schematron] 	at com.helger.schematron.xslt.SchematronResourceSCHCache.createSchematronXSLTProvider(SchematronResourceSCHCache.java:69)
[schematron] 	at com.helger.schematron.xslt.SchematronResourceSCHCache.getSchematronXSLTProvider(SchematronResourceSCHCache.java:145)
[schematron] 	at com.helger.schematron.xslt.SchematronResourceSCH.getXSLTProvider(SchematronResourceSCH.java:92)
[schematron] 	at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.isValidSchematron(AbstractSchematronXSLTBasedResource.java:187)
[schematron] 	at com.helger.schematron.AbstractSchematronResource.applySchematronValidationToSVRL(AbstractSchematronResource.java:255)
[schematron] 	at com.helger.schematron.ant.Schematron._performValidation(Schematron.java:314)
[schematron] 	at com.helger.schematron.ant.Schematron.execute(Schematron.java:475)
[schematron] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[schematron] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[schematron] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[schematron] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[schematron] 	at java.lang.reflect.Method.invoke(Method.java:498)
[schematron] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[schematron] 	at org.apache.tools.ant.Task.perform(Task.java:348)
[schematron] 	at org.apache.tools.ant.Target.execute(Target.java:435)
[schematron] 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
[schematron] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[schematron] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[schematron] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[schematron] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[schematron] 	at org.apache.tools.ant.Main.runBuild(Main.java:851)
[schematron] 	at org.apache.tools.ant.Main.startAnt(Main.java:235)
[schematron] 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[schematron] 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[schematron] [main] WARN com.helger.schematron.xslt.SchematronResourceSCHCache - The Schematron resource 'C:\git\documentation-dita\build\validate\test\schematron.sch' is invalid!

Implement javax.xml.validation support

It would be great if standard xml validation techniques could be used. You'd need some extensions to enable phase support.

Happy to help if you point me in the right direction. I'm working on https://github.com/rosslamont/jxvc which is primarily about xml-model support but I need a standards based schematron validator to round it out.

SAXParseException; Premature end of file.

Hi

I have a strange exception whereby by code runs fine in ubuntu/eclipse but fails in Windows 7 command line with the exception below.

2015-11-27 13:37:08.0537 DEBUG main lang.ServiceLoaderHelper:156 - Finished retrieving all 2 SPI implementations of interface com.helger.commons.hashcode.IHashCodeImplementationRegistrarSPI
2015-11-27 13:37:08.0543 DEBUG main hashcode.HashCodeImplementationRegistry:328- Reinitialized com.helger.commons.hashcode.HashCodeImplementationRegistry
2015-11-27 13:37:08.0546 DEBUG main hashcode.HashCodeImplementationRegistry:292- Found no hashCode implementation for class java.lang.String
2015-11-27 13:37:08.0556 ERROR main transform.LoggingTransformErrorListener:182- fatal_error: Transformation fatal error (net.sf.saxon.trans.XPathException: Error reported by XML parser)
Exception in thread "main" net.sf.saxon.trans.XPathException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:460)
at net.sf.saxon.event.Sender.send(Sender.java:171)
at net.sf.saxon.Controller.transform(Controller.java:1691)
at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:547)
at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:177)
at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.applySchematronValidation(AbstractSchematronXSLTBasedResource.java:270)
at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.applySchematronValidation(AbstractSchematronXSLTBasedResource.java:214)
at com.emerald.integration.validation.service.rules.SchematronValidationRuleTestApp.validateXMLViaXSLTSchematronDoc(SchematronValidationRuleTestApp.java:67)

Thanks.

Add Support for Schematron 2016

http://schematron.com/2016/11/iso-schematron-2016-released/ provides a good overview on what was changed:

The new enhancements are all explicitly flagged. The interesting ones are:

  • Properties. Add arbitrary property elements to the SVRL succeeded-report or failed-assert. This supports, for example, a two-layer reporting system where the first layer extracts features and the second layer grades (like map/reduce [not GOOGLE MapReduce]). This should help automated tool chains: property is to an automatic system what diagnostic is to a human.
  • pattern/@document. Run the pattern over a subordinate document not the main one.
    • Allows the main document to be a table of contents, for example, and Schematron to validate the references documents.
    • Allows Schematron to follow a hypertext link and validate the resource at the end of the link.
    • Allows tests invariants of input and output documents after some transformation.
    • Could be used to validate compound documents in ZIP archives (ODF, OOXML, etc) if the implementation has was a workable ZIP resolver (or just unzip into a directory).
  • Several more annexes, including one to document/define the Query Language Binding for XSLT2 and XPath2.

Alex Brown Andrew Sales took over the final edit of ISO Schematron 2nd Edition to push through and finish my draft, so he and SC34 have my warmest commendation for this. I am glad to see that some good comments made by Japan to simplify some section was finally done.

Blush. There are a well-formedness errors in the very last example, in the Annex for properties and SVRL. The </svrl:property-reference> tag is sometimes </svrl:property> or or sch:property.

Does schematron support validation across xml files

I am a new bee to schematron and evaluating it to use it in one of my project. I have specific usecase where i have particular element in xml1 with certain value and the same value should be associated with one more element in xml2. Let me know if this can be validated through schematron. At present if it is not available then how do i extend to implement the functionality.
Ex
xml1

<items>
   <item value="oneitem"></a>
</items>

xml2

<all>
   <b item_names="checkout checkout1 checkout2"/>
</all>

This is an existing app and i don't have provision to change it.

SchematronTestHelper can not work

I found Helger using new collection classes to find schematron testfiles, like below codes:
private static final ICommonsList <SchematronTestFile> s_aSCHs = _readDI (new ClassPathResource ("test-sch/dirindex.xml"));
but i didn't find dirindex.xml in resources folder, does someone lost put this file?

ResourceErrorGroup.containsOnlySuccess issue

ResourceErrorGroup.containsOnlySuccess method returns false instead of true in first condition. If m_aErrors is empty, this method should return true.

public boolean containsOnlySuccess ()
{
if (m_aErrors.isEmpty ())
return false;
for (final IResourceError aError : m_aErrors)
if (aError.isFailure ())
return false;
return true;
}

No output when running via Ant

I get no output when calling ph-schematron from Ant.

See:

Output

test:

     [echo] dita.dir=dita-ot

[schematron] 13:13:24.301 [main] DEBUG com.helger.commons.lang.ServiceLoaderHelper - Finished retrieving all 0 SPI implementations of interface com.helger.commons.hashcode.IHashCodeImplementationRegistrarSPI

[schematron] 13:13:24.306 [main] DEBUG com.helger.commons.hashcode.HashCodeImplementationRegistry - Reinitialized com.helger.commons.hashcode.HashCodeImplementationRegistry

[schematron] 13:13:24.321 [main] DEBUG com.helger.commons.hashcode.HashCodeImplementationRegistry - Found no hashCode implementation for class java.lang.String

[schematron] 13:13:24.457 [main] DEBUG com.helger.schematron.pure.bound.xpath.PSXPathBoundSchema - Binding pure Schematron

[schematron] 13:13:24.546 [main] DEBUG com.helger.commons.hashcode.HashCodeImplementationRegistry - Found no hashCode implementation for class com.helger.commons.io.resource.FileSystemResource

[schematron] 13:13:24.547 [main] DEBUG com.helger.commons.hashcode.HashCodeImplementationRegistry - Found no hashCode implementation for class java.io.File

[schematron] Successfully parsed Schematron file '/home/travis/build/doctales/org.doctales.schematron/rules/topic-validation.sch'

[schematron] Validating XML file '/home/travis/build/doctales/org.doctales.schematron/samples/topic-1.dita' against Schematron rules from 'topic-validation.sch' expecting success

[schematron] Validating XML file '/home/travis/build/doctales/org.doctales.schematron/samples/topic-2.dita' against Schematron rules from 'topic-validation.sch' expecting success

Target

<target name="test">
    <echo>dita.dir=${dita.dir}</echo>
    <schematron
        schematronFile="${basedir}/rules/topic-validation.sch"
        expectSuccess="true"
        schematronProcessingEngine="pure">
        <fileset dir="${basedir}">
            <include name="samples/*.dita"/>
        </fileset>
        <xmlcatalog>
            <catalogpath path="${dita.dir}/catalog-dita.xml"/>
        </xmlcatalog>
    </schematron>
</target>

Generated xslt doesn't have namepsace definitions

When I run the resulting xslt against the xml to check I get the error:

10:20:20,001 ERROR [main] JAXPSAXProcessorInvoker  - Undeclared namespace prefix {ex}; SystemID: file:/path/src/main/xslt/check-classifications.xslt; Line#: 222; Column#: 85
; SystemID: file:/path/src/main/xslt/check-classifications.xslt; Line#: 222; Column#: 85

I'm using example05 from http://www.xfront.com/schematron/license.html located in their zip file at schematron\examples\example05\

The only other thing I can find on the internet is this unanswered stackoverflow question

http://stackoverflow.com/questions/32784781/ph-schematron-namespace-prefix-error-after-compiling-schematron-to-xslt-using-p

http://www.schematron.com/ shows the steps that the software under the hood takes, which is the same step process that ph-schematron does. I've also compared the files in your distribution against the default implementation and there is only one non-whitespace difference which you have commented that says in iso_schematron_skeleton_for_saxon.xsl

SchematronProviderXSLTFromSCH.SAVE_INTERMEDIATE_FILES is set to false and has no capability to set to true other than rebuilding (I'll do that in a minute).

When I compare the final output of the www.schematron.com with the ph-schematron version I notice that the output differs; there is no default namespace, there are no namespace prefixes defined.

www.schematron.com

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:schold="http://www.ascc.net/xml/schematron"
                xmlns:iso="http://purl.oclc.org/dsdl/schematron"
                xmlns:xhtml="http://www.w3.org/1999/xhtml"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns:ex="http://www.example.org"
                version="1.0"><!--Implementers: please note that overriding process-prolog or process-root is 

the ph-schematron

<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform">

I'm in the process now of tracking this down. But thought I would post first in case you already know where I should look :)

Multiple issues with fairly complicated schematron

Hi. This relates to at least issue#41. I've got a package to reproduce with. Note that running the very same thing inside Oxygen XML editor which also carries Saxon works and gives 23 correct errors.

Help appreciated

Issues:

  1. document() function not supported. The sch leverages plenty of document() calls to files in an include directory right next to the main schematron file, but unless I convert those into doc() calls I get a compile error on every single one of those.

  2. Relative paths do not work. Unless I place the sch + include + instance inside my Java project folder structure it cannot resolve the relative paths that the document() function calls

  3. Bogus errors. It looses context on asserts called from abstract rules leading to bogus errors. Code I used is this:

	File file = new File("totalindberetning-eksempel.xml");
	DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
	DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
	Document document = documentBuilder.parse(file);

	String sch = "lpr-lpr3.sch";

	SchematronResourcePure aResPure = SchematronResourcePure.fromFile(sch);
	SchematronOutputType validationResult;

	validationResult = aResPure.applySchematronValidationToSVRL(document);
	System.out.println("ActivePatternAndFiredRuleAndFailedAssertCount "
			+ validationResult.getActivePatternAndFiredRuleAndFailedAssertCount());
	for (int i = 0; i < validationResult.getActivePatternAndFiredRuleAndFailedAssertCount(); i++) {
		Object obj = validationResult.getActivePatternAndFiredRuleAndFailedAssertAtIndex(i);

		if (obj instanceof FailedAssert) {
			FailedAssert fa = (FailedAssert) obj;

			System.out.print(i + ". ");
			System.out.println(fa.getText());
			System.out.print("    ");
			System.out.println(fa.getLocation());
			System.out.print("    ");
			System.out.println(fa.getTest());
		}
	}

The last of the 2260 errors I get is this one:

2260. dtr1-18-CD: [RIM-002] code (@code= @codeSystem=) SHALL be distinct
    /ClinicalDocument/component/structuredBody/component[2]/section/component/procedure/code
    not(preceding-sibling::*[local-name()=local-name()] | following-sibling::*[local-name()=local-name()][@code=@code][@codeSystem=@codeSystem])

You'll see a lot more similar errors and each of those is simply incorrect. By the looks of it, it looses context, for example because @code= @codesystem= would have had values if the assertion text was properly evaluated.

dtr1-18-CD: [RIM-002] <value-of select="$name"/> (@code=<value-of select="$code"/> @codeSystem=<value-of select="$codeSystem"/>) SHALL be distinct

reproduction-package.zip

Rules failing with schematronProcessingEngine="pure"

Hello,

Thanks for this lib!

The following assert/report expressions fail for me with the pure schematronProcessingEngine:

<sch:report test="node()[self::text()][matches(., '^\s')]" role="warning" sqf:fix="remove-leading-whitespace">
     The topic title must not start by a space.
</sch:report>
<sch:assert test="if (@xml:lang != 'en') then some $token in tokenize(base-uri(), '/') satisfies $token = @xml:lang else true()" role="fatal">
    The values of @xml:lang and the above language folder are not the same.
</sch:assert>
check.topic:
[schematron] Error in Schematron: [error] in PSAssertReport @ C:\git\documentati
on-dita\framework\rules\topic.sch Failed to compile XPath expression in <assert>
: 'if (@xml:lang != 'en') then some $token in tokenize(base-uri(), '/') satisfie
s $token = @xml:lang else true()' with the following variables: {} (javax.xml.xp
ath.XPathExpressionException: javax.xml.transform.TransformerException: Could no
t find function: if)
[schematron] Error in Schematron: [error] @ C:\git\documentation-dita\framework\
rules\topic.sch Error creating bound schema (java.lang.IllegalArgumentException:
 com.helger.schematron.pure.binding.SchematronBindException: Failed to precompil
e the supplied schema.)`

I haven't tested with schematron or xslt yet as per #45.

Thanks in advance for your support.

More clues to where the error is located would be nice

[main] ERROR com.helger.xml.transform.LoggingTransformErrorListener - [fatal_error] Transformation fatal error (net.sf.saxon.trans.XPathException: Unexpected token ")" at start of expression)
[main] ERROR com.helger.xml.transform.XMLTransformerFactory - Failed to parse javax.xml.transform.dom.DOMSource@383864d5
javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
	at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:157)
	at com.helger.xml.transform.XMLTransformerFactory.newTemplates(XMLTransformerFactory.java:263)
	at com.helger.schematron.xslt.SchematronProviderXSLTFromSCH.<init>(SchematronProviderXSLTFromSCH.java:220)
	at com.helger.schematron.xslt.SchematronResourceSCHCache.createSchematronXSLTProvider(SchematronResourceSCHCache.java:69)
	at com.helger.schematron.xslt.SchematronResourceSCHCache.getSchematronXSLTProvider(SchematronResourceSCHCache.java:145)
	at com.helger.schematron.xslt.SchematronResourceSCH.getXSLTProvider(SchematronResourceSCH.java:92)
	at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.isValidSchematron(AbstractSchematronXSLTBasedResource.java:187)
	at com.helger.schematron.AbstractSchematronResource.applySchematronValidationToSVRL(AbstractSchematronResource.java:255)
	at cda.schematronvalidator.SchematronValidator.runValidation(SchematronValidator.java:143)
	at cda.schematronvalidator.SchematronValidator.validate(SchematronValidator.java:114)
	at cda.schematronvalidator.SchematronValidator.main(SchematronValidator.java:96)
Caused by: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:746)
	at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:154)
	... 10 more
Caused by: net.sf.saxon.trans.XPathException: Errors were reported during stylesheet compilation
	at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:259)
	at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:106)
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:743)
	... 11 more
---------
net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:746)
	at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:154)
	at com.helger.xml.transform.XMLTransformerFactory.newTemplates(XMLTransformerFactory.java:263)
	at com.helger.schematron.xslt.SchematronProviderXSLTFromSCH.<init>(SchematronProviderXSLTFromSCH.java:220)
	at com.helger.schematron.xslt.SchematronResourceSCHCache.createSchematronXSLTProvider(SchematronResourceSCHCache.java:69)
	at com.helger.schematron.xslt.SchematronResourceSCHCache.getSchematronXSLTProvider(SchematronResourceSCHCache.java:145)
	at com.helger.schematron.xslt.SchematronResourceSCH.getXSLTProvider(SchematronResourceSCH.java:92)
	at com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource.isValidSchematron(AbstractSchematronXSLTBasedResource.java:187)
	at com.helger.schematron.AbstractSchematronResource.applySchematronValidationToSVRL(AbstractSchematronResource.java:255)
	at cda.schematronvalidator.SchematronValidator.runValidation(SchematronValidator.java:143)
	at cda.schematronvalidator.SchematronValidator.validate(SchematronValidator.java:114)
	at cda.schematronvalidator.SchematronValidator.main(SchematronValidator.java:96)
Caused by: net.sf.saxon.trans.XPathException: Errors were reported during stylesheet compilation
	at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:259)
	at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:106)
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:743)
	... 11 more
[main] WARN com.helger.schematron.xslt.SchematronResourceSCHCache - The Schematron resource 'schema.sch' is invalid!

If the name of the file in question could be part of the stacktrace or the failed expression could be part of the trace it would be great. (The file 'schema.sch' is only the container for a lot of other files).

On preprocessing - keep foreign namespace elements

As outlined in #48;
Currently the following example:

<?xml version="1.0" encoding="utf-8"?>
<sch:schema xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:sch="http://purl.oclc.org/dsdl/schematron"
  queryBinding="xslt2"
  xmlns:sqf="http://example.org/sqf">
  
  <sch:ns prefix="sqf" uri="http://example.org/sqf" />
  
  <sch:pattern name="Customer">
    <sch:rule context="/file/Customer">
      <sch:assert test="base-uri()" role="fatal">
        base-uri is '<sch:value-of select="base-uri()" />'
        <sqf:fix id="a12"/>
      </sch:assert>
    </sch:rule>
  </sch:pattern>
</sch:schema> 

is preprocessed to

<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
  <ns prefix="sqf" uri="http://example.org/sqf" />
  <pattern name="Customer">
    <rule context="/file/Customer">
      <assert test="base-uri()" role="fatal">
        <ns0:fix xmlns:ns0="http://example.org/sqf" id="a12" />
        base-uri is '<value-of select="base-uri()" />'
        
            </assert>
    </rule>
  </pattern>
</schema>

so the <sqf:fix id="a12"/> was moved and the namespace prefix went away...

Unable to use in OSGI Container

Hello!

Can the library be used in OSGi containers? (like Apache Felix or Apache Karaf)
I noticed the libraries are bundled so I tried using the createXML in SVRLWriter in a project that runs inside Karaf.
The following exception was thrown when the JAXB Context was created:

Failed to create JAXB context for package 'org.oclc.purl.dsdl.svrl' using
ClassLoader BundleDelegatingClassLoader(com.foo.myclass [bundleID])

Overall this is very similar to an issue on another project, phax/ph-ubl#4

I found a workaround by importing the org.oclc.purl.dsdl.svrl package in the bundle manifest of my com.foo.myclass package. This allows me to get past the JAXBContext error, but I am still encountering the next issue mentioned, IllegalStateException: Failed to open input stream for [cpPath=schemas/svrl.xsd; urlResolved=true; URL=null]

I think the fix performed for the issue linked might be helpful on this schematron project as the error messages are so similar

ph-schematron-maven-plugin: xmlDirectory with subdirectory structure breaks SVRL export

Hiya,

when pointing xmlDirectory to a directory that includes a directory structure with XML files, outputting the SVRL files using the svrlDirectory parameter does not work. It breaks with FileNotFoundException because the directories are non-existant in the svrlDirectory.

A simple solution is to add:

aSVRLFile.getParentFile().mkdirs();

directly after

// Save SVRL
final File aSVRLFile = new File (svrlDirectory, sXMLFilename + ".svrl");

Thanks in advance and kind regards,
Philipp

How to clear cache to allow dynamic updates to pure schematron validation?

I am using the following code to read the schematron file:

String schematronResourceFile = schematronResource.getFile();
ISchematronResource aResPure = SchematronResourcePure.fromFile(schematronResourceFile);

Then validating an XML file with this code:

SchematronOutputType result = aResPure.applySchematronValidationToSVRL(new StreamSource(aXMLFileIS));

I need to be able to update the schematron dynamically without restarting the program. The schematronResourceFile will always be the same value (/path/to/schematron-file.sch) but the file's contents may change since the last call to fromFile(). I noticed that no matter what happens to the schematron file contents, the file updates are not reflected after the call to fromFile(). Digging into the ph-schematron code, it appears that the SchematronResourcePure class computes a PSBoundSchemaCacheKey which I believe uses the schematron file name, so the key will always be same and return the same cached schematron file.

Can you please suggest how I can clear this cache prior to calling fromFile()? Or provide a workaround?

Thanks.

Missing error report when validating

There seems to be a bug when validating the schematron files. The following code reproduces the bug:

@Test
public void testOfSchematronPH() throws Exception {

    final SchematronResourcePure aResPure = SchematronResourcePure.fromFile("ph-test.sch");
    final IPSErrorHandler aErrorHandler =new IPSErrorHandler() {

        @Override
        public void warn(final IReadableResource aRes, final IPSElement aSourceElement, final String sMessage) {
            // TODO Auto-generated method stub
            System.out.println(sMessage);
        }

        @Override
        public void error(final IReadableResource aRes, final IPSElement aSourceElement, final String sMessage, final Throwable t) {
            // TODO Auto-generated method stub
            System.out.println(sMessage);
        }

        @Override
        public void error(final IPSElement aSourceElement, final String sMessage) {
            // TODO Auto-generated method stub
            System.out.println(sMessage);
        }
    };


    aResPure.validateCompletely(aErrorHandler);
    Assert.assertTrue(aResPure.isValidSchematron());
}

Attached are the schematron files with an empty rule which is intentionally a bug. When running validateCompletely, none of the methods are hit in the IPSErrorHandler. However, when running isValidSchematron(), the schemas are deemed invalid

Archive.zip

ph-schematron-maven-plugin: Add support for testing/verifying Schematron validation failures

Hiya,

this time it's more like a feature request.
My use case is I have a schematron and a bunch of test files (XML) for the rules inside of it. Some of the test files contain errors against the schematron to verify that it is working as intended. However, right now there is no way to use the maven plugin this way (i.e. it will fail the maven build if any errors occurred).

Because of that, I propose a new Maven config parameter failExpected with default value false.

  • if failExpected is false, the behaviour is the same as now
  • if failExpected is true, the build will fail if aFailedAsserts is empty

I hope you will find this a useful addition and I could also provide a patch for this if necessary.

Thanks in advance and kind regards,
Philipp

id's are null when read from result

The result objects of type FailedAssert when traversing org.oclc.purl.dsdl.svrl.SchematronOutputType.getActivePatternAndFiredRuleAndFailedAssert() has the id field set to null

FailOnError option?

I'm one of the Ant fans (still -- not had time to dive into Maven yet).

One thing that would help me: have a failOnError boolean attribute like the Ant XSLT task. Currently, it's possible to expect success or failure with expectSuccess, but I just want to process a collection of files regardless of the result of any single one.

Support XML catalogs in Apache Ant Task

It would be nice, if ph-schematron would support XML catalogs. It would be perfect, if it would use the common principle from the <xslt> task.

<xslt basedir="doc" destdir="build/doc" extension=".html" style="style/apache.xsl">
  <xmlcatalog refid="mycatalog"/>
</xslt>

<xslt basedir="doc" destdir="build/doc" extension=".html" style="style/apache.xsl">
   <xmlcatalog>
       <dtd publicId="-//ArielPartners//DTD XML Article V1.0//EN"
         location="com/arielpartners/knowledgebase/dtd/article.dtd"/>
   </xmlcatalog>
</xslt>

This would be very important to, e.g., work with DITA XML files, see grammar here: org.oasis-open.dita.v1_3

Rules with | in context

Hi Philip,
I have noticed that when I setup a rule like

<sch:rule context="th[@data-role = 'interval'] | td[@data-role = ('interval', 'task')]">

the rule isn't fired anymore. When I make two rules out of this, it works.
I do believe that the usage of | is supported in the standard, and it also works in Oxygen.

Thanks in advance and kind regards,
Philipp

Is it possible to use an UNC path to a schematron file?

Im am providing the following path: \UNC\Path\R0004.sch and im getting the following exception:

Exception in thread "Thread-1" java.lang.RuntimeException: com.helger.schematron.pure.exchange.SchematronReadException: C:\UNC\Path\R0004.sch: Failed to resolve includes in resource [file=\UNC\Path\R0004.sch]
at com.helger.schematron.pure.bound.PSBoundSchemaCache.getValueToCache(PSBoundSchemaCache.java:79)
at com.helger.schematron.pure.bound.PSBoundSchemaCache.getValueToCache(PSBoundSchemaCache.java:38)
at com.helger.commons.cache.AbstractNotifyingCache.getFromCache(AbstractNotifyingCache.java:78)
at com.helger.schematron.pure.SchematronResourcePure.getBoundSchema(SchematronResourcePure.java:81)
at com.helger.schematron.pure.SchematronResourcePure.isValidSchematron(SchematronResourcePure.java:86)
at com.validator.utils.ValidationController.performTests(ValidationController.java:291)
at com.validator.utils.ValidationController.run(ValidationController.java:185)
at java.lang.Thread.run(Unknown Source)
Caused by: com.helger.schematron.pure.exchange.SchematronReadException: C:\UNC\Path\R0004.sch: Failed to resolve includes in resource [file=\UNC\Path\R0004.sch]
at com.helger.schematron.pure.exchange.PSReader.readSchema(PSReader.java:1254)
at com.helger.schematron.pure.bound.PSBoundSchemaCacheKey.readSchema(PSBoundSchemaCacheKey.java:108)
at com.helger.schematron.pure.bound.PSBoundSchemaCacheKey.createBoundSchema(PSBoundSchemaCacheKey.java:189)
at com.helger.schematron.pure.bound.PSBoundSchemaCache.getValueToCache(PSBoundSchemaCache.java:74)
... 7 more

Failed to create JAXB context when using Ant target

I still could not fully get ph-schematron working in our production environment.

This is a sample Ant build script, I'm using for testing.

build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="check">

  <!-- Create path -->
  <path id="phsch.path">
    <pathelement location="../lib/ph-schematron-ant-task-4.3.1-jar-with-dependencies.jar"/>
  </path>
  
  <!-- DITA-OT Catalog -->
  <xmlcatalog id="dita.catalog">
    <catalogpath>
      <fileset 
        dir="../../../../.dita/dita-ot/"
        includes="**/catalog*.xml"/>
    </catalogpath>
  </xmlcatalog>

  <!-- Define <schematron> task -->
  <taskdef name="schematron" classname="com.helger.schematron.ant.Schematron" classpathref="phsch.path" />

  <target name="check">
    <schematron schematronFile="${schematron.file}" expectSuccess="true" schematronProcessingEngine="schematron">
      <fileset dir="${dita.files.dir}">
        <include name="**/*.dita"/>
      </fileset>
      <xmlcatalog refid="dita.catalog"/>
    </schematron>
  </target>
</project>

The build fails with:

Output

$ ant -f config/ant/build_schematron.xml -Ddita.files.dir=../../ -Dschematron.file=../rules/DAKOSY.sch
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_131\lib\tools.jar
Buildfile: C:\Users\eike\DITA\globaledition\config\ant\build_schematron.xml

check:
[schematron] 18:11:50.713 [main] DEBUG com.helger.schematron.xslt.SchematronResourceSCHCache - Compiling Schematron instance [file=C:\Users\eike\DITA\globaledition\config\rules\DAKOSY.sch]
[schematron] 18:11:50.717 [main] DEBUG com.helger.schematron.xslt.SchematronProviderXSLTFromSCH - Creating XSLT step 1 template
[schematron] 18:11:51.195 [main] DEBUG com.helger.schematron.xslt.SchematronProviderXSLTFromSCH - Creating XSLT step 2 template
[schematron] 18:11:51.236 [main] DEBUG com.helger.schematron.xslt.SchematronProviderXSLTFromSCH - Creating XSLT step 3 template
[schematron] 18:11:51.260 [main] DEBUG com.helger.xml.ls.SimpleLSResourceResolver - Trying to resolve resource iso_schematron_skeleton_for_saxon.xsl from base jar:file:/C:/Users/eike/DITA/globaledition/config/lib/ph-schematron-ant-task-4.3.1-jar-with-dependencies.jar!/schematron/20100414-xslt2/iso_svrl_for_xslt2.xsl
[schematron] 18:11:51.941 [main] DEBUG com.helger.schematron.xslt.SchematronProviderXSLTFromSCH - Finished applying XSLT step 1 on [file=C:\Users\eike\DITA\globaledition\config\rules\DAKOSY.sch]
[schematron] 18:11:53.412 [main] DEBUG com.helger.schematron.xslt.SchematronProviderXSLTFromSCH - Finished applying XSLT step 2 on [file=C:\Users\eike\DITA\globaledition\config\rules\DAKOSY.sch]
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:group
[schematron] Warning: unrecognized element sqf:group
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:group
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] Warning: unrecognized element sqf:fix
[schematron] 18:12:18.775 [main] DEBUG com.helger.schematron.xslt.SchematronProviderXSLTFromSCH - Finished applying XSLT step 3 on [file=C:\Users\eike\DITA\globaledition\config\rules\DAKOSY.sch]
[schematron] 18:12:19.505 [main] DEBUG com.helger.commons.locale.LocaleCache - Reinitialized com.helger.commons.locale.LocaleCache
[schematron] 18:12:19.621 [main] DEBUG com.helger.commons.lang.ServiceLoaderHelper - Finished retrieving all 0 SPI implementations of interface com.helger.commons.hashcode.IHashCodeImplementationRegistrarSPI
[schematron] 18:12:19.621 [main] DEBUG com.helger.commons.hashcode.HashCodeImplementationRegistry - Reinitialized com.helger.commons.hashcode.HashCodeImplementationRegistry
[schematron] 18:12:19.634 [main] DEBUG com.helger.commons.hashcode.HashCodeImplementationRegistry - Found no hashCode implementation for class java.lang.String
[schematron] 18:12:19.682 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.683 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.684 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.685 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.686 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.688 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.690 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.694 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.700 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.701 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.702 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.703 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.704 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.705 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.705 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.706 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.707 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.708 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.708 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.711 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.715 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.716 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.717 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.721 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.722 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.724 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.726 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.728 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.729 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.730 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.731 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.731 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.732 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.733 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.735 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.736 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.737 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.738 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.741 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.742 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.743 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.746 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.747 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.748 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.750 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.766 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.768 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.771 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.778 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The attribute axis starting at an attribute node will never select anything)
[schematron] 18:12:19.778 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at an attribute node will never select anything)
[schematron] 18:12:19.779 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.783 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.801 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.803 [main] WARN com.helger.xml.transform.LoggingTransformErrorListener - [warn] Transformation warning (javax.xml.transform.TransformerConfigurationException: The child axis starting at a text node will never select anything)
[schematron] 18:12:19.805 [main] DEBUG com.helger.schematron.xslt.SchematronResourceSCHCache - Finished compiling Schematron instance [file=C:\Users\eike\DITA\globaledition\config\rules\DAKOSY.sch]
[schematron] Successfully parsed Schematron file 'C:\Users\eike\DITA\globaledition\config\rules\DAKOSY.sch'
[schematron] Validating XML file 'C:\Users\eike\DITA\globaledition\common\de-DE\Abgabenarten\Data\DTA_Abgabenarten.dita' against Schematron rules from 'DAKOSY.sch' expecting success
[schematron] 18:12:41.482 [main] DEBUG com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource - Applying Schematron XSLT on XML [start]
[schematron] 18:12:41.578 [main] DEBUG com.helger.schematron.xslt.AbstractSchematronXSLTBasedResource - Applying Schematron XSLT on XML [end]
[schematron] 18:12:41.602 [main] INFO com.helger.jaxb.JAXBContextCache - Creating JAXB context for package org.oclc.purl.dsdl.svrl using ClassLoader java.net.URLClassLoader@4b67cf4d
[schematron] 18:12:41.634 [main] ERROR com.helger.jaxb.JAXBContextCache - Failed to create JAXB context for package 'org.oclc.purl.dsdl.svrl' using ClassLoader java.net.URLClassLoader@4b67cf4d: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "org.oclc.purl.dsdl.svrl" enth▒lt ObjectFactory.class oder jaxb.index nicht

BUILD FAILED
C:\Users\eike\DITA\globaledition\config\ant\build_schematron.xml:25: Exception validating XML 'C:\Users\eike\DITA\globaledition\common\de-DE\Abgabenarten\Data\DTA_Abgabenarten.dita' against Schematron rules from 'DAKOSY.sch'. Technical details: IllegalArgumentException - Failed to create JAXB context for package 'org.oclc.purl.dsdl.svrl' using ClassLoader java.net.URLClassLoader@4b67cf4d

Total time: 51 seconds

Inconsistent XPath interpreter?

Hi,

I'm currently struggeling with the XPath interpreter.
Do you use different ones?
In my main project, i get this exception:
javax.xml.transform.TransformerException: Could not find function: doc

In another project for testing other stuff (yeah i know JUnit in the same project would be better, need to change this) there is no exception for the function doc.

But if I use the function current() to refer to my context element, my main project is totally fine.

My testing project throws this exception: net.sf.saxon.trans.XPathException: Unknown system function curent()

I cant explain this. I'm using the same libraries in both projects.
Versions:
ph-schematron 2.9.1
ph-commons 5.3.0
Saxon-He-9.6.0-4

Thanks in advance.

PHSchematron fails validating schematron file with `p` element inside `pattern` element

Currently I'm using PHSchematron library to validate schematron in Java. If I put sch:p tag as the child of sch:pattern then it throws NullPointerException, as SchematronOutputType is null. I tried putting sch:p as child of sch:schema and sch:rule without any problems, though the XSD denotes that the p element could be child of schema, phase, pattern. I'm not sure whether the problem lies in the implementation of PHSchematron or not. I'm supposed the xmlns:sch points to the 1.5 schematron XSD version.

schematron_1.5.xsd:

<?xml version="1.0" encoding="UTF-8"?>
<!--  schemaVersion of 2001/02/15  -->
<xs:schema xmlns:sch="http://www.ascc.net/xml/schematron" xmlns="http://www.ascc.net/xml/schematron" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ascc.net/xml/schematron" version="+//IDN sinica.edu.tw//SGML W3C XML Schema for Schematron 1.5//EN">
    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd">
        <xs:annotation>
            <xs:documentation>
                Get access to the xml: attribute groups for xml:lang
            </xs:documentation>
        </xs:annotation>
    </xs:import>
    <xs:annotation>
        <xs:documentation source="http://www.ascc.net/xml/resource/schematron/schematron.html" xml:lang="en"/>
    </xs:annotation>
    <xs:element name="active">
        <xs:complexType mixed="true">
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="sch:dir"/>
                <xs:element ref="sch:emph"/>
                <xs:element ref="sch:span"/>
            </xs:choice>
            <xs:attribute name="pattern" type="xs:IDREF" use="required"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="assert">
        <xs:complexType mixed="true">
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="sch:name"/>
                <xs:element ref="sch:emph"/>
                <xs:element ref="sch:dir"/>
                <xs:element ref="sch:span"/>
                <xs:any namespace="##other" processContents="lax"/>
            </xs:choice>
            <xs:attribute name="test" type="xs:string" use="required"/>
            <xs:attribute name="role" type="xs:NMTOKEN"/>
            <xs:attribute name="id" type="xs:string"/>
            <xs:attribute name="diagnostics" type="xs:IDREFS"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
            <xs:attribute name="subject" type="xs:string" default="."/>
            <xs:attribute ref="xml:lang"/>
            <xs:anyAttribute namespace="##other" processContents="lax"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="diagnostic">
        <xs:complexType mixed="true">
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="sch:value-of"/>
                <xs:element ref="sch:emph"/>
                <xs:element ref="sch:dir"/>
                <xs:element ref="sch:span"/>
                <xs:any namespace="##other" processContents="lax"/>
            </xs:choice>
            <xs:attribute name="id" type="xs:ID" use="required"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
            <xs:attribute ref="xml:lang"/>
            <xs:anyAttribute namespace="##other" processContents="lax"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="diagnostics">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="diagnostic" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="dir">
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute name="value">
                        <xs:simpleType>
                            <xs:restriction base="xs:NMTOKEN">
                                <xs:enumeration value="ltr"/>
                                <xs:enumeration value="rtl"/>
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    <xs:element name="emph" type="xs:string"/>
    <xs:element name="extends">
        <xs:complexType>
            <xs:attribute name="rule" type="xs:string" use="required"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="key">
        <xs:complexType>
            <xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
            <xs:attribute name="path" type="xs:string" use="required"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="name">
        <xs:complexType>
            <xs:attribute name="path" type="xs:string" default="."/>
        </xs:complexType>
    </xs:element>
    <xs:element name="ns">
        <xs:complexType>
            <xs:attribute name="uri" type="xs:anyURI" use="required"/>
            <xs:attribute name="prefix" type="xs:NCName"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="p">
        <xs:complexType mixed="true">
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="sch:dir"/>
                <xs:element ref="sch:emph"/>
                <xs:element ref="sch:span"/>
            </xs:choice>
            <xs:attribute name="id" type="xs:string"/>
            <xs:attribute name="class" type="xs:string"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
            <xs:attribute ref="xml:lang"/>
            <xs:anyAttribute namespace="##other" processContents="lax"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="pattern">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="p" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="sch:rule" maxOccurs="unbounded"/>
            </xs:sequence>
            <xs:attribute name="name" type="xs:string" use="required"/>
            <xs:attribute name="see" type="xs:anyURI"/>
            <xs:attribute name="id" type="xs:string"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="phase">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="sch:p" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="sch:active" maxOccurs="unbounded"/>
            </xs:sequence>
            <xs:attribute name="id" type="xs:string" use="required"/>
            <xs:attribute name="fpi" type="xs:string"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="report">
        <xs:complexType mixed="true">
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="sch:name"/>
                <xs:element ref="sch:emph"/>
                <xs:element ref="sch:dir"/>
                <xs:element ref="sch:span"/>
                <xs:any namespace="##other" processContents="lax"/>
            </xs:choice>
            <xs:attribute name="test" type="xs:string" use="required"/>
            <xs:attribute name="role" type="xs:NMTOKEN"/>
            <xs:attribute name="id" type="xs:string"/>
            <xs:attribute name="diagnostics" type="xs:IDREFS"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
            <xs:attribute name="subject" type="xs:string" default="."/>
            <xs:attribute ref="xml:lang"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="rule">
        <xs:complexType>
            <xs:choice maxOccurs="unbounded">
                <xs:element ref="sch:assert"/>
                <xs:element ref="sch:report"/>
                <xs:element ref="sch:key"/>
                <xs:element ref="sch:extends"/>
            </xs:choice>
            <xs:attribute name="context" type="xs:string"/>
            <xs:attribute name="abstract" type="xs:boolean" default="false"/>
            <xs:attribute name="role" type="xs:NMTOKEN"/>
            <xs:attribute name="id" type="xs:string"/>
        </xs:complexType>
    </xs:element>
    <xs:element name="schema">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="sch:title" minOccurs="0"/>
                <xs:element ref="sch:ns" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="sch:p" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="sch:phase" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="sch:pattern" maxOccurs="unbounded"/>
                <xs:element ref="sch:p" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element ref="sch:diagnostics" minOccurs="0"/>
            </xs:sequence>
            <xs:attribute name="id" type="xs:ID"/>
            <xs:attribute name="fpi" type="xs:string"/>
            <xs:attribute name="schemaVersion" type="xs:string"/>
            <xs:attribute name="defaultPhase" type="xs:string"/>
            <xs:attribute name="icon" type="xs:anyURI"/>
            <xs:attribute name="ns" type="xs:anyURI"/>
            <xs:attribute name="version" type="xs:string" default="1.5"/>
            <xs:attribute ref="xml:lang"/>
            <xs:anyAttribute namespace="##other" processContents="lax"/>
        </xs:complexType>
        <xs:unique name="assertId">
            <xs:selector xpath="sch:pattern/sch:rule/sch:assert"/>
            <xs:field xpath="@id"/>
        </xs:unique>
        <xs:unique name="reportId">
            <xs:selector xpath="sch:pattern/sch:rule/sch:report"/>
            <xs:field xpath="@id"/>
        </xs:unique>
        <xs:unique name="ruleId">
            <xs:selector xpath="sch:pattern/sch:rule"/>
            <xs:field xpath="@id"/>
        </xs:unique>
        <xs:unique name="patternId">
            <xs:selector xpath="sch:pattern"/>
            <xs:field xpath="@id"/>
        </xs:unique>
        <xs:unique name="pId">
            <xs:selector xpath=".//sch:p"/>
            <xs:field xpath="@id"/>
        </xs:unique>
        <xs:key name="phaseId">
            <xs:selector xpath="sch:phase"/>
            <xs:field xpath="@id"/>
        </xs:key>
        <xs:keyref name="activePattern" refer="patternId">
            <xs:selector xpath="sch:phase/sch:active"/>
            <xs:field xpath="@pattern"/>
        </xs:keyref>
        <xs:keyref name="extendsRule" refer="ruleId">
            <xs:selector xpath="sch:pattern/sch:rule/sch:extends"/>
            <xs:field xpath="@rule"/>
        </xs:keyref>
        <xs:keyref name="defaultPhase" refer="phaseId">
            <xs:selector xpath="."/>
            <xs:field xpath="@defaultPhase"/>
        </xs:keyref>
        <!--  Define the identity constraints  -->
    </xs:element>
    <xs:element name="span">
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute name="class" type="xs:string"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    <xs:element name="title">
        <xs:complexType mixed="true">
            <xs:choice minOccurs="0" maxOccurs="unbounded">
                <xs:element ref="sch:dir"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
    <xs:element name="value-of">
        <xs:complexType>
            <xs:attribute name="select" type="xs:string" use="required"/>
        </xs:complexType>
    </xs:element>
</xs:schema>

sample_schematron.sch

<?xml version="1.0" encoding="UTF-8"?>
<sch:schema 
    xmlns:sch="http://purl.oclc.org/dsdl/schematron" 
    queryBinding="xslt2"
    xmlns="http://purl.oclc.org/dsdl/schematron" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    targetNamespace="http://purl.oclc.org/dsdl/schematron">   
   <sch:pattern id="sampleValidation">   
        <sch:title>PatternTitle</sch:title>
        <sch:p>A paragraph</sch:p>
        <sch:rule context="CCC">
            <assert test="normalize-space(.) and *">Source contains an empty element</assert>
        </sch:rule>  
   </sch:pattern>
</sch:schema>

SchematronUtil:

public class SchematronUtil {
    public static boolean validateXMLViaXSLTSchematron(@Nonnull final File aSchematronFile,
            @Nonnull final File aXMLFile) throws Exception {
        final ISchematronResource aResSCH = SchematronResourceSCH.fromFile(aSchematronFile);
        if (!aResSCH.isValidSchematron())
            throw new IllegalArgumentException("Invalid Schematron!");
        return aResSCH.getSchematronValidity(new StreamSource(aXMLFile)).isValid();
    }

    public static SchematronOutputType validateXMLViaXSLTSchematronFull(@Nonnull final File aSchematronFile,
            @Nonnull final File aXMLFile) throws Exception {
        final ISchematronResource aResSCH = SchematronResourceSCH.fromFile(aSchematronFile);
        if (!aResSCH.isValidSchematron())
            throw new IllegalArgumentException("Invalid Schematron!");
        return aResSCH.applySchematronValidationToSVRL(new StreamSource(aXMLFile));
    }

    public static boolean validateXMLViaPureSchematron(@Nonnull final File aSchematronFile,
            @Nonnull final File aXMLFile) throws Exception {
        final ISchematronResource aResPure = SchematronResourcePure.fromFile(aSchematronFile);
        if (!aResPure.isValidSchematron())
            throw new IllegalArgumentException("Invalid Schematron!");
        return aResPure.getSchematronValidity(new StreamSource(aXMLFile)).isValid();
    }

    public static boolean validateXMLViaPureSchematron2(@Nonnull final File aSchematronFile,
            @Nonnull final File aXMLFile) throws Exception {
        // Read the schematron from file
        final PSSchema aSchema = new PSReader(new FileSystemResource(aSchematronFile)).readSchema();
        if (!aSchema.isValid(new DoNothingPSErrorHandler()))
            throw new IllegalArgumentException("Invalid Schematron!");
        // Resolve the query binding to use
        final IPSQueryBinding aQueryBinding = PSQueryBindingRegistry
                .getQueryBindingOfNameOrThrow(aSchema.getQueryBinding());
        // Pre-process schema
        final PSPreprocessor aPreprocessor = new PSPreprocessor(aQueryBinding);
        aPreprocessor.setKeepTitles(true);
        final PSSchema aPreprocessedSchema = aPreprocessor.getAsPreprocessedSchema(aSchema);
        // Bind the pre-processed schema
        final IPSBoundSchema aBoundSchema = aQueryBinding.bind(aPreprocessedSchema, null, null, null, null);
        // Read the XML file
        final Document aXMLNode = DOMReader.readXMLDOM(aXMLFile);
        if (aXMLNode == null)
            return false;
        // Perform the validation
        return aBoundSchema.validatePartially(aXMLNode).isValid();
    }

    public static boolean readModifyAndWrite(@Nonnull final File aSchematronFile) throws Exception {
        final PSSchema aSchema = new PSReader(new FileSystemResource(aSchematronFile)).readSchema();
        final PSTitle aTitle = new PSTitle();
        aTitle.addText("Created by ph-schematron");
        aSchema.setTitle(aTitle);
        return MicroWriter.writeToFile(aSchema.getAsMicroElement(), aSchematronFile).isSuccess();
    }
}

Main method:

 SchematronOutputType outputType = SchematronUtil.validateXMLViaXSLTSchematronFull(schematronFile, xmlFile);

            if (outputType == null){
                throw new Exception("SchematronOutputType null");
            }

            List<SVRLSuccessfulReport> succeededList = SVRLHelper.getAllSuccessfulReports(outputType);
            for (SVRLSuccessfulReport succeededReport : succeededList){
                System.out.println(succeededReport.getTest());
            }

            int i = 1;
            List<SVRLFailedAssert> failedList = SVRLHelper.getAllFailedAssertions(outputType);
            for (SVRLFailedAssert failedAssert : failedList) {
                System.out.println(i++ + ". Location:" + failedAssert.getLocation());
                System.out.println("Test: " + failedAssert.getTest());
                System.out.println("Text: " + failedAssert.getText());

                List<DiagnosticReference> diagnisticReferences = failedAssert.getDiagnisticReferences();
                for (DiagnosticReference diagnisticRef : diagnisticReferences) {
                    System.out.println("Diag ref: " + diagnisticRef.getDiagnostic());
                    System.out.println("Diag text: " + diagnisticRef.getText());
                }
            }

            if (failedList.isEmpty()){
                System.out.println("PASS");
            }
            else{
                System.out.println("FAIL");
            }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.