diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-30 15:31:05 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-30 15:31:05 +0900 |
commit | 26c8e08ede0bb12b98ed54ab45b1e39db595c271 (patch) | |
tree | 799a60603efdea04d1f59fc65cd6dfd78dbf1aa5 /doc/rss.xslt | |
parent | 1fec9d98a084106866d842d10f03dde9ff5472ee (diff) | |
download | rub-26c8e08ede0bb12b98ed54ab45b1e39db595c271.tar.gz |
Dogfood for documentation
Diffstat (limited to 'doc/rss.xslt')
-rw-r--r-- | doc/rss.xslt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/rss.xslt b/doc/rss.xslt new file mode 100644 index 0000000..48f9203 --- /dev/null +++ b/doc/rss.xslt @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:rub="https://rub.parody" extension-element-prefixes="rub" + xmlns:content="http://purl.org/rss/1.0/modules/content/"> + <xsl:template match="/feed"> + <rss version="2.0"> + <channel> + <title>Demo RSS feed</title> + <link>https://rub.parody/</link> + <description>Global feed</description> + <generator>Rub</generator> + <xsl:for-each select="entry"> + <item> + <title><xsl:value-of select="title"/></title> + <description><xsl:value-of select="description"/></description> + <content:encoded> + <xsl:apply-templates select="html/body/main"/> + </content:encoded> + </item> + </xsl:for-each> + </channel> + </rss> + </xsl:template> + + <xsl:template match="main"><rub:serialize/></xsl:template> +</xsl:stylesheet> |