first commit
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4703" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlString</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT 1</default>
|
||||
<intro>查询语句</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>sqlCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计语句</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@sqlString</LabelSqlString>
|
||||
<LabelSqlCount>@sqlCount</LabelSqlCount>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="sqlString" />
|
||||
<xsl:param name="sqlCount" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li class="noData">暂无词条</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="EntryName" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:value-of select="$linkOpenType" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(EntryName,$titleLength,'')" />
|
||||
</a>
|
||||
<p>
|
||||
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Summary),40,'...')" />
|
||||
</p>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user