|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to keep DOCTYPE declaration in output
use <xsl:text disable-output-escaping='yes'> ----- Original Message ----- From: "Taro Ikai" <tikai@xxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, July 25, 2003 12:09 PM Subject: How to keep DOCTYPE declaration in output > Is there anyway to keep the DOCTYPE declaration of the input document in > the output? > > Curently, I'm trying: > > <xsl:tempalte match="/"> > <xsl:text><![CDATA[<!DOCTYPE chapter SYSTEM > "c:/docbook/4.2/docbookx.dtd" [ > <!ENTITY % global_entities SYSTEM "c:/mydoc/myents.ent"> > %global_entities;]]> > </xsl:text> > <xsl:apply-templates/> > </xsl:tempalte> > > But the result looks like: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE chapter SYSTEM "c:/docbook/4.2/docbookx.dtd" [ > <!ENTITY % global_entities SYSTEM "c:/mydoc/myents.ent"> > %global_entities; > <chapter>.... > > Is there anyway to copy the DOCTYPE declaration from the source document? > If not, how can I escape the special characters in the <xsl:text> block > above? > > Thansk. > > Taro > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








