12345678910111213141516171819202122232425262728293031323334 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- +========================================================================+
- | Licensed Materials - Property of IBM
- |
- | IBM Cognos Products: BUX
- |
- | (C) Copyright IBM Corp. 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="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:variable name="classes" select="document('filters.xml')/filters/filter/include/class"/>
- <xsl:template match="/">
- <images>
- <xsl:apply-templates select="/system/param[@name='ui_objects']/object[@icon]">
- <xsl:sort select="@icon"/>
- </xsl:apply-templates>
- </images>
- </xsl:template>
- <xsl:template match="object">
- <image>
- <xsl:if test="$classes = current()/@class">
- <xsl:attribute name="flags">BS</xsl:attribute>
- </xsl:if>
- <xsl:text>icon_</xsl:text>
- <xsl:value-of select="@icon"/>
- </image>
- </xsl:template>
- </xsl:stylesheet>
|