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




Reply via email to