[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How do we generate DTD from XSL?
This won't work. Writing < in the stylesheet will always cause < 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 "<" - 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> > <!DOCTYPE mydoc SYSTEM "<xsl:value-of > select="filename_from_your_xml_document.dtd"/>< Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|