Tests that a static variable can be used in avt of dynamic inline.
Test ab-static-option-var-033.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
<p:output port="result"/>
<p:variable static="true" name="static-variable" select="18"/>
<p:identity>
<p:with-input select="p:document-properties-document(.)/c:document-properties/a">
<p:inline document-properties="map{'a': $static-variable}">
<doc xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"/>
</p:inline>
</p:with-input>
</p:identity>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
<s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
<s:pattern>
<s:rule context="/">
<s:assert test="a">The pipeline root is not “doc”.</s:assert>
<s:assert test="a/text()='18'">Text node of doc is not '18'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Fixed result document
(c:document-properties
, not p:document-properties
)
Initial test