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

Subject: Re: [xsl] Processing a list of non-xml files in XSLT?
From: "Mark Giffin m1879@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Aug 2024 20:11:53 -0000
Changing the subject a bit, but what is this syntax 
'?select=(*.dita|*.xml)' as an argument to concat()?

<xsl:variable name="rawditacollectionString"
 \xA0\xA0\xA0\xA0\xA0\xA0\xA0 select="concat($rawsrcPath, '?select=(*.dita|*.xml)')"/>

I have assumed I could not get a list of files in a directory using 
XSLT, and so I've been using a simple Python script to create an XML 
file of filenames I can loop through. But if I can use XSLT it would be 
great. XSLT v2 or v3 are options. I would even consider XQuery.

Thanks,
Mark


On Mon 8/12/2024 1:53 PM, dvint dvint@xxxxxxxxx wrote:
> Ok, that fixed the problem.
>
> ..dan
>
>
>
> Sent from my Verizon, Samsung Galaxy smartphone
>
>
> -------- Original message --------
> From: "Michael Kay michaelkay90@xxxxxxxxx" 
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
> Date: 8/12/24 1:40 PM (GMT-08:00)
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Processing a list of non-xml files in XSLT?
>
> >
> > Uh, it indeed seems that uri-collection behaves differently to 
> collection:
> >
>
>
> Indeed. The URI is invalid because the vertical bar should be escaped 
> as %7C. The collection() function is recovering from that by applying 
> the iri-to-uri() function; the uri-collection() function should 
> probably do the same. And if the URI is still invalid, the error 
> message should make a better attempt to explain why.
>
> Michael Kay
> Saxonica
>
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/805141> 
> (by email <>)

Current Thread