This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: use cases for d-o-e
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 10 Jan 2002 16:37:59 +0100
- Subject: Re: [xsl] use cases for d-o-e
- Organization: ZKB
- Reply-to: xsl-list at lists dot mulberrytech dot com
roger.day@globalgraphics.com wrote
> Could you go into a little more detail, please? I haven't heard of this.
If you want to put a DOCTYPE declaration into your result
document, use
<xsl:output doctype-system="tei-stuff.dtd"/>
which should produce a
<!DOCTYPE stuff SYSTEM "tei-stuff.dtd"/>
(depending on your document element of course). You can
also produce an additional PUBLIC id if you want, look
it up in the docs.
If you want to have a DOCTYPE with an internal subset, like
<!DOCTYPE stuff SYSTEM "tei-stuff.dtd" [
<!ENTITY my-stuff "some odd text">
]>
there are no mechanisms in XSLT to do it easily. My proposal
was to create an external, document specific DTD and refer to
it. That's probably not what you want, but IMHO DOCTYPEs with
an internal subset are relicts. It is likely that you want
to use the resulting DTD in multiple documents, so you can
prepare it as stand-alone file as well.
HTH
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list