diff options
author | defanor <defanor@uberspace.net> | 2018-05-01 06:10:19 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2018-05-01 06:10:19 +0300 |
commit | 56c57f94738efab8b0bf83dc68480931a2ceee00 (patch) | |
tree | 30663a142eedd52670a68e26885cff6348a45d3f /tools/atom-sort.xsl | |
parent | e0b97e0e2168c4d2b9cf60b16e81591f912c2f4a (diff) |
Focus on source XML manipulation, introduce indexes
Instead of XHTML or Atom, so resulting files get generated out of
custom XML structures now.
This was needed to get indexes that won't depend on Atom (and to avoid
the duplication).
Now indexes can be included with something like the following:
<notes xmlns="" number="5"
src="../build/notes-by-modification-date.xml" />
Diffstat (limited to 'tools/atom-sort.xsl')
-rw-r--r-- | tools/atom-sort.xsl | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/atom-sort.xsl b/tools/atom-sort.xsl deleted file mode 100644 index a00b599..0000000 --- a/tools/atom-sort.xsl +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:atom="http://www.w3.org/2005/Atom" - xmlns:xhtml="http://www.w3.org/1999/xhtml" - xmlns="http://www.w3.org/2005/Atom" - version="1.0"> - <xsl:output method="xml" indent="yes"/> - - <xsl:template match="/"> - <xsl:apply-templates /> - </xsl:template> - - <xsl:template match="atom:feed"> - <feed> - <xsl:apply-templates select="node()[not(self::atom:entry)]" /> - <!-- Sort by modification date, descending. --> - <xsl:apply-templates select="atom:entry"> - <xsl:sort select="atom:updated" order="descending"/> - </xsl:apply-templates> - </feed> - </xsl:template> - - <!-- Copy everything else --> - <xsl:template match="node()" priority="0"> - <xsl:copy-of select="." /> - </xsl:template> - -</xsl:stylesheet> |