Annotation of kupu/apache-lenya/lenya/drawers/linkdrawer.xsl, 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 link library
! 14: drawer.
! 15:
! 16: $Id: linkdrawer.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: version="1.0">
! 22:
! 23: <xsl:import href="${parameters.getParameter('import-stylesheet-url')}"/>
! 24:
! 25: <xsl:template match="resource|collection" mode="properties">
! 26: <form onsubmit="return false;">
! 27: <table class="resource-properties">
! 28: <tr class="kupu-linkdrawer-title-row">
! 29: <td>
! 30: <strong>Title</strong><br />
! 31: <xsl:value-of select="title" />
! 32: </td>
! 33: </tr>
! 34: <tr class="kupu-linkdrawer-description-row">
! 35: <td>
! 36: <strong>Description</strong><br />
! 37: <xsl:value-of select="description" />
! 38: </td>
! 39: </tr>
! 40: <!--
! 41: <tr class="kupu-linkdrawer-language-row">
! 42: <td>
! 43: <strong>Language</strong><br />
! 44: <xsl:value-of select="language" />
! 45: </td>
! 46: </tr>
! 47: -->
! 48: <tr class="kupu-linkdrawer-name-row">
! 49: <td>
! 50: <strong>Name</strong><br />
! 51: <input type="text" id="link_name" size="14" value="{title}"/>
! 52: </td>
! 53: </tr>
! 54: <tr class="kupu-linkdrawer-target-row">
! 55: <td>
! 56: <strong>Target</strong><br />
! 57: <input type="text" id="link_target" value="" size="10" title="Target window of link: _self, _blank, or custom"/>
! 58: </td>
! 59: </tr>
! 60: <xsl:if test="preview">
! 61: <tr>
! 62: <td>
! 63: <strong>Preview</strong><br/>
! 64: <div id="epd-imgpreview">
! 65: <a href="{preview}" target="_blank" title="Preview page {uri} in new a window">
! 66: Preview page in new window.
! 67: </a>
! 68: </div>
! 69: </td>
! 70: </tr>
! 71: </xsl:if>
! 72: </table>
! 73: </form>
! 74: </xsl:template>
! 75:
! 76: <xsl:template name="drawer-title">Link</xsl:template>
! 77: </xsl:stylesheet>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>