Re: [xsl] Keeping doctype declaration in resulting output [XSLT 1.0]

Subject: Re: [xsl] Keeping doctype declaration in resulting output [XSLT 1.0]
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 05 Oct 2010 12:13:42 +0100
On 05/10/2010 11:57 AM, pankaj.c@xxxxxxxxxxxxxxxxxx wrote:
In XSLT you can read in the source file as text, using unparsed-text()
and then use string functions to cut off the input doctype declaration
and re-use.
Hmmm ... unparsed-text() seems to be promising. Need to try though
........ thanks again David......



There is also Andrew Welch's LexEv processor, which preprocesses the input document on the fly so that DOCTYPE declarations, entity references and the like are revealed to the XSLT processor in the form of elements and attributes.


Michael Kay
Saxonica

Current Thread