使用XSLT我想創建一個屬性:如何把標籤內的html屬性?
<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>
的問題是,只有純文本屬性內的推杆,像
<span class="tooltip" onmouseover="javascript:function(Aggiunta ...)">
內部消除跨度標籤或標籤,其能來自apply-templates。
那麼如何將HTML代碼放入屬性?
什麼是你想才達到的結果呢?在屬性值中不能有元素,只能是文本。 – newtover 2010-05-09 22:26:16