This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook-apps] Any way to keep <!DOCTYPE...> definition int output of XSLT transformation?


Use the doctype-public and doctype-system attributes of the xsl:output
element.

e.g.,
<xsl:output method="xml"
 doctype-public="-//OASIS//DTD DocBook v4.2 XML//EN"
 doctype-system="http://www.oasis-open.org/docbook/dtd..."/>

Jeff Beal

> -----Original Message-----
> From: Taro Ikai [mailto:tikai@ABINITIO.COM]
> Sent: Friday, July 25, 2003 2:51 PM
> To: docbook-apps@lists.oasis-open.org
> Subject: [docbook-apps] Any way to keep <!DOCTYPE...> definition int
> output of XSLT transformation?
> 
> 
> I'm using XSL to transform a not-so-valid Docbook document 
> into a valid 
> Docbook document.
> 
> The not-so-valid document starts with a correct <!DOCTYPE 
> ...> definition 
> for Docbook.
> 
> When I run this document through XSLT (xsltproc program to be 
> exact), the 
> DOCTYPE definition 
> gets erased.
> 
> Is there a way to keep the DOCTYPE definition in the output XML file? 
> 
> The only other alternative I can think of is to use 
> <xsl:text> and print 
> the DOCTYPE 
> definition at the beginning of the document.
> 
> Taro
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]