Annotation of kupu/apache-lenya/lenya/drawers/imagedrawer.xsl, revision 1.1.1.1
1.1 dwinter 1: <?xml version="1.0" encoding="UTF-8" ?>
2: <!--
3: ##############################################################################
4: #
5: # Copyright (c) 2003-2005 Kupu Contributors. All rights reserved.
6: #
7: # This software is distributed under the terms of the Kupu
8: # License. See LICENSE.txt for license text. For a list of Kupu
9: # Contributors see CREDITS.txt.
10: #
11: ##############################################################################
12:
13: XSL transformation from Kupu Library XML to HTML for the image library
14: drawer.
15:
16: $Id: imagedrawer.xsl 9879 2005-03-18 12:04:00Z yuppie $
17: -->
18: <xsl:stylesheet
19: xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20: xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
21: xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
22: version="1.0">
23:
24: <xsl:import href="${parameters.getParameter('import-stylesheet-url')}"/>
25:
26: <xsl:template match="resource|collection" mode="properties">
27: <table class="resource-properties">
28: <tr>
29: <td>
30: <div>
31: <strong>Title</strong><br />
32: <xsl:value-of select="title" />
33: </div>
34: <div>
35: <strong>Size</strong><br />
36: <xsl:value-of select="size" />
37: </div>
38: <div>
39: <strong>Description</strong><br />
40: <xsl:value-of select="description" />
41: </div>
42: <div>
43: <strong>ALT-text</strong><br />
44: <form onsubmit="return false;">
45: <input type="text" id="image_alt" size="10" />
46: </form>
47: </div>
48: </td>
49: <xsl:if test="preview">
50: <td>
51: <div><strong>Preview</strong></div>
52: <div id="epd-imgpreview">
53: <img src="{preview}" title="{title}" alt="{title}"/>
54: </div>
55: </td>
56: </xsl:if>
57: </tr>
58: </table>
59: </xsl:template>
60:
61: <xsl:template name="drawer-title">Image</xsl:template>
62: </xsl:stylesheet>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>