permalinks.xsl 790 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns="http://www.w3.org/1999/xhtml"
  4. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5. <xsl:param name="generate.permalink" select="1"/>
  6. <xsl:param name="permalink.text">¶</xsl:param>
  7. <xsl:template name="permalink">
  8. <xsl:param name="node"/>
  9. <xsl:if test="$generate.permalink != '0'">
  10. <span class="permalink">
  11. <a alt="Permalink" title="Permalink">
  12. <xsl:attribute name="href">
  13. <xsl:call-template name="href.target">
  14. <xsl:with-param name="object" select="$node"/>
  15. </xsl:call-template>
  16. </xsl:attribute>
  17. <xsl:copy-of select="$permalink.text"/>
  18. </a>
  19. </span>
  20. </xsl:if>
  21. </xsl:template>
  22. </xsl:stylesheet>