- From: mozer <xmlizer@gmail.com>
- Date: Sat, 4 Oct 2008 11:55:08 +0200
- To: "James Fuller" <james.fuller.2007@gmail.com>
- Cc: "Norman Walsh" <ndw@nwalsh.com>, "XProc Dev" <xproc-dev@w3.org>
jim,
well the bug in your code (but probably there is also a bug in Calabash) :)
What you want is this :
<p:delete name="step1" match="//a"/>
which you could also write
<p:delete name="step1">
<p:with-option name="match" select="'//a'"/><!-- see the
double quoting there -->
</p:delete>
Regards,
Xmlizer
On Sat, Oct 4, 2008 at 11:42 AM, James Fuller
<james.fuller.2007@gmail.com> wrote:
>
> might be a prob with p:delete e.g. using the following pipeline
>
> <p:pipeline name="pipeline"
> xmlns:p="http://www.w3.org/ns/xproc">
>
> <p:delete name="step1">
> <p:with-option name="match" select="//a"/>
> </p:delete>
>
> </p:pipeline>
>
> on std input of
>
> <?xml version="1.0" encoding="UTF-8"?>
> <test>
> <a>test1</a>
> <b/>
> </test>
>
> returns
>
> <?xml version="1.0" encoding="UTF-8"?>
> <test>
> <a>test1</a>
> <b/>
> </test>
>
> I would expect the <a/> element to be removed.
>
>
> - Jim Fuller
>
>
Received on Saturday, 4 October 2008 09:55:49 UTC