|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Transforming XHTML to WML
>>>>> "Paul" == Paul Healy <sebalut@xxxxxxxxxxx> writes:
Paul> The XSL code is <?xml version="1.0" encoding="utf-8"?>
Paul> <xsl:stylesheet version="1.0"
Paul> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Paul> <xsl:output method="xml" /> <xsl:template match="/">
Paul> <xsl:text disable-output-escaping="yes"> <!DOCTYPE wml
Paul> PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
Paul> "http://www.wapforum.org/DTD/wml_1.3.xml"> </xsl:text>
Paul> <wml> <card id="card1" title="{html/head/title}"> <p
Paul> align="center"> <option> <xsl:for-each select="div/ul/li">
Paul> <a href="#{generate-id(a)}"><br/> <xsl:value-of select="."/>
Paul> </a></xsl:for-each></option></p></card></wml>
Paul> </xsl:template> </xsl:stylesheet>
I don't know anything about wml, so I can't answer that part
(hopefully someone will).
But you should not use <xsl:text disable-output-escaping="yes"> to
produce a Document Type Declaration (actually, the simple rule is to
NEVER use disable-output-escaping).
Instead, spcify the doctype-system and doctype-public on the
xsl:output declaration.
--
Colin Adams
Preston Lancashire
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








