<p:declare-step version='1.0' name="main"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:c="http://www.w3.org/ns/xproc-step"
                xmlns:cx="http://xmlcalabash.com/ns/extensions"
                exclude-inline-prefixes="c cx">
<p:output port="result"/>

<p:import href="../../../resources/library.xpl"/>

<cx:asciidoctor backend="docbook">
  <p:input port="source">
    <p:inline><doc>Hello _World_!</doc>
    </p:inline>
  </p:input>
</cx:asciidoctor>

<p:choose>
  <p:when test="/simpara">
    <p:identity>
      <p:input port="source">
        <p:inline><c:result>PASS</c:result></p:inline>
      </p:input>
    </p:identity>
  </p:when>
  <p:otherwise>
    <p:error code="FAIL">
      <p:input port="source">
        <p:inline><message>Did not find expected text.</message></p:inline>
      </p:input>
    </p:error>
  </p:otherwise>
</p:choose>

</p:declare-step>


Format the README; use docbook5 backend
<p:declare-step version='1.0' name="main"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:c="http://www.w3.org/ns/xproc-step"
                xmlns:cx="http://xmlcalabash.com/ns/extensions"
                xmlns:db="http://docbook.org/ns/docbook"
                exclude-inline-prefixes="c cx db">
<p:output port="result"/>

<p:import href="../../../resources/library.xpl"/>

<cx:asciidoctor backend="docbook5">
  <p:input port="source">
    <p:data href="../../../README.adoc"/>
  </p:input>
</cx:asciidoctor>

<p:choose>
  <p:when test="/db:article">
    <p:identity>
      <p:input port="source">
        <p:inline><c:result>PASS</c:result></p:inline>
      </p:input>
    </p:identity>
  </p:when>
  <p:otherwise>
    <p:error code="FAIL">
      <p:input port="source">
        <p:inline><message>Did not find expected text.</message></p:inline>
      </p:input>
    </p:error>
  </p:otherwise>
</p:choose>

</p:declare-step>