Skip to content

Commit

Permalink
Fix scoping of imported function names
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Aug 29, 2024
1 parent 3a93a7f commit fcbe673
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions xproc/src/main/xml/specification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3582,16 +3582,11 @@ declared more than once in the same scope.</error></para>
<section>
<title>Scoping of imported function names</title>

<para>If functions can be imported with <tag>p:import-functions</tag>, the scope
of the imported functions is to expressions that appear in elements and
attributes that follow the <tag>p:import-functions</tag> element, in document
order, in the pipeline document.</para>

<para>If functions are imported in a <tag>p:library</tag>, they are also
available in pipelines that import that library. The scope of the imported
functions in the importing pipeline is the expressions that follow the
<tag>p:import</tag> element that imports the library, in document order,
in the importing pipeline document.</para>
<para>The scope of function names imported with <tag>p:import-functions</tag> is
limited to expressions that appear in elements and attributes that follow the
<tag>p:import-function</tag> element, in document order, in the pipeline
document.</para>

</section>
</section>

Expand Down

0 comments on commit fcbe673

Please sign in to comment.