index.xslt 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. +========================================================================+
  4. | Licensed Materials - Property of IBM
  5. |
  6. | IBM Cognos Products: BUX
  7. |
  8. | (C) Copyright IBM Corp. 2011
  9. |
  10. | US Government Users Restricted Rights - Use, duplication or
  11. | disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. |
  13. +========================================================================+
  14. -->
  15. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  16. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  17. <xsl:variable name="classes" select="document('filters.xml')/filters/filter/include/class"/>
  18. <xsl:template match="/">
  19. <images>
  20. <xsl:apply-templates select="/system/param[@name='ui_objects']/object[@icon]">
  21. <xsl:sort select="@icon"/>
  22. </xsl:apply-templates>
  23. </images>
  24. </xsl:template>
  25. <xsl:template match="object">
  26. <image>
  27. <xsl:if test="$classes = current()/@class">
  28. <xsl:attribute name="flags">BS</xsl:attribute>
  29. </xsl:if>
  30. <xsl:text>icon_</xsl:text>
  31. <xsl:value-of select="@icon"/>
  32. </image>
  33. </xsl:template>
  34. </xsl:stylesheet>