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/
>