[xsl] Is it possible to write an XSLT program that outputs an XSLT program that outputs an XSLT program?

Subject: [xsl] Is it possible to write an XSLT program that outputs an XSLT program that outputs an XSLT program?
From: "Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 2 Jul 2023 10:58:43 -0000
Hi Folks,

Years ago I read the source code for the XSLT implementation of Schematron.
Current Thread