logo

blog

My little blog can’t be this cute! git clone https://hacktivis.me/git/blog.git

entry.xsl (1351B)


  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xml:space="preserve">
  3. <xsl:import href="templates/en/nav.xsl" />
  4. <xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
  5. <xsl:template match="/entry"><xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html&gt;</xsl:text>
  6. <html xml:lang="en" lang="en">
  7. <head>
  8. <xi:include href="templates/head.xml" parse="xml" xpointer="xpointer(/xml/*)"/>
  9. <xsl:if test="title"><title><xsl:value-of select="title"/> - lanodan's cyber-home</title></xsl:if>
  10. </head>
  11. <body>
  12. <xsl:call-template name="nav"/>
  13. <article>
  14. <xsl:copy-of select="content/*"/>
  15. <p>
  16. <xsl:if test="link[@type='application/activity+json']"><a href="{link[@type='application/activity+json']/@href}" rel="replies external">Fediverse post for comments</a>, </xsl:if><xsl:apply-templates select="published"/><xsl:apply-templates select="updated"/>
  17. </p>
  18. </article>
  19. <xi:include href="templates/en/footer.shtml" parse="xml"/>
  20. </body>
  21. </html></xsl:template>
  22. <xsl:template match="published">published on <xsl:value-of select="."/></xsl:template>
  23. <xsl:template match="updated">, last updated on <xsl:value-of select="."/></xsl:template>
  24. </xsl:stylesheet>