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

Dealing with unbound options

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 15 Oct 2009 22:52:37 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2ws2wgidm.fsf@nwalsh.com>
Someone please tell me I'm having a brain cramp. I want to write a
recursive-directory-list step. It starts out like this:

<p:declare-step type="cx:recursive-directory-list">
  <p:output port="result"/>
  <p:option name="path" required="true"/>
  <p:option name="include-filter"/>
  <p:option name="exclude-filter"/>
  <p:option name="depth" select="-1"/>
  
  <p:directory-list>
    <p:with-option name="path" select="$path">
      <p:empty/>
    </p:with-option>
    <p:with-option name="include-filter" select="$include-filter">
      <p:empty/>
    </p:with-option>
    <p:with-option name="exclude-filter" select="$exclude-filter">
      <p:empty/>
    </p:with-option>
  </p:directory-list>
</p:declare-step>

Except that the reference to $include-filter is an error if the
include-filter option wasn't specified on the call to
cx:recursive-directory-list.

I think I remember talking about this. Someone please tell me we
thought of a solution.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | When someone tells you something defies
http://nwalsh.com/            | description, you can be pretty sure
                              | he's going to have a go at it
                              | anyway.--Clyde B. Aster

Received on Friday, 16 October 2009 02:53:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 October 2009 02:53:21 GMT