[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
At 2005-07-13 17:25 +0500, Lakshmi narayana wrote:
<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
Re: [xsl] How to insert DOCTYPE in XSLT file
Subject: Re: [xsl] How to insert DOCTYPE in XSLT file From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 13 Jul 2005 08:04:43 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to insert DOCTYPE in XSLT, Lakshmi narayana | Thread | [xsl] [xsl-list] MSXML 3.0/4.0 XSLT, Jason Kohls |
[xsl] using variables in functions, trevor paterson \(RI | Date | RE: [xsl] How to insert DOCTYPE in , tomas.vanek |
Month |