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

Re: using wmlscript in xsl

Subject: Re: using wmlscript in xsl
From: Madhavi Thottempudi <madhavi@xxxxxxxxxxxxxxx>
Date: Fri, 03 Jan 2003 10:21:24 +0000
xsl output wml
Any ideas/suggestions on how to use wmlscript in xsl?? pls read my question below.
(trying to bring the topic up again...)


-M



At 16:20 02/01/2003 +0000, you wrote:
Hi there!
I am using xsl to transform xml to wml (following struts&stxx framework)
I am having problems or say lack of ideas on calling wmlscript from wml while transforming.


ex: I am trying to use wmlscript along with wml, to call Dialogs.alert() from the wmls function.

If my xslt for wml is -
--------------------------------
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
 doctype-public="-//WAPFORUM//DTD WML 1.1//EN"
 doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml" />

<xsl:template match="/">
 <wml>
 <card id="aCard" title="Update" newcontext="true">
 <p align="left">
  <a href="web/xsl/updateMsg.wmls#submit()">Any updates</a>
  </p>
 </card>
 </wml>
</xsl:template>
</xsl:stylesheet>

wmls file
--------------------
extern function submit()
{
  Dialogs.alert("It works");
}

How can I call the wmls function from xsl?? The way I am doing give me error 406, because it doesn't recognise the wmls.

How can I output wmls from xsl and call it from another xsl whose output is wml??
ex: a.xsl -> a.wml
b.xsl -> b.wmls
a.wml uses b.wmls


Any suggestions on this or any alternatives to do this would be of great help.

Happy NY,
M


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


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.