W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2008

Re: calabash p:delete not working

From: James Fuller <james.fuller.2007@gmail.com>
Date: Sat, 4 Oct 2008 11:59:45 +0200
Message-ID: <a0ad8ffe0810040259g6f9c5e06r26b4042df8fa42ae@mail.gmail.com>
To: mozer <xmlizer@gmail.com>
Cc: "Norman Walsh" <ndw@nwalsh.com>, "XProc Dev" <xproc-dev@w3.org>

On Sat, Oct 4, 2008 at 11:55 AM, mozer <xmlizer@gmail.com> wrote:
> jim,
>
> well the bug in your code (but probably there is also a bug in Calabash) :)
>
>
thx !

I seemed to have completely missed that we are *also& double quoting
match attributes ... I think that this double quoting is gonna be a
'cowpath' real quick in v1.

I can confirm that this works as you say.

ta, J

> 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 10:00:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 4 October 2008 10:00:25 GMT