Re: add-attribute test case

mozer <xmlizer@gmail.com> writes:
> I came across an interesting case about p:add-attribute
>
> Here is the pipeline
>
> <?xml version="1.0" encoding="UTF-8"?>
> <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"
>    version="1.0">
>   <p:add-attribute match="div" attribute-name="a" attribute-namespace="foo" attribute-prefix="_1"
> attribute-value="3"/>
> </p:pipeline>
>
> And here is the input file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <root>
>   <div xmlns:_1="bar">
>     <div xmlns:_2="bar">
>       <div xmlns:_3="bar">
>       </div>     
>     </div> 
>   </div>
> </root>
>
> Calabash gives the following result
>
> <root>
>   <div xmlns:_1="bar" _1:a="3">
>       <div xmlns:_2="bar" _1:a="3">
>          <div xmlns:_3="bar" _1:a="3">
>       </div>     
>       </div> 
>   </div>
> </root>

XML Calabash 0.9.33 gives me this result:

<root>
  <div xmlns:_1="bar" xmlns:_1_1="foo" _1_1:a="3">
    <div xmlns:_2="bar" xmlns:_1="foo" _1:a="3">
      <div xmlns:_3="bar" _1:a="3">
      </div>
    </div>
  </div>
</root>

Can you still reproduce the error, Mohamed?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 413 624 6676
www.marklogic.com

Received on Saturday, 27 August 2011 11:08:59 UTC