<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template name="uiEditTrigger">

        <xsl:param name="url" />
        <xsl:param name="className" />
        <xsl:param name="title" select="''" />

        <xsl:variable name="showTitle">
            <xsl:choose>
                <xsl:when test="$title != ''">
                    <xsl:value-of select="$title" />
                </xsl:when>
                <xsl:otherwise>
                    <xsl:text>Edit</xsl:text>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:variable>

        <a title="{$showTitle}" class="js-tooltip {$className}" href="{$url}">
            <xsl:call-template name="icon">
                <xsl:with-param name="type" select="'edit'" />
                <xsl:with-param name="role" select="'action'" />
            </xsl:call-template>
        </a>
    </xsl:template>
</xsl:stylesheet>
