- From: Norman Walsh <ndw@nwalsh.com>
- Date: Sat, 08 Nov 2008 22:28:04 -0500
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <m2od0pa88r.fsf@nwalsh.com>
Vojtech,
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>
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Some people will never learn anything,
http://nwalsh.com/ | for this reason, because they
| understand everything too soon.-- Pope
Received on Sunday, 9 November 2008 03:28:45 UTC