This test demonstrates that a static option declared in an imported pipeline is an in-scope option in the importing pipeline.
Test nw-static-option-002.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="main" version="3.1" exclude-inline-prefixes="#all">
<p:import href="../documents/option-library.xpl"/>
<p:output port="result"/>
<p:identity>
<p:with-input>
<p:document href="{$source-document}"/>
</p:with-input>
</p:identity>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="doc">The document element is incorrect.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Initial test