[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Aw: Re: Aw: Re: Processing a list of non-xml files
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.

|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|