Subject: [xsl] How to keep DOCTYPE declaration in output From: Taro Ikai <tikai@xxxxxxxxxxxx> Date: Fri, 25 Jul 2003 15:09:49 -0400 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Convert escaped XML conte, Wendell Piez | Thread | Re: [xsl] How to keep DOCTYPE decla, Venkat Gyambavantha |
Re: [xsl] Controlling tabular layou, Mukul Gandhi | Date | Re: [xsl] How to keep DOCTYPE decla, Venkat Gyambavantha |
Month |