It's not nice to do it like that but you can produce text with <xsl:text> type of elements. That did the trick for me in a similar case.
On Thu, Feb 10, 2000 at 09:58:53AM +0800, Mike Chan wrote: > Hi All, > > I would like to transform my XML doc into a WML doc. Because the WML doc > itself is another XML doc, I have to include <?xml version="1.0"> tag > and the <!DOCTYPE ...> tag at the very beginning. However, this causes > problem when I apply the following XSL stylesheet: > > <?xml version="1.0"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > <xsl:template match="/"> > <?xml version="1.0"?> > <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" > "http://www.wapforum.org/DTD/wml_1.1.xml"> > <wml> > <head> > <meta http-equiv="Cache-Control" content="no-cache" forua="true" /> > </head> > <card title="card1" newcontext="false" ordered="false"> > <p> > <xsl:apply-templates/> > </p> > </card> > </wml> > </xsl:template> > > what should I do to insert another <?xml ...?> tag into the transformed > XML doc? > > Many thanks > > Mike -- Prof.Dr.Clemens H. CAP Dept.of Computer Science office phone +49-(0)381-498/3390 University of Rostock office fax +49-(0)381-498/3440 Albert Einstein Strasse 21 mailto:[EMAIL PROTECTED] D-18051 Rostock, Germany http://wwwtec.informatik.uni-rostock.de/iuk *** Please read this link http://www.freepatents.org
