Hi,

I am trying to passed a parameter into a javascript  variable inside a xsl
file.

in my xsl file I do that:

<xsl:param name="publication-id"/>
<xsl:param name="area"/>
        
<xsl:variable name="root" select="concat($publication-id, '/', $area)"/>

Then in  the javascript inside xsl :

 <script        type="text/javascript" charset="UTF-8"> 
                var root='<xsl:value-of select="$root"/>';
                var root2='<xsl:value-of select="$root"/>';
                                                        
                 alert('root : '+root);
                 alert('root2 : '+root2);
   
<![CDATA[

    

     function prueba(){
         alert('root en metodo: '+root);
         alert('root2 en metodo: '+root2);
     }


For the path /pub-id/area/CU.html, all the alert show the same:
"pub-id/area" , but for the path /pub-id/area/CU/expo/index.html all the
alert show "pub-id/area" except the alert inside javascript funcion (
alert('root en metodo: '+root)) that show  " /pub-id/area/" .

you have any idea why this happens, thanks.










                                                        



-- 
View this message in context: 
http://www.nabble.com/parameter-passed-to-javascript-in-a-xsl-tp24642045p24642045.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to