68 lines
2.0 KiB
Plaintext
68 lines
2.0 KiB
Plaintext
<root>
|
|
<LabelType>RSS类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<attributes>
|
|
<name>outputQty</name>
|
|
<default>10</default>
|
|
<intro>信息输出数量,如填写"10"则输出10条信息</intro>
|
|
</attributes>
|
|
<LabelSqlString>SELECT TOP @outputQty * FROM PE_CommonModel WHERE Status = 99 AND SigninType != 2 ORDER BY UpdateTime DESC</LabelSqlString>
|
|
<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" />
|
|
<xsl:template match="/NewDataSet">
|
|
<xsl:choose>
|
|
<xsl:when test="pe:RssEnable() = 'false'">
|
|
<item>
|
|
<title>本站尚未开放RSS功能!</title>
|
|
<xsl:text disable-output-escaping="yes"><link></xsl:text>
|
|
<xsl:value-of select="pe:SitePath()" />
|
|
<xsl:text disable-output-escaping="yes"></link></xsl:text>
|
|
<description>本站尚未开放RSS功能!</description>
|
|
<author>
|
|
<xsl:value-of select="pe:Webmaster()" />
|
|
</author>
|
|
<category>
|
|
<xsl:value-of select="pe:SiteName()" />
|
|
</category>
|
|
<pubDate>
|
|
<xsl:value-of select="pe:TimeNow()"/>
|
|
</pubDate>
|
|
</item>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:for-each select="Table">
|
|
<item>
|
|
<title>
|
|
<xsl:value-of select="Title"/>
|
|
</title>
|
|
<xsl:text disable-output-escaping="yes"><link></xsl:text>
|
|
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)" />
|
|
<xsl:text disable-output-escaping="yes"></link></xsl:text>
|
|
<description>
|
|
<xsl:value-of select="Title"/>
|
|
</description>
|
|
<author>
|
|
<xsl:value-of select="Inputer"/>
|
|
</author>
|
|
<category>
|
|
<xsl:value-of select="pe:GetNode(NodeID,'name')" />
|
|
</category>
|
|
<pubDate>
|
|
<xsl:value-of select="UpdateTime"/>
|
|
</pubDate>
|
|
</item>
|
|
</xsl:for-each>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<OutType>sin</OutType>
|
|
<CacheTime>120</CacheTime>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
</root>
|