blob: b5a7169eb8b9a484150489bef784779137a90228 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn" > <xsl:output method="xml"/> <xsl:include href="identity.xsl"/> <xsl:template match="head"> <head> <xsl:apply-templates/> <link rel="stylesheet" type="text/css" href="resolve:thumbs-s"/> </head> </xsl:template> <xsl:template match="img"> <div class="picture"> <xsl:choose> <xsl:when test="@thumb"> <a href="{@src}"><img src="{@thumb}"/></a> </xsl:when> <xsl:otherwise> <img src="{@src}"/> </xsl:otherwise> </xsl:choose> <xsl:if test="@caption"><br/><p><xsl:value-of select="@caption"/></p></xsl:if> </div> </xsl:template> </xsl:stylesheet>
|