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

RE: Need XML output with <!DOCTYPE ... , HOW to do that ?

Subject: RE: Need XML output with <!DOCTYPE ... , HOW to do that ?
From: Sebastien Sahuc <ssahuc@xxxxxxxxxxxxxx>
Date: Tue, 21 Sep 1999 23:26:03 +0200
xml output doctype
It works, thank a lot.

> -----Original Message-----
> From: White, David [mailto:David.White@xxxxxx]
> Sent: mardi 21 septembre 1999 15:27
> To: 'xsl-list@xxxxxxxxxxxxxxxx'
> Subject: RE: Need XML output with <!DOCTYPE ... , HOW to do that ?
> 
> 
> > Hi there,
> > 
> > I just need the following XML result from a XSL processing :
> > 
> > <!DOCTYPE root PUBLIC "imediation/protocol" "protocol.dtd">
> > <root>
> > 	&protocol;
> > </root>
> > 
> > What's the Style Sheet needed to obtain such result ?
> 
> Ahh, this. Since you are using XT, I can say that the following:
> 
> 
> 	<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>
> 
> works, in that it produces:
> 
> <?xml version="1.0"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml">
> <wml>
> 	[stuff]
> </wml>
> 
> Horrible, isn't it?
> 
> I hope the next version of XT supports xsl:output. I find the above
> extremely inelegant.
> 
> Dave
> 
> 
>  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.