Re: p:directory step

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 UTC