[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How to keep DOCTYPE declaration in output

Subject: How to keep DOCTYPE declaration in output
From: Taro Ikai <tikai@xxxxxxxxxxxx>
Date: Fri, 25 Jul 2003 15:09:49 -0400
xsl 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"?>
&lt;!DOCTYPE chapter SYSTEM &quot;c:/docbook/4.2/docbookx.dtd&quot; [
 &lt;!ENTITY % global_entities SYSTEM &quot;c:/mydoc/myents.ent&quot;&gt;
  %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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.