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

Re: Transforming XHTML to WML

Subject: Re: Transforming XHTML to WML
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 22 Aug 2005 06:53:44 +0100
wml xhtml doctype
>>>>> "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"> &lt;!DOCTYPE wml
    Paul> PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
    Paul> "http://www.wapforum.org/DTD/wml_1.3.xml"&gt; </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

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.