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

Re: calabash p:delete not working

From: Florent Georges <fgeorges@fgeorges.org>
Date: Sun, 5 Oct 2008 11:47:02 +0200
Message-ID: <ebaca5bf0810050247k48566895qc2da78e3b19de4a7@mail.gmail.com>
To: "Josh Matthews" <joshmatthews@gmail.com>
Cc: mozer <xmlizer@gmail.com>, "Norman Walsh" <ndw@nwalsh.com>, "XProc Dev" <xproc-dev@w3.org>

2008/10/5 Josh Matthews wrote:

> Hence, there's no defined error to raise!

  Well, as you've said, there is a dynamic error for case where the
value of an option does not match its type, and an empty match pattern
is not correct.  What about the following:

    <p:delete>
       <p:with-option name="match" select="
           if ( exists(//a) ) then //a else '/..'"/>
    </p:delete>

?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/
Received on Sunday, 5 October 2008 09:47:37 GMT

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