From fcbe673b04e0e9c8a0cee46d2cb861df96b8d9e4 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Thu, 29 Aug 2024 09:34:38 +0100 Subject: [PATCH] Fix scoping of imported function names --- xproc/src/main/xml/specification.xml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/xproc/src/main/xml/specification.xml b/xproc/src/main/xml/specification.xml index 5b1d43fa5..2e156df07 100644 --- a/xproc/src/main/xml/specification.xml +++ b/xproc/src/main/xml/specification.xml @@ -3582,16 +3582,11 @@ declared more than once in the same scope.
Scoping of imported function names -If functions can be imported with p:import-functions, the scope -of the imported functions is to expressions that appear in elements and -attributes that follow the p:import-functions element, in document -order, in the pipeline document. - -If functions are imported in a p:library, 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 -p:import element that imports the library, in document order, -in the importing pipeline document. +The scope of function names imported with p:import-functions is +limited to expressions that appear in elements and attributes that follow the +p:import-function element, in document order, in the pipeline +document. +