Subject: Re: [xsl] using wmlscript in xsl From: Madhavi Thottempudi <madhavi@xxxxxxxxxxxxxxx> Date: Fri, 03 Jan 2003 10:21:24 +0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] using wmlscript in xsl, Madhavi Thottempudi | Thread | RE: [xsl] using wmlscript in xsl, Jarno . Elovirta |
[xsl] XPath BUG in Saxon 6.5.2 and , Dimitre Novatchev | Date | Re: [xsl] Join operation with a csv, Dimitre Novatchev |
Month |