<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I think I've presented in pre-conference day at XMLPrague 2019 -
      not recorded - a maven plugin that do validation against RelaxNg
      AND Schematron, but I can't find code.<br>
    </p>
    <p>It's based on Jim Etevenard's work, located here : <a
        href="https://github.com/cmarchand/Jing-JAXP-Wrapper">https://github.com/cmarchand/Jing-JAXP-Wrapper</a></p>
    <p>It requires, for ISO-schematron, a patched release of Jing/Trang.
      You can find one here, but it's not available on maven central : <a
        href="https://github.com/ELSGestion/jing-trang/commits/master">https://github.com/ELSGestion/jing-trang/commits/master</a></p>
    <p>Added Jim Etevenard as cc.</p>
    <p><br>
    </p>
    <p>Ok, found it : here is an extract of pom.xml, definining
      xml-maven-plugin and controls. See dependencies, there are all
      published on maven-central, except Jing.</p>
    <p>You should be able to write a simple java program that can be
      used to validate input files from command line, exploring PIs.<br>
    </p>
    <p>      <plugin><br>
              <groupId>org.codehaus.mojo</groupId><br>
              <artifactId>xml-maven-plugin</artifactId><br>
              <version>1.0.2</version><br>
              <executions><br>
                <execution><br>
                  <goals><br>
                    <goal>validate</goal><br>
                  </goals><br>
                </execution><br>
              </executions><br>
              <configuration><br>
                <validationSets><br>
                  <validationSet><br>
                   
<dir>src/main/resources/eu/els/sie/publication/conf/env</dir><br>
                    <includes><br>
                      <include>*.xml</include><br>
                    </includes><br>
                    <systemId>els-conf.ns.rng</systemId><br>
                   
<schemaLanguage><a class="moz-txt-link-freetext" href="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0">http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0</a></schemaLanguage><br>
                  </validationSet><br>
                  <validationSet><br>
                   
<dir>src/main/resources/eu/els/sie/publication/conf/env</dir><br>
                    <includes><br>
                      <include>*.xml</include><br>
                    </includes><br>
                    <systemId>flash.sch</systemId><br>
                   
<schemaLanguage><a class="moz-txt-link-freetext" href="http://purl.oclc.org/dsdl/schematron">http://purl.oclc.org/dsdl/schematron</a></schemaLanguage><br>
                  </validationSet><br>
                </validationSets><br>
               
<catalogs>target/test-classes/catalogs/catalog.xml</catalogs><br>
              </configuration><br>
              <dependencies><br>
                <dependency><br>
                  <groupId>com.jimetevenard.xml</groupId><br>
                  <artifactId>Jing-JAXP-Wrapper</artifactId><br>
                  <version>1.0.1</version><br>
                </dependency><br>
                <dependency><br>
                  <groupId>net.sf.saxon</groupId><br>
                  <artifactId>Saxon-HE</artifactId><br>
                  <version>9.8.0-14</version><br>
                </dependency><br>
                <dependency><br>
                  <groupId>eu.els.oss</groupId><br>
                  <artifactId>jing</artifactId><br>
                  <version>20180404</version><br>
                </dependency><br>
                <dependency><br>
                  <groupId>com.google.code.gson</groupId><br>
                  <artifactId>gson</artifactId><br>
                  <version>2.8.5</version><br>
                </dependency><br>
              </dependencies><br>
            </plugin><br>
    </p>
    <p>Best regards,<br>
      Christophe<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 09/10/2019 à 11:57, Lou Burnard a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:b01861a2-d2d6-b1ca-7812-0c6c38fef3ac@retired.ox.ac.uk">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p><font size="+1"><font face="Courier New, Courier, monospace">One
            of the features of oXygen which I really love is the way it
            allows me to combine schema validation with RELAXNG and with
            schematron just by adding a couple of PIs to the top of my
            file. But this requires me to fire up oXygen and open up
            each file one by one which is not so convenient if I have
            100 or more independent documents to validate. I would
            rather do this in a bash script, along with all the other
            pre-validation sanitation work. But</font></font></p>
      <p><font size="+1"><font face="Courier New, Courier, monospace">(a)
            only oXygen will take any notice of my PIs (obviously)</font></font></p>
      <p><font size="+1"><font face="Courier New, Courier, monospace">(b)
            none of the open source validators I've looked at seems to
            have a hook for including schematron validation</font></font></p>
      <p><font size="+1"><font face="Courier New, Courier, monospace">(c)
            oxyGen will do a batch validation of documents included in a
            project file, which is close to what I want, but still
            requires me to fire up oXygen, make the project file and
            click a couple of times, so not really a batch process</font></font></p>
      <p><font size="+1"><font face="Courier New, Courier, monospace">Maybe
            someone else has found a way round this, or could explain to
            me why it's just not possible. And how exactly does oXygen
            do this magic?<br>
          </font></font></p>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
  </body>
</html>