Annotation of kupuMPIWG/silva/imagedrawer.xsl.pt, revision 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 4105 2004-04-21 23:56:13Z guido $
        !            17: -->
        !            18: <xsl:stylesheet
        !            19:   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        !            20:   xmlns:tal="http://xml.zope.org/namespaces/tal"
        !            21:   version="1.0">
        !            22: 
        !            23:   <xsl:import
        !            24:     href="http://asteroid.infrae:8080/silva/kupu_silva/librarydrawer.xsl"
        !            25:     tal:attributes="href python: '%s/kupu_silva/librarydrawer.xsl' % here.get_root().absolute_url()"
        !            26:     />
        !            27: 
        !            28:   <xsl:template match="resource|collection" mode="properties">
        !            29:     <table>
        !            30:       <xsl:if test="preview">      
        !            31:         <tr>
        !            32:           <td id="epd-imgpreview">
        !            33:             <strong>Preview</strong><br />
        !            34:             <img src="{preview}" title="{title}" alt="{title}" />
        !            35:           </td>
        !            36:         </tr>
        !            37:       </xsl:if>
        !            38:       <tr>
        !            39:         <td>
        !            40:           <strong>Title</strong><br />
        !            41:           <xsl:value-of select="title" />
        !            42:         </td>
        !            43:       </tr>
        !            44:       <tr>
        !            45:         <td>
        !            46:           <strong>Size</strong><br />
        !            47:           <xsl:value-of select="size" />
        !            48:         </td>
        !            49:       </tr>
        !            50:       <tr>
        !            51:         <td>
        !            52:           <strong>Description</strong><br />
        !            53:           <xsl:value-of select="description" />
        !            54:         </td>
        !            55:       </tr>
        !            56:       <tr>
        !            57:         <td>
        !            58:           <strong>ALT-text</strong><br />
        !            59:           <form onsubmit="return false;">
        !            60:             <input type="text" id="image_alt" size="10" />
        !            61:           </form>
        !            62:         </td>
        !            63:       </tr>
        !            64:     </table>
        !            65:   </xsl:template>
        !            66: </xsl:stylesheet>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>