RE: [xsl] Adding <!DOCTYPE...>

Subject: RE: [xsl] Adding <!DOCTYPE...>
From: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 23 Dec 2002 14:29:51 +0200
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


Current Thread