generate-delete-datasourcecredentials.xslt 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  9. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  10. <xsl:template match="storeIDs">
  11. <xsl:variable name="storeIds" select="./storeID"/>
  12. <xsl:if test="count($storeIds) > 0">
  13. <cm:delete xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  14. <cm:objects>
  15. <xsl:for-each select="$storeIds">
  16. <cm:dataSourceCredential>
  17. <cm:searchPath>storeID('<xsl:value-of select="."/>')</cm:searchPath>
  18. </cm:dataSourceCredential>
  19. </xsl:for-each>
  20. </cm:objects>
  21. </cm:delete>
  22. </xsl:if>
  23. </xsl:template>
  24. <xsl:template match="storeID">
  25. </xsl:template>
  26. </xsl:stylesheet>