uiobjects_actions.xslt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xsl:stylesheet version="1.0"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  15. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  16. xmlns:nox="http://developer.cognos.com/schemas/navomx/1/"
  17. exclude-result-prefixes="xtsext xts xsl">
  18. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  19. <xsl:template match="/">
  20. <xsl:element name="xts:block">
  21. <xsl:copy-of select="xts:block/@*"/>
  22. <xsl:element name="actions">
  23. <xsl:for-each select="xts:block/nox:uiMetadata/nox:classes/nox:class">
  24. <xsl:element name="object">
  25. <xsl:attribute name="class"><xsl:value-of select="nox:name"/></xsl:attribute>
  26. <xsl:if test="nox:actions/nox:exclude">
  27. <xsl:attribute name="exclude"><xsl:value-of select="nox:actions/nox:exclude"/></xsl:attribute>
  28. </xsl:if>
  29. <xsl:for-each select="nox:actions/nox:action">
  30. <xsl:element name="action">
  31. <xsl:attribute name="name"><xsl:value-of select="nox:name"/></xsl:attribute>
  32. </xsl:element>
  33. </xsl:for-each>
  34. </xsl:element>
  35. </xsl:for-each>
  36. </xsl:element>
  37. </xsl:element>
  38. </xsl:template>
  39. </xsl:stylesheet>