5
嗨我正在使用xslt來顯示我的web部件上的鏈接,並且在鏈接旁邊添加了加號圖像,但我想在它們之間添加一些空格。我已經添加了,但這不是真的有效。我在這裏錯過了什麼?請在下面找到我的代碼。在xslt中插入空格
謝謝。
<xsl:choose>
<!-- do _self -->
<xsl:when test="contains(Link,'xxx')">
<a target="_self">
<xsl:attribute name="href">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="Title"/>
</a>
</xsl:when>
<!-- use _blank (new browser window) -->
<xsl:otherwise>
<a target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="URL"/>
</xsl:attribute>
<xsl:value-of select="Title"/>
</a>
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
<xsl:choose>
<xsl:when test="Description !=' ' ">
<img class="imageclass" src="/images/plus.gif"></img>
</xsl:when>
</xsl:choose>
太好了!它爲我工作。非常感謝你的幫助。 – user346514 2010-08-11 13:05:45