W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > November 2008

RE: Test namespaces-004

From: <Toman_Vojtech@emc.com>
Date: Mon, 10 Nov 2008 02:48:43 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870D56E0B2@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-wg@w3.org>

> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 10 November 2008 07:49:37 GMT