first commit
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>视频类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>dataSource</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>需要拆解的导演名</intro>
|
||||
</attributes>
|
||||
<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:output method="html" indent="yes"/>
|
||||
<xsl:param name="dataSource"/>
|
||||
<xsl:param name="fieldOption"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:call-template name="splitStr">
|
||||
<xsl:with-param name="srcStr" select="$dataSource"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
<xsl:template name="splitStr">
|
||||
<xsl:param name="srcStr"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($srcStr,'|')">
|
||||
<a href="{pe:InstallDir()}search.aspx?searchtype=1&ModelId=23&nodeId=9&Keyword={pe:UrlEncode(substring-before($srcStr,'|'))}&fieldOption={$fieldOption}">
|
||||
<xsl:value-of select="substring-before($srcStr,'|')"/>
|
||||
</a>
|
||||
<xsl:variable name="dstStr" select="substring-after($srcStr,'|')" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($srcStr,'|')">
|
||||
<xsl:call-template name="splitStr">
|
||||
<xsl:with-param name="srcStr" select="$dstStr"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{pe:InstallDir()}search.aspx?searchtype=1&ModelId=23&nodeId=9&Keyword={pe:UrlEncode($dstStr)}&fieldOption={$fieldOption}">
|
||||
<xsl:value-of select="$dstStr"/>
|
||||
</a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{pe:InstallDir()}search.aspx?searchtype=1&ModelId=23&nodeId=9&Keyword={pe:UrlEncode($srcStr)}&fieldOption={$fieldOption}">
|
||||
<xsl:value-of select="$srcStr"/>
|
||||
</a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>fieldOption</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>选项类型</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user