<?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">

<t:title>Test validsch-002</t:title>

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

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

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

<p:validate-with-schematron name="schematron" assert-valid="false">
  <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>Invalid Book</title>
<chapter xml:id="ch1">
<title>XML?</title>
<para>This is a story about <biblioref linkend="xml10"/> and
<biblioref linkend="xml11"/>. We explicitly and erroneously point
to this chapter with biblioref: <biblioref linkend="ch1"/>.</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>

