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

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

From: Florent Georges <fgeorges@fgeorges.org>
Date: Sun, 29 Nov 2009 20:50:34 +0100
Message-ID: <ebaca5bf0911291150h3d1abd52g67a550d8e4ccdaf9@mail.gmail.com>
To: mozer <xmlizer@gmail.com>
Cc: "Henry S. Thompson" <ht@inf.ed.ac.uk>, xproc-dev <xproc-dev@w3.org>, Michael Kay <mike@saxonica.com>
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 ;-) I would personally
prefer something like the XSLT conditional compilation with the
attribute @when:

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


Florent Georges
Received on Sunday, 29 November 2009 19:51:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:06 UTC