xsl-list
[Top] [All Lists]

Re: using wmlscript in xsl

2003-01-03 03:21:24
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



<Prev in Thread] Current Thread [Next in Thread>