Hi everyone I am a new XSLT user and I have been trying to convert an XHTML page to WML for the last week. Was wondering whether anyone could tell me what I am doing wrong. I am using a Saxon 6-5-4 processor and Stylesheet version 1.0.
This is the XHTML doc
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>XSLT transformations</title>
<link rel="stylesheet" type="text/css" href="style.css" /> </head>
<body>
<div id="sidebar">
<ul>
<li>
Home</li>
<li>
Product Page</li>
<li>
Offers</li>
</ul> </div> </body> </html>
This is the XSL I am using.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" />
<xsl:template match="/">
<xsl:text disable-output-escaping="yes">
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml_1.3.xml"> </xsl:text>
<wml>
<card id="card1" title="{html/head/title}">
<p align="center">
<option>
<xsl:for-each select="div/ul/li">
<xsl:apply-templates />
</xsl:for-each></option></p></card></wml></xsl:template>
</xsl:stylesheet>
Any help is very much appreciated. Thanks in advance.