objectidSelect.xsl 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: CCS
  5. (c) Copyright IBM Corp. 2005, 2010
  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" xmlns:ccs="http://developer.cognos.com/rds/1" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
  9. <xsl:output method="xml" omit-xml-declaration="yes" version="1.0"/>
  10. <xsl:param name="filterObjid">1</xsl:param>
  11. <xsl:template match="/">
  12. <xsl:apply-templates select="//ccs:cbits"/>
  13. </xsl:template>
  14. <xsl:template match="ccs:cbits">
  15. <ccs:cbits>
  16. <ccs:metaData>
  17. <xsl:apply-templates select="//ccs:metaData//ccs:id[. = $filterObjid]"/>
  18. </ccs:metaData>
  19. <ccs:data>
  20. <xsl:apply-templates select="//ccs:data//ccs:id[. = $filterObjid]"/>
  21. </ccs:data>
  22. </ccs:cbits>
  23. </xsl:template>
  24. <xsl:template match="ccs:id">
  25. <xsl:copy-of select="../*"/>
  26. </xsl:template>
  27. </xsl:stylesheet>