added xsl tpl

This commit is contained in:
ceb 2002-09-26 04:01:49 +00:00
parent 9fea7d76e0
commit 48d3c51ede
2 changed files with 18 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<xsl:template match="cat_list">
<xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected_cat">
<xsl:when test="selected">
<option value="{$id}" selected="selected"><xsl:value-of select="name"/></option>
</xsl:when>
<xsl:otherwise>

View File

@ -0,0 +1,17 @@
<!-- $Id$ -->
<xsl:template name="filter_select">
<xsl:apply-templates select="filter_list"/>
</xsl:template>
<xsl:template match="filter_list">
<xsl:variable name="key"><xsl:value-of select="key"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected">
<option value="{$key}" selected="selected"><xsl:value-of select="lang"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$key}"><xsl:value-of select="lang"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>