Re: p:option not required without default value

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Norman Walsh writes:

> "Innovimax SARL" <innovimax@gmail.com> writes:
>
>> Nothing is said in the spec about what to do if we have the following
>> pipeline
>>
>> <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:ix="
>> http://www.innovimax.fr/ns">
>>     <p:declare-step type="ix:test">
>>         <p:input port="source"/>
>>         <p:output port="result"/>
>>         <p:option name="not-required-no-default"/>
>>         <p:choose>
>>             <p:when test="$not-required-no-default">
>>                 <p:identity/>
>>             </p:when>
>>             <p:otherwise>
>>                 <p:filter select="/*"/>
>>             </p:otherwise>
>>         </p:choose>
>>     </p:declare-step>
>>     <ix:test/>
>> </p:pipeline>
>
> You're right. That either has to be an error or we have to specify what
> the default default value for options.

The empty node set.  That way testing it will fail, which is surely
what you want.

Hmm.  Problem is that there is no XPath equivalent of 'boundp'. . .

I can see arguments either way.  Flbssst. . .

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFIt/pQkjnJixAXWBoRAum3AJ0RrJN3NyK7wyntd/kvKKHMQMR/8ACfROCi
fVdf9UuN8SazooZv1XaEwTk=
=b9vF
-----END PGP SIGNATURE-----

Received on Friday, 29 August 2008 13:32:37 UTC