Re: Detecting unbound options

"Henry S. Thompson" <ht@inf.ed.ac.uk> writes:
> OK, so maybe I just don't understand Mozer's proposal

I think Mohamed's proposal is to replace 

   <p:with-option name="include-filter" select="$include-filter">

with

   <p:with-option name="include-filter" bound-like-this-option="include-filter"/>

(where @bound-like-this-option and @select are mutually exclusive).

The semantics of 

  bound-like-this-option=foo

are that if $foo has a value, the option gets that value. Otherwise,
the option gets no value. Since the value of @bound-like-this-option
is a QName, not an XPath expression, no error occurs if $foo isn't
bound.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Never contend with a man who has
http://nwalsh.com/            | nothing to lose.-- Gracián

Received on Thursday, 28 May 2009 12:48:20 UTC