[XML-SIG] Specifying stylesheet in xml.dom document

Alexandre Alexandre.Fayolle@logilab.fr
Fri, 21 Feb 2003 14:06:26 +0100

On Fri, Feb 21, 2003 at 12:14:46PM +0000, kathrine@rhetorical.com wrote:
> I'm using xml.dom to create an xml document from scratch.
> I want the document header to look something like this:
> <?xml version='1.0'?>
> <?xml-stylesheet type="text/xsl" 
> href="http://intranet.rhetoricalsystems.com/dtds/docbook/stylesheet/html/docbook.xsl" 
> version='1.0' ?>
> 'http://intranet.rhetoricalsystems.com/dtds/docbook/dbk_new/docbookx.dtd'>
> but I can't work out how to insert the information about 
> the stylesheet and the DTD. Can anybody help me?

For the doctype, you should add a DocType to your Document with the
proper publicId. For the stylesheet, add a ProcessingInstruction

Alexandre Fayolle
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Développement logiciel avancé - Intelligence Artificielle - Formations