- From: Norman Walsh <ndw@nwalsh.com>
- Date: Mon, 06 Aug 2007 14:09:09 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <87k5s8k01m.fsf@nwalsh.com>
Do we expect the following pipeline to work?
<p:pipeline xmlns:p="...">
<p:option name="delete" value="html:div"
xmlns:html="http://www.w3.org/1999/xhtml"/>
<p:delete>
<p:input port="source">
<p:inline>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...</head>
<body>
<h1>Delete My Divs</h1>
<div>
...
</div>
</body>
</p:inline>
</p:input>
<p:option name="match" select="$delete"/>
</p:delete>
</p:pipeline>
Where "work" means that the pipeline runs and produces:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...</head>
<body>
<h1>Delete My Divs</h1>
</body>
Suppose local.xml contains:
<commands>
<delete xmlns:h="http://www.w3.org/1999/xhtml"
match="h:div"/>
</commands>
Do we expect this to work?
<p:pipeline xmlns:p="...">
<p:load name="load-commands" href="local.xml"/>
<p:delete>
<p:input port="source">
<p:inline>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...</head>
<body>
<h1>Delete My Divs</h1>
<div>
...
</div>
</body>
</p:inline>
</p:input>
<p:option name="match" select="/commands/delete/@match">
<p:pipe step="load-commands" port="result"/>
</p:option>
</p:delete>
</p:pipeline>
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | For the mental patient's family and
http://nwalsh.com/ | society, mental illness is a 'problem';
| for the patient himself it is a
| 'solution'.--Thomas Szasz
Received on Monday, 6 August 2007 18:09:25 UTC