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

Re: p:directory step

From: Innovimax SARL <innovimax@gmail.com>
Date: Wed, 1 Aug 2007 18:40:30 +0200
Message-ID: <546c6c1c0708010940j3a1bd0cfk67dccc50f8e4e132@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org

On 8/1/07, Norman Walsh <ndw@nwalsh.com> wrote:
> Revised slightly:
>
> Vasil Rangelov proposes[1] an atomic step to read a directory listing
> and return it as a document. Jeni and I chatted about it a bit and it
> seems like a good idea. Here's my (slightly revised) proposal:
>
> <p:declare-step type="p:directory-list">
>   <p:output port="result"/>
>   <p:option name="path" value="."/>
>   <p:option name="recursive" value="no"/>
>   <p:option name="filter"/>
> </p:declare-step>
>

Warning : since it's recursive it could be neverending
/dir that contains a link to /dir

I propose to add an option name="max-level" that is defaulted to "10"

Anyway, we could propose to the user to always use it in conjonction with p:try

Mohamed

-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Wednesday, 1 August 2007 16:40:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:53 GMT