Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSL transformations from XHTML to WML. Help!

843834Aug 22 2005 — edited Aug 23 2005
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2005
Added on Aug 22 2005
13 comments
262 views