Re: p:directory step

/ Jeni Tennison <jeni@jenitennison.com> was heard to say:
| Innovimax SARL wrote:
|> That's interesting but how hard it will be with such a construct
|> to have the sequence of all files in a directory (non recusive)?
|>
|> <p:directory-list name="list" path="." filter="*.xml"/>
|>  <p:for-each>
|>     <p:iteration-source select="//c:file"/>
|>     <p:output port="result"/>
|>     <p:load href="{/c:file/@name}"/>
|>  </p:for-each>
|>
|> Would that work ?
|
| I think to make this usable, we'd want the 'name' attribute on <c:file> to
| contain an absolute URI (and I'd suggest renaming it to 'href').

Ok. I thought of that and decided it was simpler to give the flat
names. If we make them absolute, we have to be clear that the filter
works on just the name. Or abandon the recursive option and just allow
"**/*.xml" or some such.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Criticism talks a good deal of
http://nwalsh.com/            | nonsense, but even its nonsense is a
                              | useful force. It keeps the question of
                              | art before the world, insists upon its
                              | importance, and makes it always in
                              | order.--Henry James

Received on Tuesday, 24 July 2007 16:58:56 UTC