xsl-list
[Top] [All Lists]

Re: [xsl] How to read an XML file that is in a subfolder or sub-subfolder or sub-sub-subfolder or ...?

2020-04-07 08:12:01
On 07/04/2020 14:06, Costello, Roger L. costello(_at_)mitre(_dot_)org wrote:
Hi Folks,

My XSLT program has a variable $filename which contains the name of an XML file. The XML 
file is in a folder named "files" or one of its subfolders or one of its 
sub-subfolders or one of its sub-sub-subfolders or ...

In other words, it's somewhere in the tree of folders rooted at "files."
If you're using Saxon PE or EE the EXPath file:list() (http://www.saxonica.com/documentation/index.html#!functions/expath-file/list) function will help you find such files.

I want to open the XML file (wherever it's located within "files") and read it 
into an XSLT variable. Is there a way to do this?

/Roger



--
*John Lumley* MA PhD CEng FIEE
john(_at_)saxonica(_dot_)com <mailto:john(_at_)saxonica(_dot_)com>
on behalf of Saxonica Ltd
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>