Changeset 7:5b46493979c9 for šablona/atom.xsl
- Timestamp:
- 04/03/11 16:51:06 (13 years ago)
- Branch:
- default
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
šablona/atom.xsl
r6 r7 9 9 <xsl:output method="xml" indent="yes" encoding="UTF-8"/> 10 10 11 <xsl:param name="konfigurák"></xsl:param> 12 13 <xsl:template match="/"> 14 <!-- TODO: proměnná: --> 15 <xsl:variable name="konfigurace" select="document($konfigurák)"/> 11 <xsl:template match="/"> 16 12 17 13 <feed> 18 <title><xsl:value-of select=" $konfigurace/g:web/g:název"/></title>19 <subtitle><xsl:value-of select=" $konfigurace/g:web/g:podtitul"/></subtitle>20 <link rel="self" href="{concat( $konfigurace/g:web/g:url, 'atom.xml')}"/>21 <link href="{ $konfigurace/g:web/g:url}"/>14 <title><xsl:value-of select="g:web/g:název"/></title> 15 <subtitle><xsl:value-of select="g:web/g:podtitul"/></subtitle> 16 <link rel="self" href="{concat(g:web/g:url, 'atom.xml')}"/> 17 <link href="{g:web/g:url}"/> 22 18 <updated><xsl:value-of select="current-dateTime()"/></updated> 23 19 <author> 24 <name><xsl:value-of select=" $konfigurace/g:web/g:autor/g:jméno"/></name>25 <email><xsl:value-of select=" $konfigurace/g:web/g:autor/g:email"/></email>20 <name><xsl:value-of select="g:web/g:autor/g:jméno"/></name> 21 <email><xsl:value-of select="g:web/g:autor/g:email"/></email> 26 22 </author> 27 <id><xsl:value-of select="concat('urn:uuid:', $konfigurace/g:web/g:uuid)"/></id>23 <id><xsl:value-of select="concat('urn:uuid:', g:web/g:uuid)"/></id> 28 24 25 <xsl:variable name="konfigurace" select="/"/> 29 26 <xsl:for-each select="collection('../vstup/?select=*.xml')[empty(g:stránka/g:skrytá) or not(g:stránka/g:skrytá)]"> 30 27 <entry>