W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2012

Schematron with relative paths for document functions

From: Robert Stuart <RobertStuart@crystalMatrixSoftware.com>
Date: Tue, 21 Feb 2012 11:20:45 -0500
Message-Id: <94F42816-59E1-41DB-A654-0BBAAB754455@crystalMatrixSoftware.com>
To: xproc-dev@w3.org
I have schematron that has configuration files it reads into variables such as

<sch:let name="countriesList"
            value="document('../../CVE/Countries.xml')//cve:CVE/cve:Enumeration/cve:Term/cve:Value"/>

The ../.. path is relative to where the .sch file is. This works fine for executing the schematron from oxygen but when I put 

<p:validate-with-schematron>
            <p:documentation>
                Schematron validate the source doc against the schematron.
            </p:documentation>
            <p:input port="schema">
                <p:document href="../Schematron/test.sch"/>
            </p:input>
            <p:with-param name="allow-foreign" select="'true'"/>
        </p:validate-with-schematron>

I get errors that Countries.xml does not exist at a path that would coincide with starting at the location of the input document not the .sch file. 

What obvious thing am I missing?

Bob Stuart


Received on Tuesday, 21 February 2012 16:21:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 21 February 2012 16:21:09 GMT