[xquery-talk] How to run xquery dynamically on file listing fromdirectory

bryan rasmussen rasmussen.bryan at gmail.com
Sat Apr 12 14:52:46 PDT 2008

so you're saying Saxon will accept a file scheme uri to the directory?
Just to clarify.
Bryan Rasmussen

On Thu, Apr 10, 2008 at 11:48 PM, Michael Kay <mike at saxonica.com> wrote:
>  >Is there anyway to do something like:
>     for $x in collection("xmlfiles")
>  where 'xmlfiles' is a subdirectory containing the actual xml files I want to
>  use?  I would need to know the exact syntax, as this is all new to me.
>  As others have said, the interpretation of the URI passed to collection() is
>  very much processor-dependent. Altova have their own XQuery processor, and I
>  would imagine it treats collection() in the same way as their XSLT
>  processor: in their 2007 product that's effectively a null implementation,
>  in the 2008 version it does roughly the same as Saxon: you can either
>  specify a directory name, or the name of an XML file that acts as a catalog
>  of the collection. IIRC, they don't provide the ability to filter the
>  contents of the directory.
>  Michael Kay
>  http://www.saxonica.com/
>  _______________________________________________
>  talk at x-query.com
>  http://x-query.com/mailman/listinfo/talk

More information about the talk mailing list