views:

56

answers:

3
A: 

yes in my xslt there is

  <xsl:param name="parametro"/>

  <xsl:value-of select="$parametro"/>
enrico
A: 

The problem is that "hope" is an xpath expression, and if you need to pass a string value, you need to quote the value as "'hope'". This is true at least for libxslt.

newtover
A: 

I tryed but doesn't work.

enrico
You should leave your comments as comments to your question. And please say, *what* you've tried.
tangens
Sorry!!! I found now the botton add add comment :).I tryed the advice of newtover and write thistransformer.setParameter("parametro","'hope'");but in in myhtml output i can't still see the string hope
enrico
for example if i write inside myfile.xslt<xsl:param name="parametro">hope</xsl:param> (as global parameter)...<xsl:value-of select="$parametro"/>and than i apply the trasformation(transformer.transform(...)) i can see in the 'myhtml' output the string "hope".I wish the output was equals but setting the value of parameter outside of the myfile.xslt using transformer.setParameter("parametro","hope");
enrico