[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

Subject: Re: Aw: Re: Aw: Re: 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
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.


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.