egroupware/phpgwapi/templates/default/cat_select.xsl

19 lines
567 B
XML
Raw Normal View History

2002-09-25 06:00:53 +02:00
<!-- $Id$ -->
<xsl:template name="cat_select">
<option value=""><xsl:value-of select="lang_select_category"/></option>
<xsl:apply-templates select="cat_list"/>
</xsl:template>
<xsl:template match="cat_list">
<xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
<xsl:choose>
2002-09-26 06:01:49 +02:00
<xsl:when test="selected">
2002-09-25 06:00:53 +02:00
<option value="{$id}" selected="selected"><xsl:value-of select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$id}"><xsl:value-of select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>