|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] using wmlscript in xsl
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








