Features: p-validate-with-xsd

ab-validate-with-xsd-021

Tests p:validate-with-xml-schema with use-location-hints.

Test is expected to fail with error code err:XC0156.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0"
                exclude-inline-prefixes="#all">
   <p:output port="result"/>
   <p:validate-with-xml-schema use-location-hints="false">
      <p:with-input>
         <test:doc xmlns:test="http://test.test"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://test.test ../documents/test.xsd"/>
      </p:with-input>
      <p:with-input port="schema">
         <xsd:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                     targetNamespace="http://some-namespace" elementFormDefault="qualified">
            <xsd:element name="other-doc"
                         type="xs:string"/>
         </xsd:schema>
      </p:with-input>
   </p:validate-with-xml-schema>
</p:declare-step>

Revision history

24 May 2022, Achim Berndzen
Initial version.