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