<?xml version="1.0" encoding="UTF-8"?>
<t:test expected="pass"
        xmlns:t="http://xproc.org/ns/testsuite/3.0">
   <t:info>
      <t:title>Document properties 005</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2024-12-28</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Fixed utterly bogus XPath expression.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2021-11-27</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Fixed test as consequence of pr#1042.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2021-06-10</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Added attribute 'queryBinding' to schematron's schema.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2019-11-23</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed test from p:document-properties-document() to p:document-properties()</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2018-12-03</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed test, because it not an error anymore, if 
      	 		parameter of p:document-properties-document() is not a
      	 		document.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2017-09-24T17:47:42+01:00</t:date>
            <t:author>
               <t:name>Norman Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Port my test suite; add documentation and schemas</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:pipeline src="../pipelines/doc-prop-005.xpl"/>
   <t:schematron>
      <s:schema queryBinding="xslt2"
                xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns prefix="j"
               uri="http://www.w3.org/2005/xpath-functions"/>
         <s:pattern>
            <s:rule context="/">
               <s:assert test="j:map">The pipeline root is not 'j:map'.</s:assert>
               <s:assert test="count(j:map/*)=0">Root j:map shouldnt have child elements.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   </t:schematron>
</t:test>
