You need to use AVT's (Attribute Value Templates) by wrapping the
variables in curly braces { }
<p><pile:getStartFlow name="{$name}" level="{$level}"/></p>
^ ^ ^ ^
check out:
http://www.dpawson.co.uk/xsl/sect2/N1575.html
cheers
andrew
-----Original Message-----
From: GB [mailto:[EMAIL PROTECTED]
Sent: 16 July 2002 10:49
To: [EMAIL PROTECTED]
Subject: calling js extension and parameters trouble.
Hello reader !
I'm trying to call a js function put inside an extension declared as
follow
:
<lxslt:component prefix="flow" elements="getStart" functions="">
<lxslt:script lang="javascript">
<![CDATA[
//
function getStartFlow(xslproc,elem) {
name = elem.getAttribute ("name");
level = elem.getAttribute ("level");
sol=name+level;
return sol;
}
]]>
</lxslt:script>
</lxslt:component>
Inside the xslt code I've used :
<xsl:template match="//rd">
<xsl:variable name="level" select="@levelname"/>
<xsl:variable name="name" select="gr/@name"/>
<p><pile:getStartFlow name="$name" level="$level"/></p>
<xsl:apply-templates/>
</xsl:template>
As a result a get <p>$name$level</p> instead of the content describe
inside
the xsl:variable.
Should I use a function instead of an element to get this working ???
Thanks for your help !!!!
Guy
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002