35 lines
1.1 KiB
XML
35 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
<root>
|
|
<LabelType>问答类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT TOP 1 TypeName FROM PE_QA_HonorType WHERE HonorTypeID IN(@honorType)</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="honorType" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<xsl:choose>
|
|
<xsl:when test="$honorType > 0">
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
系列:<xsl:value-of select="TypeName"/>
|
|
</xsl:for-each>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
{PE.Label id="显示头衔系列样式一" honorType ="<xsl:value-of select="pe:HonorID()" />" /}
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>honorType</name>
|
|
<datatype>supersql</datatype>
|
|
<default>1</default>
|
|
<intro>头衔类型</intro>
|
|
</attributes>
|
|
</root> |