bug with exclude-inline-prefixes

Hi,

If I'm not mistaken it seems Calabash (0.9.19) does not excludes  
namespaces listed in exclude-inline-prefixes for the inline documents  
inside a p:declare-step child of a p:declare-step.

For instance the following pipeline:

<p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc"
   xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:cx="http://xmlcalabash.com/ns/extensions 
"
   xmlns:my="http://www.example.com/ns/extensions" exclude-inline- 
prefixes="#all">

   <p:output port="result"/>

   <p:declare-step type="my:test" >
     <p:output port="result"/>
     <p:identity>
       <p:input port="source">
         <p:inline>
           <doc/>
         </p:inline>
       </p:input>
     </p:identity>
   </p:declare-step>

   <my:test/>
</p:declare-step>

Is expected to return:
<doc/>

But returns:
  <doc
      xmlns:cx="http://xmlcalabash.com/ns/extensions"
      xmlns:c="http://www.w3.org/ns/xproc-step"
      xmlns:my="http://www.example.com/ns/extensions"/>


The spec says "A namespace URI designated by using an exclude-inline- 
prefixes attribute on any ancestor p:declare-step, p:pipeline,  
orp:library is also excluded. (In other words, the effect of several  
exclude-inline-prefixes attributes among the ancestors of p:inlineis  
cumulative.)"
ref: http://www.w3.org/TR/xproc/#p.inline

Feel free to add the sample pipeline to the XProc test suite!

BR,
Romain.

Received on Monday, 22 March 2010 09:47:54 UTC