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

Re: <!DOCTYPE ...> problem

Subject: Re: <!DOCTYPE ...> problem
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Mon, 26 Jul 1999 09:46:52 -0400
xslt how to add doctype
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


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.