[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: <!DOCTYPE ...> problem
Richard, Since the result of an XSLT transformation will most likely be a well formed XML document, the XSLT processor will add the XML declaration. The version and encoding can be controlled with the new attributes (result-encoding, result-version) introduced in the XSLT WD 19990709. --Keith Richard Lander wrote: > > > > The first line is no problem (<xsl:pi name="xml">version="1.0"</xsl:pi>) > > > > actually it _should_ be a problem as the xml declaration isn't a pi > > (according to the xml spec) and pi target names are not allowed to start > > with `xml' (production 17 of the XML spec). > > Although, it certainly is nice that it does work, so that we can declare the > nature of XML documents. I am surprised that there isn't some formal XSLT > structure or even a workaround, outside of the non-xml namespace, for producing > XML or document type declarations. They seem rather important to me. > > Richard > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|