|
Subject: Re: [xsl] Processing a list of non-xml files in XSLT? From: "dvint dvint@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 14 Aug 2024 20:35:36 -0000 |
Sorry, just noticed the use of that string is not in the original
post.collection($rawditacollectionstring)Is how it was used.Sent from my
Verizon, Samsung Galaxy smartphone
-------- Original message --------From: "dvint dvint@xxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: 8/14/24 1:24 PM (GMT-08:00)
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Processing a list of
non-xml files in XSLT? It is what you want. You use it with the collection
call in the for-each. What i discovered here is the uri-collection() call for
some reason doesn't use the same format which requires the escaping of the
|.The select allows you to specify a selection string. In this case I'm
looking for all .dita and .xml files in the directory. There is a recurse
parameter for it to search subdirectories as well.B Based upon the
documentation, you can actually extract files from a zip file as
well...danSent from my Verizon, Samsung Galaxy smartphone-------- Original
message --------From: "Mark Giffin m1879@xxxxxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: 8/14/24 1:12 PM (GMT-08:00)
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] 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.\xA0
..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
EasyUnsubscribe
(by email)
XSL-List info and archive
EasyUnsubscribe
(by email)
XSL-List info and archive
EasyUnsubscribe
(by email)
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Processing a list of non-, dvint dvint@xxxxxxxx | Thread | [xsl] Devastating News re CM Sperbe, B Tommie Usdin btusd |
| Re: [xsl] Processing a list of non-, dvint dvint@xxxxxxxx | Date | [xsl] Devastating News re CM Sperbe, B Tommie Usdin btusd |
| Month |