Title: Message
Hi,
 
One way of passing arguments to XSL from flowscript
 
call sitemap uri. from flowscript
cocoon.sendPage("uri/arg1/arg2");
 
Sitemap entry...
=============
<map:match pattern="uri/*/*">
    <map:generate src="" />
      <map:transform src="">
        <map:parameter name="argument-1" value="{1}" />
   <map:parameter name="argument-2" value="{2}" />
      </map:transform> 
   <map:call resource="show-form"/>
</map:match>
 
XSL
===
 
<xsl:stylesheet version="1.0"
    xmlns:ft="
http://apache.org/cocoon/forms/1.0#template"
    xmlns:fi="
http://apache.org/cocoon/forms/1.0#instance"
    xmlns:i18n="
http://apache.org/cocoon/i18n/2.1"
    xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
    xmlns:xlink="
http://www.w3.org/1999/xlink">
  <xsl:output method="xml" />
  <xsl:param name="argument-1" />
  <xsl:param name="argument-2" />
 <xsl:template match="/">
      <xsl:value-of select="$argument-2">
 </xsl:template>
</xsl:stylesheet>
 
Hope this will help u.
 
Thanks, Vijay
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 2:05 PM
To: [email protected]
Subject: accessing a flowscript variable in xsl


Hi all.

        I am working on flowscripts.I am passing a variable from a flowscript function to a pipeline in sitemap,
and trying to access it in a xml and also a xsl.I am able to access it in the xml as ${variable_name} but when I
am trying to access it in the same way as ${variable_name} in the xsl I am unable to access it.

Can anyone through some light on the problem,any idea regarding how to access a variable in xsl passed from a flowscript function?


Regards,

Arnab Jena
Assistant Systems Engineer
Tata Consultancy Services Limited
Bangalore,Karnataka
India
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Reply via email to