This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Any way to keep <!DOCTYPE...> definition int output of XSLT transformation?
- From: Daniel Veillard <veillard at redhat dot com>
- To: Taro Ikai <tikai at ABINITIO dot COM>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 25 Jul 2003 16:01:34 -0400
- Subject: Re: [docbook-apps] Any way to keep <!DOCTYPE...> definition int output of XSLT transformation?
- References: <OFA99086DC.EBB43C3B-ON85256D6E.00671160-85256D6E.00679870@abinitio.com>
- Reply-to: veillard at redhat dot com
On Fri, Jul 25, 2003 at 02:50:41PM -0400, Taro Ikai wrote:
> I'm using XSL to transform a not-so-valid Docbook document into a valid
> 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 DOCTYPE is not part of the XPath data model of the document seen by
the XSLT processor. So it is not possible to preserve it.
Using txsl:text is not a correct solution. The proper way is to
use the specific attributes of the xsl:output construct see section
16 of the XSLT spec
http://www.w3.org/TR/xslt#output
hint: nothing replaces reading the specs !
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org