<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error"
	ignore-whitespace-differences="true">

<t:title>Test validxsd-005</t:title>

<t:pipeline>
<p:declare-step version='1.0' name="pipeline">
<p:output port="result"/>

<!-- Use the schema location hint -->
<p:validate-with-xml-schema>
  <p:input port="source">
    <p:document href="http://tests.xproc.org/tests/doc/document2.xml"/>
  </p:input>
  <p:input port="schema">
    <p:document href="http://tests.xproc.org/tests/doc/document-attr.xsd"/>
  </p:input>
</p:validate-with-xml-schema>

<!-- this doesn't actally do anything, it just strips out the PSVI -->
<p:delete match="noSuchAnimal"/>

</p:declare-step>
</t:pipeline>

<t:output port='result'>
<doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     default-attribute="defaulted"
     xsi:noNamespaceSchemaLocation="document.xsd"><p>This is a test document</p></doc></t:output>

</t:test>

