Static option 002 (NW)
This test demonstrates that a static option declared in an
imported pipeline is an in-scope option in the importing pipeline.
Test is expected to pass.
The pipeline
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:t="http://xproc.org/ns/testsuite/3.0"
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>
Result
<doc xmlns:t="http://xproc.org/ns/testsuite/3.0"/>
Schematron checks
<s:schema xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:t="http://xproc.org/ns/testsuite/3.0"
queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="doc">The document element is incorrect.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 25 Apr 2026, Norm Tovey-Walsh
- Initial test