W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > August 2008

Re: p:option not required without default value

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 29 Aug 2008 09:01:00 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m263pkc6wj.fsf@nwalsh.com>
"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.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | As long as a word remains unspoken, you
http://nwalsh.com/            | are its master; once you utter it, you
                              | are its slave.--Solomon Ibn Gabirol

Received on Friday, 29 August 2008 13:01:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 29 August 2008 13:01:45 GMT