123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- +========================================================================+
- | Licensed Materials - Property of IBM
- |
- | IBM Cognos Products: BUX
- |
- | (C) Copyright IBM Corp. 2009, 2011
- |
- | US Government Users Restricted Rights - Use, duplication or
- | disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- |
- +========================================================================+
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Index of images</title>
- <style type="text/css">
- table { font-family: verdana; font-size:8pt; border:1px solid #000; }
- td { border-bottom:1px solid #eee; border-right:1px solid #eee; text-align:center }
- th { background-color: #eeeef8 }
- .flags { background-color: #cccce8 }
- </style>
- <script type="text/javascript">
- function recoverError(source, suffix)
- {
- source.onerror = "";
- source.src = "icon_missing"+suffix+".gif";
- return true;
- }
- </script>
- </head>
- <body>
- <table border="0" cellpadding="4" cellspacing="0">
- <tbody>
- <tr>
- <th>name</th>
- <th>16</th>
- <th>16r</th>
- <th>32</th>
- <th>32r</th>
- <th>64</th>
- <th>64r</th>
- </tr>
- <xsl:apply-templates select="/images/image">
- <xsl:sort select="."/>
- </xsl:apply-templates>
- </tbody>
- </table>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="image">
- <tr>
- <td>
- <xsl:if test="@flags">
- <xsl:attribute name="class">flags</xsl:attribute>
- </xsl:if>
- <xsl:value-of select="."/>
- </td>
- <td>
- <xsl:if test="contains(@flags,'B')">
- <xsl:attribute name="class">flags</xsl:attribute>
- </xsl:if>
- <img alt="" src="{.}.gif" onerror="recoverError(this,'')"/>
- </td>
- <td>
- <xsl:if test="contains(@flags,'S')">
- <xsl:attribute name="class">flags</xsl:attribute>
- </xsl:if>
- <img alt="" src="{.}_ref.gif" onerror="recoverError(this,'_ref')"/>
- </td>
- <td>
- <img alt="" src="{.}_32.gif" onerror="recoverError(this,'_32')"/>
- </td>
- <td>
- <img alt="" src="{.}_ref_32.gif" onerror="recoverError(this,'_ref_32')"/>
- </td>
- <td>
- <xsl:if test="contains(@flags,'B')">
- <xsl:attribute name="class">flags</xsl:attribute>
- </xsl:if>
- <img alt="" src="{.}_64.gif" onerror="recoverError(this,'_64')"/>
- </td>
- <td>
- <xsl:if test="contains(@flags,'S')">
- <xsl:attribute name="class">flags</xsl:attribute>
- </xsl:if>
- <img alt="" src="{.}_ref_64.gif" onerror="recoverError(this,'_ref_64')"/>
- </td>
- </tr>
- </xsl:template>
- </xsl:stylesheet>
|