123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?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="CMRootMap">
- <xsl:for-each select="xts:block/nox:uiMetadata/nox:classes/nox:class">
- <xsl:if test="nox:root">
- <xsl:element name="class">
- <xsl:attribute name="name"><xsl:value-of select="nox:name"/></xsl:attribute>
- <xsl:if test="nox:root/nox:fixedRoot">
- <xsl:choose>
- <xsl:when test="nox:root/nox:fixedRoot='true'">
- <xsl:attribute name="fixedRoot">T</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="fixedRoot">F</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:attribute name="root"><xsl:value-of select="nox:root/nox:path"/></xsl:attribute>
- </xsl:element>
- </xsl:if>
- </xsl:for-each>
- </xsl:element>
- </xsl:element>
- </xsl:template>
-
- </xsl:stylesheet>
|