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 |
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.
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Aw: Re: Aw: Re: [xsl] Processin, dvint dvint@xxxxxxxx | Thread | Re: [xsl] Processing a list of non-, Michael Kay michaelk |
Re: Aw: Re: Aw: Re: [xsl] Processin, dvint dvint@xxxxxxxx | Date | Re: [xsl] Processing a list of non-, Michael Kay michaelk |
Month |