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

RE: Adding <!DOCTYPE...>

Subject: RE: Adding <!DOCTYPE...>
From: "Talwalkar (EXT), Saurabh" <saurabh.talwalkar-eds@xxxxxxx>
Date: Mon, 23 Dec 2002 19:46:45 +0530
adding doctype
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.Elovirta@xxxxxxxxx [mailto:Jarno.Elovirta@xxxxxxxxx]
Sent: Monday, December 23, 2002 06:00 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  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


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.