Rev | Line | |
---|
[6779] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
| 3 | <xsl:output method="html" omit-xml-declaration="yes"/> |
---|
| 4 | |
---|
| 5 | <xsl:param name="image_src" /> |
---|
| 6 | |
---|
| 7 | <xsl:template match="/"> |
---|
| 8 | <dl> |
---|
| 9 | <xsl:apply-templates select="." mode="option" /> |
---|
| 10 | </dl> |
---|
| 11 | |
---|
| 12 | </xsl:template> |
---|
| 13 | |
---|
| 14 | <xsl:template match="option" mode="option"> |
---|
| 15 | <dt style="cursor:pointer; padding:2px 2px 2px 15px; background: url('{$image_src}') no-repeat;" > |
---|
| 16 | <xsl:value-of select="item" /> |
---|
| 17 | </dt> |
---|
| 18 | </xsl:template> |
---|
| 19 | |
---|
| 20 | </xsl:stylesheet> |
---|
Note: See
TracBrowser
for help on using the repository browser.