Tests that Asciidoctor creates PDF.
Test asciidoctor-007.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/asciidoctor.xpl"/>
<p:output port="result" sequence="true"/>
<cx:asciidoctor backend="pdf">
<p:with-input>
<p:inline content-type="text/plain">
This is a paragraph.
So is this.
And this.
</p:inline>
</p:with-input>
</cx:asciidoctor>
<p:cast-content-type content-type="application/xml">
<p:with-input select="p:document-properties(/)"/>
</p:cast-content-type>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="fn" uri="http://www.w3.org/2005/xpath-functions"/>
<s:pattern>
<s:rule context="/">
<s:assert test="fn:map">The root is incorrect.</s:assert>
</s:rule>
</s:pattern>
<s:pattern>
<s:rule context="/fn:map">
<s:assert test="fn:string[@key='content-type']='application/pdf'">Wrong content type</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Created test.