Subject: Re: Update re: Outputting a DOCTYPE
From: James Clark <jjc@xxxxxxxxxx>
Date: Mon, 11 Oct 1999 19:03:31 +0700
|
The code's wrong: there's no "wml" output method, and the
"xml-declaration" has been renamed "omit-xml-declaration". Even if it
were right, it wouldn't work in the current version of XT. From
http://www.jclark.com/xml/xt.html:
The xml output method ignores the encoding, doctype-system,
doctype-public, omit-xml-declaration, standalone and
cdata-section-elements attributes on xsl:output.
Dylan Walsh wrote:
>
> I've dowloaded the new version of XT, and tried this code:
>
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="wml"
> indent="yes"
> xml-declaration="yes"
> doctype-system ="http://www.wapforum.org/DTD/wml_1.1.xml"
> doctype-public="-//WAPFORUM//DTD WML 1.1//EN"/>
> <xsl:strip-space elements="*"/>
> <!-- Body of stylesheet here -->
> </xsl:stylesheet>
>
> But all it outputs is a document beginning with the root element <wml>
> and the body. There is no DOCTYPE tag. Is this a bug in XT, or is the
> above code wrong?
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|