Files
2026-08-31 16:22:00 +08:00

48 lines
1.4 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>问答类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>questionID</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>问题ID</intro>
</attributes>
<attributes>
<name>splitChar</name>
<datatype>string</datatype>
<default>&gt;</default>
<intro>类型之间拆分修饰符{&gt;&gt;:&gt;&gt;,-:-,&gt;:&gt;}</intro>
</attributes>
<attributes>
<name>showType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>显示类型</intro>
</attributes>
<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" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:param name="questionID" />
<xsl:param name="showType" />
<xsl:param name="splitChar"/>
<xsl:template match="/">
<a>
<xsl:attribute name="href">
{PE.SiteConfig.ApplicationPath/}QA/QuestionList.aspx
<xsl:if test="$showType &gt; 0">
?ShowType=<xsl:value-of select="$showType" />
</xsl:if>
</xsl:attribute>
问题分类
</a>
<xsl:if test="$questionID &gt; 0">
<xsl:value-of select="$splitChar" />
</xsl:if>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>