Tests p:http-request: Tests get for binary document.
Test ab-http-request-012.xml is expected to pass.
It requires the following features: p:http-request.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:http-request href="http://localhost:8246/service/fixed-binary">
<p:with-input>
<p:empty/>
</p:with-input>
</p:http-request>
<p:cast-content-type content-type="application/xml"/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
<s:pattern>
<s:rule context="/">
<s:assert test="c:data">The root element is not 'c:data'.</s:assert>
<s:assert test="c:data/@content-type='image/png'">Content-Type is not 'image/png'.</s:assert>
<s:assert test="c:data/@encoding='base64'">Encoding is not 'base64'.</s:assert>
<s:assert test="starts-with(c:data/text(),'iVBORw0KGgoAAAANSUhEUgAAAPwAAABJCAYAAAAZrEuhAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A') and ends-with(c:data/text(), '/f8AMGN9ADsjEr4AAAAASUVORK5CYII=')">Content is not right.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Added new tests for p:http-request (Ported from 1.0).