Tests that page-details works
Test pdf-info-003.xml is expected to pass.
<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
<p:import href="https://xmlcalabash.com/ext/library/pdf-steps.xpl"/>
<p:output port="result"/>
<cx:pdf-info page-details="true">
<p:with-input href="../documents/libreoffice-form.pdf"/>
</cx:pdf-info>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="cx" uri="http://xmlcalabash.com/ns/extensions"/>
<s:ns prefix="f" uri="http://xmlcalabash.com/ns/acro-form"/>
<s:pattern>
<s:rule context="/">
<s:assert test="cx:pdf-info">Wrong document element></s:assert>
</s:rule>
</s:pattern>
<s:pattern>
<s:rule context="/cx:pdf-info">
<s:assert test="cx:version = 1.5">Wrong version</s:assert>
<s:assert test="cx:form = 'acro-form'">Wrong form</s:assert>
<s:assert test="empty(f:acro-form)">Wrong form details</s:assert>
<s:assert test="count(cx:page-details/cx:page) = 1">Wrong page details</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.