Re: XSL:VALUE-OF

mahati <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
Hi Chris,

Problem hear is i can't use '<a' as i have a onclick attribute on href which
takes value from '<xsl:value-of select="$gridName"/>', so i used '&lt;' and
'&gt;'. But, giving these making it considered as normal text instead of a
node.

thanks,
ravi.


Christoffer Dam Bruun wrote:
> 
> Hi mahati,
> 
> I believe you must write:  + 
> 
> Instead of : &lt;a id="frameLoader" ...>+&lt;/a&gt;
> 
> Otherwise you do not create an element in the result tree, but only a
> text.
> 
> /Christoffer Bruun
> 
> 
> mahati skrev:
>> 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-tp24368424p24603574.html
Sent from the Xalan - J - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.