Following is a param to a template

<xsl:with-param name="value">&lt;a id="frameLoader"
href="javascript:void(0);" onclick="javascript:<xsl:value-of
select="$gridName"/>.expandAllTreeRows(this);"&gt;+&lt;/a&gt;</xsl:with-param>

Then, within the template, i have:

<xsl:copy-of select="$value"/>

This makes template to print:

javascript:void(0); + 

But, the problem is that browser just prints this as raw text instead of
interpreting as href element.

You can observe that entire output is being captured correctly but gets
printed as raw text instead of being treated as html.

thanks,
mahati.


Michael Ludwig-4 wrote:
> 
> mahati schrieb:
> 
>> I tried using xsl:copy-of, but it's printing html as raw text to the
>> browser
> 
> That doesn't make sense. <xsl:copy-of select="$rtf"/> should copy the
> RTF to the output. Could you post an example?
> 
>> Requirement here is to build a href dynamically and show it. Do you
>> mean 'a' tag  is ignored by Xalan 2.7.1, by the way, this problem is
>> showing up only after we migrated to 2.7.1.
> 
> Xalan doesn't know about tags, it knows about element nodes. I don't
> think   elements are treated specially.
> 
>> Please suggest.
> 
> I think I've already suggested a solution. Does it not work?
> 
> Michael Ludwig
> 
> 

-- 
View this message in context: 
http://www.nabble.com/XSL%3AVALUE-OF-tp24368424p24370380.html
Sent from the Xalan - J - Users mailing list archive at Nabble.com.

Reply via email to