[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
generate dtd
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.