Re: [xsl] Combining entity references into a single document

Subject: Re: [xsl] Combining entity references into a single document
From: "rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 3 Dec 2021 17:37:06 -0000
Thank you Michael. I will give it a try in my environment.

 

From: Michael Kay mike@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 
Sent: Friday, December 3, 2021 12:35 PM
To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [xsl] Combining entity references into a single document

 

Assembling this is the job of the XML parser, not the XSLT processor. A
simple <xsl:copy-of select="/`"/>, or the query ".", should do the job.

 

It won't work, of course, if the parser doesn't support DTDs -- for example
that's true for all parsers we know of on Node.js. It also won't work if
external entity expansion is disabled in the parser, which is increasingly
often the case because of security paranoia.

 

Michael Kay

Saxonica

Current Thread