RE: Deja Vu all over again, or, Re: Update re: Outputting a DOCTY PE

Subject: RE: Deja Vu all over again, or, Re: Update re: Outputting a DOCTY PE
From: Dylan Walsh <Dylan.Walsh@xxxxxx>
Date: Tue, 12 Oct 1999 08:51:58 +0100
Date: Mon, 11 Oct 1999 15:15:10 +0200
From: "White, David" <David.White@xxxxxx>
Subject: Deja Vu all over again, or, Re: Update re: Outputting a DOCTYPE

> <xsl:template match="/">
> <xsl:processing-instruction
> name='xml'>version="1.0"</xsl:processing-instruction>
> <xsl:text disable-output-escaping="yes"><![CDATA[
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml";>]]>
> </xsl:text><wml>
>	<xsl:apply-templates/>
> </wml>
>	</xsl:template>

> I hope the next version of XT supports xsl:output. I find the above
> extremely inelegant.

> Dave

So do I. I haven't tried yours, so I can't say whether it still works
with XT, but this:

    <xsl:text disable-output-escaping="yes">&lt;?xml
version="1.0"?></xsl:text>
    <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE wml PUBLIC
"-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml";></xsl:text>

does work. I got that from someone on the comp.text.xml newsgroup. Thank
you for your reply, though, you been more helpful than most. 
Maybe this should go into a FAQ, as the info out there comprises the W3C
spec, which isn't great for learning XML, and tutorials, which are
geared towards HTML output?


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread