W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2009

Re: p:value-available not as useful as I'd like. . .

From: mozer <xmlizer@gmail.com>
Date: Sun, 29 Nov 2009 21:10:41 +0100
Message-ID: <21d9ade60911291210q73abe769t6af66b0721cfde2@mail.gmail.com>
To: Florent Georges <fgeorges@fgeorges.org>
Cc: "Henry S. Thompson" <ht@inf.ed.ac.uk>, xproc-dev <xproc-dev@w3.org>, Michael Kay <mike@saxonica.com>
On Sun, Nov 29, 2009 at 8:50 PM, Florent Georges <fgeorges@fgeorges.org>wrote:

> 2009/11/27 mozer wrote:
>
> > Probably something like
> > f:value-available-or-the-other-one('foo', xyzzy) that would
> > give what you intend
>
>   Yes, if you can find a suitable name ;-)
>

Indeed !


> I would personally
> prefer something like the XSLT conditional compilation with the
> attribute @when:
>

You probably mean @use-when ; we already have it in XProc, but the problem
of @use-when is that it is evaluated **on compilation of the stylesheet**


>
> <p:with-option name="foo" select="$bar"  when="p:value-available('bar')"/>
> <p:with-option name="foo" select="xyzzy"
> when="not(p:value-available('bar'))"/>
>
>  But maybe that's too big a change for a CR?
>
>  Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/
>
Received on Sunday, 29 November 2009 20:11:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 29 November 2009 20:11:14 GMT