xsl-list
[Top] [All Lists]

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

2021-12-03 11:37:12
Thank you Michael. I will give it a try in my environment.

 

From: Michael Kay mike(_at_)saxonica(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 
Sent: Friday, December 3, 2021 12:35 PM
To: xsl-list <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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
--~----------------------------------------------------------------
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>