xsl-list
[Top] [All Lists]

RE: Adding <!DOCTYPE...>

2002-12-23 07:16:45
Even i was facing same problem one hour back.

i think following line helps:
Modified the XSL file
The xsl:output element should have :doctype-system attribute specified:

<xsl:output method="xml" version="1.0" encoding="ISO-8859-1" 
doctype-system="migxdata.dtd" indent="yes"/>

It worked with me.

Saurabh

-----Original Message-----
From: Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com 
[mailto:Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com]
Sent: Monday, December 23, 2002 06:00 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Adding <!DOCTYPE...>


Hi,

   I am trying to transform a XML document using a XSL 
stylesheet. I was 
wondering how we could add the <!DOCTYPE..> element of the 
original document 
into the transformed document using XSL stylesheets. Pardon 
my ignorance if 
this is trivial. I want to copy the <!DOCTYPE ..>declaration 
as is from the 
original document into the final document.

Use xsl:output <http://www.w3.org/TR/xslt#element-output>; you have to 
hard-code the doctype values, sorry.

Cheers,

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>