first commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?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()<$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>
|
||||
Reference in New Issue
Block a user