RE: Test namespaces-004

> Do you think this test should succeed, or fail? I think it should
> fail, though I'm not sure what error it should raise. Excluding the
> HTML namespace makes the h: prefix unresolvable, I think. But I could
> be wrong...
> 
> <t:test xmlns:t="http://xproc.org/ns/testsuite"
>         xmlns:p="http://www.w3.org/ns/xproc"
>         xmlns:c="http://www.w3.org/ns/xproc-step"
>         xmlns:err="http://www.w3.org/ns/xproc-error">
> 
> <t:title>Test p:namespaces #004</t:title>
> 
> <t:input port='source'>
> <html xmlns="http://www.w3.org/1999/xhtml">
>   <head>
>     <title>Some title</title>
>   </head>
>   <body>
>     <h1>Some title</h1>
>     <p>Some <del>deleted</del>text.</p>
>   </body>
> </html>
> </t:input>
> 
> <t:pipeline>
> <p:declare-step name="pipeline">
> <p:input port="source"/>
> <p:output port="result"/>
> 
> <p:delete>
>   <p:with-option name="match" select="'h:del'">
>     <p:namespaces xmlns:h="http://www.w3.org/1999/xhtml" 
> except-prefixes="h p"/>
>   </p:with-option>
> </p:delete>
> 
> </p:declare-step>
> </t:pipeline>
> 
> <t:output port='result'>
> <html xmlns="http://www.w3.org/1999/xhtml">
>   <head>
>     <title>Some title</title>
>   </head>
>   <body>
>     <h1>Some title</h1>
>     <p>Some <del>deleted</del>text.</p>
>   </body>
> </html>
> </t:output>
> 
> </t:test>
> 

I think you are right. The test should fail in p:delete, when applying
the math pattern. ...our implementation runs fine on this test, but I
can already see where the problem lies.

I will fix the test. Thanks for catching this.

Regards,
Vojtech

Received on Monday, 10 November 2008 07:49:36 UTC