- From: Norman Walsh <ndw@nwalsh.com>
- Date: Fri, 16 Oct 2009 13:45:23 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <m2fx9j9qrw.fsf@nwalsh.com>
Innovimax W3C <innovimax+w3c@gmail.com> writes:
> So for the record and as punitive fact, can the editor give the
> pipeline that would work for the case at the top of this thread ?
That example is in the spec in the value-available section :-)
Well, a small part of it, anyway. In its full glory, we have this
monstrosity:
<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:choose>
<p:when test="p:value-available('include-filter')
and p:value-available('exclude-filter')">
<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:when>
<p:when test="p:value-available('include-filter')">
<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:directory-list>
</p:when>
<p:when test="p:value-available('exclude-filter')">
<p:directory-list>
<p:with-option name="path" select="$path">
<p:empty/>
</p:with-option>
<p:with-option name="exclude-filter" select="$exclude-filter">
<p:empty/>
</p:with-option>
</p:directory-list>
</p:when>
<p:otherwise>
<p:directory-list>
<p:with-option name="path" select="$path">
<p:empty/>
</p:with-option>
</p:directory-list>
</p:when>
</p:choose>
</p:declare-step>
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Time is a great teacher, but
http://nwalsh.com/ | unfortunately it kills all its
| pupils.-- Berlioz
Received on Friday, 16 October 2009 17:46:07 UTC