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

Re: p:directory step

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 24 Jul 2007 17:58:36 +0100
To: public-xml-processing-model-wg@w3.org
Message-ID: <873azd20xv.fsf@nwalsh.com>
/ 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,

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC