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

Re: Non-required options cannot be empty?

From: Florent Georges <fgeorges@fgeorges.org>
Date: Thu, 24 Nov 2011 18:18:53 +0100
Message-ID: <CADyR_r29-HcvxRo6ug6WC7ETcWfB6if_XyJxx-gFKPzh5csL5A@mail.gmail.com>
To: Geert Josten <geert.josten@dayon.nl>
Cc: XProc Dev <xproc-dev@w3.org>
On 24 November 2011 18:02, Geert Josten wrote:

> Yeah, was afraid someone was going to mention that. But how about 4
> non-required option?  I would have to consider 24 possible
> combinations..

  That might be a sign that you should use parameters instead?  But I
agree, having a static XPath error when dereferencing an option which
has simply not been specified is rather extreme...  On the other hand,
if a default value is acceptable to you, then just use one (remember
though that options are strings, so use '' instead of ()).


Florent Georges
Received on Thursday, 24 November 2011 17:19:43 UTC

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