Re: XSL:VALUE-OF
Christoffer Dam Bruun <[email protected]>
| Newsgroups | gmane.text.xml.xalan.java.user |
|---|---|
| Message-ID | <[email protected]> |
Hi mahati, I believe you must write: <a id="frameLoader" ......>+</a> Instead of : <a id="frameLoader" ...>+</a> 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"><a id="frameLoader" > href="javascript:void(0);" onclick="javascript:<xsl:value-of > select="$gridName"/>.expandAllTreeRows(this);">+</a></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 >> >> >> > >