How to put tags inside an html attribute?

Posted by Mycol on Stack Overflow See other posts from Stack Overflow or by Mycol
Published on 2010-05-08T18:02:23Z Indexed on 2010/05/08 18:08 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

Using xslt i want to create an attribute:

<span class="tooltip">
            <xsl:attribute name="onmouseover">
                <xsl:text>javascript:function(</xsl:text>
                <span class="label">Aggiunta</span> 
                <xsl:apply-tempaltes/>
                <xsl:text>)</xsl:text>
            </xsl:attribute>

The problem is that only the pure text is putted inside the attribute, like

<span class="tooltip" onmouseover="javascript:function(Aggiunta ...)">

whithout the span tags or the tags that may come from apply-templates.

So how can I put html code into an attribute?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about attribute