p:xinclude 004 (AB)

Tests p:xinclude

Test ab-xinclude-004.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
         <p:output port="result"/>
               <document xmlns="">
                  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="../documents/xpath-xinclude-doc.xml" xpointer="xpath(/doc/p[contains(.,'^(') and contains(.,'^)')])"/>
MorganaXProc passing XML Calabash failing

Schematron validation

      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
            <s:rule context="/">
               <s:assert test="document">The root element is not 'document'.</s:assert>
               <s:assert test="document/p">The root element does not have a child 'p'.</s:assert>
               <s:assert test="document/p/text()='Parenthetical (in content, I mean) p'">The text child of 'p' is not 'Parenthetical (in content, I mean) p'.</s:assert>

Revision history

25 Aug 2019, Achim Berndzen

Initial tests for p:xinclude. Ported for 1.0 test suite