12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:nox="http://developer.cognos.com/schemas/navomx/1/"
- exclude-result-prefixes="xtsext xts xsl">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:template match="/">
- <xsl:element name="xts:block">
- <xsl:copy-of select="xts:block/@*"/>
- <xsl:element name="actions">
- <xsl:for-each select="xts:block/nox:uiMetadata/nox:classes/nox:class">
- <xsl:element name="object">
- <xsl:attribute name="class"><xsl:value-of select="nox:name"/></xsl:attribute>
- <xsl:if test="nox:actions/nox:exclude">
- <xsl:attribute name="exclude"><xsl:value-of select="nox:actions/nox:exclude"/></xsl:attribute>
- </xsl:if>
- <xsl:for-each select="nox:actions/nox:action">
- <xsl:element name="action">
- <xsl:attribute name="name"><xsl:value-of select="nox:name"/></xsl:attribute>
- </xsl:element>
- </xsl:for-each>
- </xsl:element>
- </xsl:for-each>
- </xsl:element>
- </xsl:element>
- </xsl:template>
-
- </xsl:stylesheet>
|