123456789101112131415161718192021222324252627282930 |
- <?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:req-params="http://developer.cognos.com/schemas/request/params"
- exclude-result-prefixes="xsl">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/root">
- <xsl:for-each select="./API_params/*">
- <xsl:variable name="paramName" select="local-name()"/>
- <xsl:if test="not(/root/*[local-name()='requestParams']/*[local-name()='param'][@name=$paramName]) and @default!=''">
- <req-params:param name="{$paramName}"><xsl:value-of select="@default"/></req-params:param>
- </xsl:if>
- </xsl:for-each>
- </xsl:template>
- </xsl:stylesheet>
|