1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- *****************************************************************
- ** Licensed Materials - Property of IBM
- **
- ** IBM Cognos Products: drill
- **
- ** (C) Copyright IBM Corp. 2001, 2010
- **
- ** 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:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
- xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- exclude-result-prefixes="xsl send bus xts xtsext pf cm pm">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="root">
- <promptRequest>
- <collectResponse xmlns="http://developer.cognos.com/schemas/xts/portal/iPrompting/1/">
- <xsl:apply-templates select="/root/*[local-name()='promptRequest']/*/*[local-name()='parameters']" mode="pam"/>
- </collectResponse>
- </promptRequest>
- </xsl:template>
- <xsl:template match="/root/*[local-name()='promptRequest']/*/*[local-name()='parameters']" mode="pam">
- <xsl:copy>
- <xsl:copy-of select="./@*"/>
- <xsl:apply-templates select="./*" mode="item"/>
- </xsl:copy>
- </xsl:template>
- <xsl:template match="*[local-name()='item']" mode="item">
- <xsl:variable name="pos" select="position()"/>
- <xsl:copy>
- <xsl:copy-of select="./*"/>
- <position xmlns="http://developer.cognos.com/schemas/bibus/3/"><xsl:value-of select="$pos"/></position>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|