[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: How do we generate DTD from XSL?


Subject: RE: How do we generate DTD from XSL?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 23 Apr 1999 23:23:55 +0100

This won't work. Writing &lt; in the stylesheet will always cause &lt; to be
written to the output, the spec is quite clear on this.

SAXON has a workaround, you can set saxon:escape="N" to prevent "<" on
output being escaped as "&lt;" - this is needed for non-XML output files
such as CSV files but also comes in handy for kludges like this.

> Yvon Sauvageau wrote:
> >  But I don't see how to
> > generate the <!DOCTYPE mydoc SYSTEM "mydoc.dtd"> tag. 

Duanne Nickull suggested
> 
> Have you tried using entity references like this:
> 
> <xsl:pi name="xml">version="1.0"</xsl:pi>
> &lt;!DOCTYPE mydoc SYSTEM "<xsl:value-of
> select="filename_from_your_xml_document.dtd"/>&lt;

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread