<?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 validsch-001</t:title>

<t:input port="source"
	 href="../doc/docbook-valid.xml"/>

<t:input port="schema"
	 href="../doc/docbook.sch"/>

<t:pipeline>
<p:declare-step version='1.0' name="main" exclude-inline-prefixes="t c err">
<p:input port="parameters" kind="parameter"/>
<p:input port="source"/>
<p:input port="schema"/>
<p:output port="result"/>

<p:validate-with-schematron name="schematron">
  <p:input port="source">
    <p:pipe step="main" port="source"/>
  </p:input>
  <p:input port="schema">
    <p:pipe step="main" port="schema"/>
  </p:input>
</p:validate-with-schematron>

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

<t:output port='result'>
<book xmlns="http://docbook.org/ns/docbook"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      version="5.0">
<title>Valid Book</title>
<chapter xml:id="ch1">
<title>XML?</title>
<para>This is a story about <biblioref linkend="xml10"/> and
<biblioref linkend="xml11"/>. We explicitly reference
<biblioref linkend="xmlns10"/> and we explicitly don't reference
<citetitle>Namespaces in XML 1.1</citetitle>.</para>
</chapter>

<bibliography>
<bibliomixed xml:id="xml10"><abbrev>XML 1.0</abbrev>
<citetitle xlink:href="http://www.w3.org/TR/REC-xml/">Extensible
Markup Language (XML) 1.0 (Fourth Edition)</citetitle>. Tim Bray,
Jean Paoli, C. M. Sperberg-McQueen, et. al.
editors. W3C Recommendation 16 August 2006.</bibliomixed>

<bibliomixed xml:id="xmlns10"><abbrev>Namespaces 1.0</abbrev>
<citetitle xlink:href="http://www.w3.org/TR/REC-xml-names/">Namespaces
in XML 1.0 (Second Edition)</citetitle>. Tim Bray,
Dave Hollander, Andrew Layman, et. al.,
editors. W3C Recommendation 16 August 2006.</bibliomixed>

<bibliomixed xml:id="xml11"><abbrev>XML 1.1</abbrev>
<citetitle xlink:href="http://www.w3.org/TR/xml11/">Extensible
Markup Language (XML) 1.1 (Second Edition)</citetitle>. Tim Bray,
Jean Paoli, C. M. Sperberg-McQueen, et. al.
editors. W3C Recommendation 16 August 2006.</bibliomixed>

<bibliomixed xml:id="xmlns11"><abbrev>Namespaces 1.1</abbrev>
<citetitle xlink:href="http://www.w3.org/TR/xml-names11/">Namespaces
in XML 1.1 (Second Edition)</citetitle>. Tim Bray,
Dave Hollander, Andrew Layman, et. al.,
editors. W3C Recommendation 16 August 2006.</bibliomixed>
</bibliography>
</book>
</t:output>

</t:test>

