12345678910111213141516171819202122232425262728293031323334353637 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: AGS
- (C) Copyright IBM Corp. 2005, 2008
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- ================================================================================
- replaceScheduleCredentials
- a block which will replace schedule credentials with current ones.
- ===============================================================================================
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xsi">
- <!--
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:form="http://developer.cognos.com/schemas/xts/ags/iFrmCmd/1/"
- -->
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:update select="/root/scheduleParameters/*[local-name()='item']/*[local-name()='credential']//*[local-name()='searchPath']/*[local-name()='value']">
- <value xsi:type="xsd:string">
- <xsl:value-of select="/root/*[local-name()='envelope']/*[local-name()='Envelope']/*[local-name()='Body']//*[local-name()='credentialPath']"/>
- </value>
- </xts:update>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|