Smoke test for the p:markdown-to-text step.
Test nw-markdown-to-html-001.xml is expected to pass.
It requires the following features: markdown-to-html.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" xmlns:test="http://test" version="3.0">
<p:output port="result"/>
<p:markdown-to-html>
<p:with-input>
<p:inline content-type="text/plain">This is some *bold* text.</p:inline>
</p:with-input>
</p:markdown-to-html>
</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="h" uri="http://www.w3.org/1999/xhtml"/>
<s:pattern>
<s:rule context="/">
<s:assert test="h:html">Root element is not 'html'.</s:assert>
<s:assert test="h:html/h:head">HTML head element is missing.</s:assert>
<s:assert test="h:html/h:body">HTML body element is missing.</s:assert>
<s:assert test="h:html/h:body/h:p">HTML body has no paragraph.</s:assert>
<s:assert test="h:html/h:body/h:p/(h:em|h:b)">HTML paragraph has no emphasis.</s:assert>
<s:assert test="h:html/h:body/h:p[starts-with(., 'This is some')]">HTML paragraph has wrong text.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Just added features attribute to mark depencies.
Created test for p:markdown-to-text.