settings.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <!--
  13. ===============================================================================================
  14. Generated Runtime configuration tool UI file (English).
  15. ===============================================================================================
  16. -->
  17. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" exclude-result-prefixes="bus cm">
  18. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  19. <xsl:template match="root">
  20. <xts:sequence>
  21. <xts:append>
  22. <pkgcfgSettings>
  23. <setting>
  24. <displayName><xts:string id="IDS_PACKAGECONFIGURATION_MEMBERDEFAULT"/></displayName>
  25. <name>memberDisplayCountDefault</name>
  26. <defaultValue>20</defaultValue>
  27. <value>
  28. <xsl:choose>
  29. <xsl:when test="string(/root/cm:queryResponse/*/cm:memberDisplayCountDefault)!=''">
  30. <xsl:value-of select="/root/cm:queryResponse/*/cm:memberDisplayCountDefault"/>
  31. </xsl:when>
  32. <xsl:otherwise>20</xsl:otherwise>
  33. </xsl:choose>
  34. </value>
  35. </setting>
  36. <setting>
  37. <displayName><xts:string id="IDS_PACKAGECONFIGURATION_MEMBERLIMIT"/></displayName>
  38. <name>memberDisplayCountLimit</name>
  39. <defaultValue>50</defaultValue>
  40. <value>
  41. <xsl:choose>
  42. <xsl:when test="string(/root/cm:queryResponse/*/cm:memberDisplayCountLimit)!=''">
  43. <xsl:value-of select="/root/cm:queryResponse/*/cm:memberDisplayCountLimit"/>
  44. </xsl:when>
  45. <xsl:otherwise>50</xsl:otherwise>
  46. </xsl:choose>
  47. </value>
  48. </setting>
  49. </pkgcfgSettings>
  50. </xts:append>
  51. </xts:sequence>
  52. </xsl:template>
  53. </xsl:stylesheet>