我想隱藏「imageText」,div IF字符串爲空。此刻,此imageText將文本疊加到具有背景色的圖像上(文本在Umbraco中指定)。XSLT隱藏元素IF字符串爲空
我已經嘗試過:
<xsl:if test = "imageText" != ''">
可能有人請幫助我做到這一點?
這裏是我的代碼:
<td width="300" height="114" valign="top">
<div class="imageTitle">
<xsl:call-template name="getText">
<xsl:with-param name="imageText" select="$bottomImageLeftText" />
</xsl:call-template>
</div>
</td>
驚人!非常感謝你,它的作品非常漂亮:) – Madness 2013-03-11 13:51:56