41 lines
1.2 KiB
XML
41 lines
1.2 KiB
XML
<?xml version="1.0"?>
|
|
<root>
|
|
<LabelType>其他类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<attributes>
|
|
<name>specialId</name>
|
|
<datatype>sql.int</datatype>
|
|
<default>1</default>
|
|
<intro>专题Id</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT TOP 1 * FROM PE_Specials WHERE SpecialID = @specialId</LabelSqlString>
|
|
<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="specialId" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/NewDataSet/Table">
|
|
<xsl:choose>
|
|
<xsl:when test="metaType = 'description'">
|
|
<xsl:value-of select="MetaDescription"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="MetaKeywords"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]>
|
|
</LabelTemplate>
|
|
<attributes>
|
|
<name>metaType</name>
|
|
<datatype>string</datatype>
|
|
<default>keywords</default>
|
|
<intro>META类型{关键词:keywords,描述语:description}</intro>
|
|
</attributes>
|
|
</root> |