Subject: [xsl] Invoking servlet through XSL From: "Jaiswal, Vinay (CTS)" <JVinay@xxxxxxxxxxxxxxxxx> Date: Thu, 8 Mar 2001 20:41:10 +0530 |
Hi folks, I need to write an XSL stylesheet for invoking a servlet after a certain time after getting first page from XML to WML. It is successfully converting XML to WML and displaying on WAP phone but it is not invoking servlet after the fixed time set in the timer and it is displaying the href itself on the screen. I'm using Cocoon-1.8.2. My XML page: <?xml version="1.0"?> <?xml-stylesheet href="bankwmlindex.xsl" type="text/xsl" media="wap"?> <?cocoon-process type="xslt"?> <article> <title><![CDATA[Research and Development]]></title> </article> XSL for XML to WML conversion: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="no" encoding="ISO-8859-1" doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml" doctype-public="-//WAPFORUM//DTD WML 1.1//EN"/> <xsl:template match="/"> <wml> <card id="img" ontimer="http://tdl12a09/servlets/testindex"> <timer value="30"/> <p> <img src="/bitmaps/sunlogo.wbmp" alt="Test page" align="middle" hspace="26" vspace="2"/> </p> </card> </wml> </xsl:template> <xsl:template match="article/title"> <p><b><xsl:apply-templates/></b></p> </xsl:template> </xsl:stylesheet> Output WML page: <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <!-- Source Generated by WML Deck Decoder --> <wml> <template> <do type="prev" label="back"> <prev/> </do> </template> <card id="frstcard"> <p> id="img" ontimer="http://tdl12a09/servlets/testindex"value="30" </p> <p> <img src="/bitmaps/sunlogo15_8.wbmp" alt="Cognizant RnD" align="middle" hspace="26" vspace="2"/> </p> </card> </wml> As you see in output WML page, URL has not come like <card id="img" ontimer="http://tdl12a09/servlets/testindex"> <timer value="30"/> that I need. Any help will be highly appreciated.. Thanks in advance.. Vinay Jaiswal This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL and Namespaces, Michael Kay | Thread | [xsl] How to efficiently remove "a", Teppo Peltonen |
Re: [xsl] XSL and Namespaces, David Carlisle | Date | Re: [xsl] [Ann] jd.xslt - a XSLT 1., Jeni Tennison |
Month |