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

Re: calabash p:delete not working

From: Josh Matthews <joshmatthews@gmail.com>
Date: Sun, 5 Oct 2008 18:49:59 -0400
Message-ID: <ffee23380810051549v7592c546q7f6283e3ff3d73fa@mail.gmail.com>
To: "Florent Georges" <fgeorges@fgeorges.org>
Cc: mozer <xmlizer@gmail.com>, "Norman Walsh" <ndw@nwalsh.com>, "XProc Dev" <xproc-dev@w3.org>
On Sun, Oct 5, 2008 at 6:47 PM, Josh Matthews <joshmatthews@gmail.com>wrote:

> On Sun, Oct 5, 2008 at 11:46 AM, Josh Matthews <joshmatthews@gmail.com>wrote:
>
>> On Sun, Oct 5, 2008 at 5:47 AM, Florent Georges <fgeorges@fgeorges.org>wrote:
>>
>>>
>>>
>>  What about the following:
>>>
>>>    <p:delete>
>>>        <p:with-option name="match" select="
>>>            if ( exists(//a) ) then //a else '/..'"/>
>>>    </p:delete>
>>
>>
>> Well, yes, that would work - but that comes back to my original point
>> about XML flexibility.
>>
>
> Another clarification: that actually wouldn't work. "if (...) then ..." is
> not a valid XSLT Pattern.
>

Ah, sorry - I'm totally wrong! It is a valid XPath expression, which is what
"select" requires.

Apologies for the noise,

Josh Matthews
Received on Sunday, 5 October 2008 22:50:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 5 October 2008 22:50:37 GMT