Re: [xsl] how to make a log file in XSLT?

Subject: Re: [xsl] how to make a log file in XSLT?
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 12 Mar 2023 21:11:47 -0000
On Sun, 2023-03-12 at 20:12 +0000, Jean-Luc Chevillard
jeanluc.chevillard@xxxxxxxxx wrote:
> Dear list members,
>
> After running the script once, the file would become
> +++++++++++++++
> <?xml version="1.0" encoding="UTF-8"?>
> <log>
> B B  <entry>[2023-03-12 (19:53)]</entry>
> </log>

Use expath's file:read and file:write, with fn:serialize(), if you are
using XSLT 2 or later - and e.g. a paid version of Saxon as i think the
free ones don't support extensions these days, not 100% sure.


--
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org

Current Thread