Files
ningbo/动易的标签库/标签库/其他类/热门关键词.config
T
2026-08-31 16:22:00 +08:00

42 lines
1.3 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>显示个数</intro>
</attributes>
<LabelSqlString>SELECT TOP @outputQty KeywordText FROM PE_Keywords ORDER BY Hits DESC,Priority DESC</LabelSqlString>
<LabelTemplate>
<![CDATA[<?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:param name="splitChar"/>
<xsl:variable name="countnum" select="count(/NewDataSet/Table)"/>
<xsl:template match="/NewDataSet">
<xsl:for-each select="Table">
<a> <xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Tag.aspx?keyword=<xsl:value-of select="KeywordText"/>
</xsl:attribute>
<xsl:value-of select="KeywordText"/>
</a>
<xsl:if test="position()&lt;$countnum">
<xsl:value-of select="$splitChar"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<attributes>
<name>splitChar</name>
<default> | </default>
<intro>分割符号</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>