If you don’t specify a boundary, one will be created for you.
Test nw-http-request-122.xml is expected to pass.
It requires the following features: p:http-request.
<p:declare-step xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="c xs" version="3.0">
<p:output port="result"/>
<p:http-request href="http://localhost:8246/service/check-multipart" method="post" headers="map{ 'content-type': 'multipart/alternative' }">
<p:with-input>
<p:inline>
<doc1/>
</p:inline>
<p:inline>
<doc2/>
</p:inline>
</p:with-input>
</p:http-request>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="p" uri="http://www.w3.org/ns/xproc"/>
<s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
<s:pattern>
<s:rule context="/*">
<s:assert test="self::check-multipart">The pipeline root is not check-multipart.</s:assert>
<s:assert test="string(@boundary) != ''">The boundary is wrong.</s:assert>
<s:assert test="@content-type = 'multipart/alternative'">The content-type is wrong.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Multipart boundary test for p:http-request.