pager.xslt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cogadmin
  5. (C) Copyright IBM Corp. 2005, 2013
  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. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:uic="http://developer.cognos.com/schemas/uic/presentation/markup/" xmlns:pgr="http://developer.cognos.com/schemas/uic/presentation/cogadminpager/" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:out="dummy-uri" exclude-result-prefixes="xsl pgr xts uic">
  13. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  14. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  15. <!--
  16. -->
  17. <xsl:template match="pgr:cogadminPagerTemplates">
  18. <out:template name="pgr:cogadminPager">
  19. <out:param name="pagerName" select="''"/>
  20. <out:param name="pageStart" select="''"/>
  21. <out:param name="pageEnd" select="''"/>
  22. <out:param name="pageMax" select="''"/>
  23. <out:param name="pageMore" select="''"/>
  24. <out:param name="linesPerPage" select="''"/>
  25. <uic:paginations>
  26. <uic:fromLabel>
  27. <xts:string id="IDS_PAGER_FROM"/>
  28. </uic:fromLabel>
  29. <uic:from>
  30. <out:value-of select="$pageStart"/>
  31. </uic:from>
  32. <uic:toLabel>
  33. <xts:string id="IDS_PAGER_TO"/>
  34. </uic:toLabel>
  35. <uic:to>
  36. <out:value-of select="$pageEnd"/>
  37. </uic:to>
  38. <uic:maxObjects>
  39. <out:value-of select="$pageMax"/>
  40. </uic:maxObjects>
  41. <uic:linesPerPage>
  42. <out:value-of select="$linesPerPage"/>
  43. </uic:linesPerPage>
  44. <uic:goto/>
  45. <uic:first>
  46. <out:if test="$pageStart &lt;= 1 or $pageStart ='' or (not ($pageStart))">
  47. <uic:disabled>true</uic:disabled>
  48. </out:if>
  49. </uic:first>
  50. <uic:previous>
  51. <out:if test="$pageStart &lt;= 1 or $pageStart = '' or (not ($pageStart))">
  52. <uic:disabled>true</uic:disabled>
  53. </out:if>
  54. </uic:previous>
  55. <uic:next>
  56. <out:if test="$pageMore = 'false' or $pageMore = '' or (not ($pageMore))">
  57. <uic:disabled>true</uic:disabled>
  58. </out:if>
  59. </uic:next>
  60. <uic:last>
  61. <out:if test="$pageMore = 'false' or $pageMore = '' or (not ($pageMore))">
  62. <uic:disabled>true</uic:disabled>
  63. </out:if>
  64. </uic:last>
  65. </uic:paginations>
  66. </out:template>
  67. </xsl:template>
  68. <xsl:template match="*">
  69. <xsl:copy>
  70. <xsl:copy-of select="@*"/>
  71. <xsl:apply-templates/>
  72. </xsl:copy>
  73. </xsl:template>
  74. </xsl:stylesheet>