123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- BI and PM: CM
- (C) Copyright IBM Corp. 2008, 2009
- US Government Users Restricted Rights - Use, duplication or disclosure
- restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!-- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated). -->
- <xsl:stylesheet version="1.0"
- exclude-result-prefixes="cc xhtml"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cc="http://developer.cognos.com/schema/ChangeControl/1/"
- xmlns:xhtml="http://www.w3.org/1999/xhtml"
- >
- <xsl:output method="html" indent="yes" omit-xml-declaration="yes" encoding="UTF-8"/>
- <xsl:template match="cognosUpgrade">
- <style>
- h1 {COLOR: red; FONT-FAMILY: Arial; FONT-SIZE: 14pt;}
- h2 {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
- .subhead {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
- .text {COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
- th {COLOR: white; FONT-FAMILY: Arial; background-color: darkblue;}
- </style>
- <p>
- <h1><xsl:value-of select="heading/upgradeResults"/></h1>
- <table border="1">
- <tr>
- <th><xsl:value-of select="heading/objectClass"/></th>
- <th><xsl:value-of select="heading/total"/></th>
- <th><xsl:value-of select="heading/success"/></th>
- <th><xsl:value-of select="heading/failure"/></th>
- <th><xsl:value-of select="heading/upToDate"/></th>
- </tr>
- <xsl:for-each select="plugin[contains(@id, 'CM_internal') = false]">
- <tr>
- <xsl:apply-templates select="objectClasses"/>
- <xsl:apply-templates select="summary"/>
- </tr>
- </xsl:for-each>
- </table>
- </p>
- <xsl:if test="error[@type='plugin']">
- <p>
- <h1><xsl:value-of select="heading/errors"/></h1>
- <table border="1" frame="box">
- <tr>
- <th><xsl:value-of select="heading/objectClass"/></th>
- <th><xsl:value-of select="heading/error"/></th>
- <th><xsl:value-of select="heading/searchPath"/></th>
- </tr>
- <xsl:for-each select="error[@type='plugin']">
- <tr>
- <td><xsl:value-of select="objectClass"/></td>
- <td><xsl:value-of select="message"/></td>
- <td><xsl:value-of select="searchPath"/></td>
- </tr>
- </xsl:for-each>
- </table>
- </p>
- </xsl:if>
- <p>
- <h1><xsl:value-of select="heading/invalidRefs"/></h1>
- <table border="1">
- <tr>
- <th>Message</th>
- </tr>
- <xsl:for-each select="error[@type='dataError']">
- <tr>
- <td><xsl:value-of select="message"/></td>
- </tr>
- </xsl:for-each>
- </table>
- </p>
- </xsl:template>
- <!--
- <xsl:template match="plugin">
- <tr>
- <td>
- <xsl:value-of select="@id"/>
- </td>
- <xsl:apply-templates />
- </tr>
- </xsl:template>
- -->
- <xsl:template match="error">
- <!-- <tr>
- <td>
- <xsl:value-of select="@message"/>
- </td>
- </tr> -->
- </xsl:template>
- <xsl:template match="summary">
- <td>
- <xsl:value-of select="@total"/>
- </td>
- <td>
- <xsl:value-of select="@success"/>
- </td>
- <td>
- <xsl:value-of select="@failure"/>
- </td>
- <td>
- <xsl:value-of select="@upToDate"/>
- </td>
- </xsl:template>
- <xsl:template match="objectClasses">
- <td>
- <xsl:value-of select="objectClass"/>
- </td>
- </xsl:template>
- <xsl:template match="objectClass">
- </xsl:template>
- <xsl:template match="property">
- </xsl:template>
- <xsl:template match="properties">
- </xsl:template>
- </xsl:stylesheet>
|