Ukázka uživatelského „makra“ a vkládání odkazů na CSS a JS soubory.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="2.0"
3 xmlns:a="http://www.w3.org/2005/Atom"
4 xmlns:atom="http://www.w3.org/2005/Atom"
5 xmlns:g="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/prostor"
6 xmlns:j="java:cz.frantovo.xmlWebGenerator.Funkce"
7 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8 xmlns:fn="http://www.w3.org/2005/xpath-functions"
9 exclude-result-prefixes="fn g j a">
10 <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
12 <xsl:template match="/">
15 <xsl:variable name="url" select="a:feed/a:link[not(@rel)]/@href"/>
16 <title><xsl:value-of select="a:feed/a:title"/></title>
17 <link><xsl:value-of select="$url"/></link>
18 <description><xsl:value-of select="a:feed/a:subtitle"/></description>
19 <atom:link rel="self" href="{$url}rss.xml"/>
20 <xsl:apply-templates select="a:feed/a:entry"/>
25 <xsl:template match="a:entry">
27 <title><xsl:value-of select="a:title"/></title>
28 <link><xsl:value-of select="a:link/@href"/></link>
29 <description><xsl:value-of select="a:summary"/></description>
30 <guid><xsl:value-of select="a:id"/></guid>
31 <pubDate><xsl:value-of select="format-dateTime(a:updated,
32 '[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] [Z]',