Ignore:
Timestamp:
11/12/12 22:08:21 (12 years ago)
Author:
gosiaw
Message:

Storage transformation improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/trunk/src/test/DEBBTranslator/xml/DEBBComponentTranslator.xsl

    r598 r599  
    22<xsl:stylesheet version="1.0" 
    33        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:plm="http://www.plmxml.org/Schemas/PLMXMLSchema" 
    4         xmlns:cim="http://www.coolemall.eu/DEBBComponent" 
    5         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
     4        xmlns:cim="http://www.coolemall.eu/DEBBComponent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    65        <!-- Specification of the output document --> 
    76        <xsl:output method="xml" version="1.0" encoding="UTF-8" 
     
    8887                                </xsl:element> 
    8988                        </xsl:element> 
    90                         <xsl:element name="profile"> 
    91                                 <xsl:comment> 
    92                                         Power profile and/or air throughput 
    93                                 </xsl:comment> 
    94                                 <xsl:if test="PState | CState"> 
    95                                         <!-- If PState or CState elements present add powerProfile element --> 
     89                        <xsl:if test="PState | CState"> 
     90                                <!-- If PState or CState elements present add powerProfile element --> 
     91                                <xsl:element name="profile"> 
    9692                                        <xsl:element name="powerProfile"> 
    9793                                                <xsl:element name="powerStates"> 
     
    9995                                                </xsl:element> 
    10096                                        </xsl:element> 
    101                                 </xsl:if> 
    102                         </xsl:element> 
     97                                </xsl:element> 
     98                        </xsl:if> 
    10399                </xsl:element> 
    104100        </xsl:template> 
     
    155151                        <xsl:element name="amount"> 
    156152                                <xsl:attribute name="unit">MB</xsl:attribute> 
    157                                 1 
    158                         </xsl:element> 
    159                         <!-- <xsl:call-template name="BasicDEBBPhysicalElementData" /> --> 
     153                                <xsl:value-of select="Capacity"/> 
     154                        </xsl:element> 
     155                         <xsl:call-template name="BasicDEBBPhysicalElementData" />  
    160156                </xsl:element> 
    161157        </xsl:template> 
     
    167163                                <!-- <xsl:attribute name="name">CoolingDevice</xsl:attribute> --> 
    168164                                <!-- TODO: What to take it from?? --> 
    169 <!--                            <xsl:element name="airThroughputEstimationPlugin">--> 
    170 <!--                            </xsl:element>                          --> 
     165                                <!-- <xsl:element name="airThroughputEstimationPlugin"> --> 
     166                                <!-- </xsl:element> --> 
    171167                                <xsl:if test="ThroughputProfile"> 
    172168                                        <xsl:element name="airThroughputStates"> 
     
    204200                                                </xsl:element> 
    205201                                        </xsl:element> 
    206                                 </xsl:if>                                
     202                                </xsl:if> 
    207203                                <xsl:call-template name="BasicDEBBPhysicalElementData" /> 
    208204                        </xsl:element> 
Note: See TracChangeset for help on using the changeset viewer.