[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: 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
Re:  Processing a list of non-xml files in XSLT?
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:  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

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.