0

我正在修改一个 xml.config 文件,它在链接上方生成一个空行。不知道为什么会这样。我怎样才能将其删除?

这是列表元素的 xml.config 代码:

            <li>
                <xsl:value-of select="$prefix" />
                <xsl:if test="number(ParentEntityID) != 0">
                    <!-- <span class="catMark">&gt;&gt;</span>&#160; -->
                </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)&gt;0 and (EntityID = $CategoryID or descendant::Entity/EntityID = $CategoryID)">
                    <ul>
                        <xsl:apply-templates select="Entity">
                            <xsl:with-param name="prefix" select="concat($prefix, '&#160;&#0160;')"/>
                        </xsl:apply-templates>
                    </ul>
                </xsl:if>
            </li>

当页面加载时,它变成了这样:

<li>
     &nbsp;&nbsp;
     <a href="c-56-holiday.aspx">Holiday</a>
</li>

在此处输入图像描述

4

0 回答 0