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

Reply via email to