bottom.xsl

来自「1.left.aspx下部分实现了读取RDF(RDF format feeds」· XSL 代码 · 共 36 行

XSL
36
字号
<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" omit-xml-declaration="yes"/>

<xsl:template match="/rss/channel">
  <xsl:param name="ID" />
    <html>
    <body>
    <!--
        This is an XSLT template file. Fill in this area with the
        XSL elements which will transform your XML to XHTML.
    -->
      <b>
        <xsl:value-of select="item[$ID]/title" disable-output-escaping="yes" />
      </b>
      <p>
        <xsl:value-of select="item[$ID]/description" disable-output-escaping="yes"/>
      </p>
      <a>
        <xsl:attribute name="href">
          <xsl:value-of select="item[$ID]/link"/>
        </xsl:attribute>
        <xsl:attribute name="target">
          _blank
        </xsl:attribute>
        Read More......
      </a>
    </body>
    </html>
</xsl:template>

</xsl:stylesheet> 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?