Re: [xsl] I love programs that output programs

Subject: Re: [xsl] I love programs that output programs
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 19 Jan 2025 06:42:16 -0000
On Sun, 2025-01-19 at 06:05 +0000, ajbufort@xxxxxxxxxxxxxxxx wrote:
> B And if you output the file as XML first, and THEN want to try to re-
> ingest it and process it within the same transform, you will run
> across the Saxon protective measure of prohibiting ingesting a file
> you have just output within the same transform.B  Admittedly, to get
> around this at times, I will output the XML to a file during a
> transform, programmatically re-name it via the same transform, and
> then continue processing.B 

You can also use the exslt file:write() function to write it out, which
does not have that limitation.
>
[...]B 
> One way is to isolate templates involving the same mode within their
> own file,B 
in XSLT 4 as proposed, you can put all templates for a given mode
inside the xsl:mode element (although i am not sure you can enforce
that, unfortunately, but it would be relatively easy to check
automatically that you had done this)

The first joint XQuery and XSL meeting i went to as W3C staff contact
for XQuery was in Renton by the way.

liam

--
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