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

Re: How to insert DOCTYPE in XSLT file

Subject: Re: How to insert DOCTYPE in XSLT file
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Jul 2005 08:04:43 -0400
xsl insert doctype
At 2005-07-13 17:25 +0500, Lakshmi narayana wrote:
       How to insert the document type in xslt.
for Example:

<!DOCTYPE repository SYSTEM "file:conf/templateUID.dtd">

where repository is root Element
System represents DTD file.

Is it possible ? if possible how to do it.

<xsl:output doctype-system="file:conf/templateUID.dtd"/>


The processor will use the name of the document element of your result tree to complete the document type declaration.

Note that if your input XML has a system declaration that you need to preserve, this information is not available to you. XSLT will allow you to write out a given system declaration, but not detect what may have been an input system declaration.

I hope this helps.

. . . . . . Ken


-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal

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.