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

Invoking servlet through XSL

Subject: Invoking servlet through XSL
From: "Jaiswal, Vinay (CTS)" <JVinay@xxxxxxxxxxxxxxxxx>
Date: Thu, 8 Mar 2001 20:41:10 +0530
servlet with xslt
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=&quot;img&quot;
ontimer=&quot;http://tdl12a09/servlets/testindex&quot;value=&quot;30&quot;
    </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

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.