如何把导航条做成sitefactory政府版的样子实现动态读取子栏目显示

不用那么麻烦,用“取得子节点”标签就行了,在首页模板的列表DIV的<dt></dt>中放入此标签,适当设置CSS即可。
你如果没有“取得子节点”标签,可以把“取得子节点集”标签改改,改动后的内容如下:
<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">0</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
{PE.Label nodeId="<xsl:value-of select="NodeID"/>" /}
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform

原文地址:https://www.cnblogs.com/visense/p/2939941.html