Re: Aw: Re: Aw: Re: [xsl] Processing a list of non-xml files in XSLT?

Subject: Re: Aw: Re: Aw: Re: [xsl] Processing a list of non-xml files in XSLT?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Aug 2024 19:45:48 -0000
On 12/08/2024 21:20, dvint dvint@xxxxxxxxx wrote:
I think I was illustrating the code that was working with that.
Anyway, I have it as you show. It seems to be a bug in Saxon with the
uri-collection() as I can use the select with a single file extension,
as soon as I add the | and the second format it fails.


Uh, it indeed seems that uri-collection behaves differently to collection:


PS C:\Users\marti> & 'C:\Program Files\Saxonica\libsaxon-HEC-windows-amd64-v12.5.0\command\Query.exe' -qs:"collection('file:///C:/Users/marti/Pictures/Screenshots?select=*.(png|jp g)') => count()" !method=text 23 PS C:\Users\marti> & 'C:\Program Files\Saxonica\libsaxon-HEC-windows-amd64-v12.5.0\command\Query.exe' -qs:"uri-collection('file:///C:/Users/marti/Pictures/Screenshots?select=*.(pn g|jpg)') => count()" !method=text Error on line 1 column 16 of file:/C:/Users/marti/: B FODC0004B Invalid URI passed to uri-collection: B file:///C:/Users/marti/Pictures/Screenshots?select=*.(png|jpg) Query failed with dynamic error: Invalid URI passed to uri-collection: file:///C:/Users/marti/Pictures/Screenshots?select=*.(png|jpg) PS C:\Users\marti> java -cp 'C:\Program Files\Saxonica\SaxonHE12-5J\saxon-he-12.5.jar' net.sf.saxon.Query -qs:"uri-collection('file:///C:/Users/marti/Pictures/Screenshots?select=*.(pn g|jpg)') => count()" !method=text Error on line 1 column 16 of file:/C:/Users/marti/: B FODC0004B Invalid URI passed to uri-collection: B file:///C:/Users/marti/Pictures/Screenshots?select=*.(png|jpg) Query failed with dynamic error: Invalid URI passed to uri-collection: file:///C:/Users/marti/Pictures/Screenshots?select=*.(png|jpg) PS C:\Users\marti> java -cp 'C:\Program Files\Saxonica\SaxonHE12-5J\saxon-he-12.5.jar' net.sf.saxon.Query -qs:"collection('file:///C:/Users/marti/Pictures/Screenshots?select=*.(png|jp g)') => count()" !method=text 23


Let's wait whether Mike or Norm pick that up here as a bug.


Current Thread