我正在修改xml.config文件,它在链接上方生成一个空行。不确定为什么会发生这种情况。我怎么能把它删除?
以下是list元素的xml.config代码:
<li>
<xsl:value-of select="$prefix" />
<xsl:if test="number(ParentEntityID) != 0">
<!-- <span class="catMark">>></span>  -->
</xsl:if>
<a href="{concat('c-',EntityID,'-',ise:FormatStringForLink(SEName),'.aspx')}">
<xsl:if test="EntityID = $CategoryID or descendant::Entity/EntityID = $CategoryID">
<xsl:attribute name="style">font-weight:bold</xsl:attribute>
</xsl:if>
<xsl:value-of select="$eName"/>
</a>
<xsl:if test="count(child::Entity)>0 and (EntityID = $CategoryID or descendant::Entity/EntityID = $CategoryID)">
<ul>
<xsl:apply-templates select="Entity">
<xsl:with-param name="prefix" select="concat($prefix, '  ')"/>
</xsl:apply-templates>
</ul>
</xsl:if>
</li>
当页面加载时,它变为:
<li>
<a href="c-56-holiday.aspx">Holiday</a>
</li>