- Timestamp:
- 11/12/12 22:08:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/test/DEBBTranslator/xml/DEBBComponentTranslator.xsl
r598 r599 2 2 <xsl:stylesheet version="1.0" 3 3 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"> 6 5 <!-- Specification of the output document --> 7 6 <xsl:output method="xml" version="1.0" encoding="UTF-8" … … 88 87 </xsl:element> 89 88 </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"> 96 92 <xsl:element name="powerProfile"> 97 93 <xsl:element name="powerStates"> … … 99 95 </xsl:element> 100 96 </xsl:element> 101 </xsl: if>102 </xsl: element>97 </xsl:element> 98 </xsl:if> 103 99 </xsl:element> 104 100 </xsl:template> … … 155 151 <xsl:element name="amount"> 156 152 <xsl:attribute name="unit">MB</xsl:attribute> 157 1158 </xsl:element> 159 <!-- <xsl:call-template name="BasicDEBBPhysicalElementData" /> -->153 <xsl:value-of select="Capacity"/> 154 </xsl:element> 155 <xsl:call-template name="BasicDEBBPhysicalElementData" /> 160 156 </xsl:element> 161 157 </xsl:template> … … 167 163 <!-- <xsl:attribute name="name">CoolingDevice</xsl:attribute> --> 168 164 <!-- TODO: What to take it from?? --> 169 <!-- <xsl:element name="airThroughputEstimationPlugin">-->170 <!-- </xsl:element>-->165 <!-- <xsl:element name="airThroughputEstimationPlugin"> --> 166 <!-- </xsl:element> --> 171 167 <xsl:if test="ThroughputProfile"> 172 168 <xsl:element name="airThroughputStates"> … … 204 200 </xsl:element> 205 201 </xsl:element> 206 </xsl:if> 202 </xsl:if> 207 203 <xsl:call-template name="BasicDEBBPhysicalElementData" /> 208 204 </xsl:element>
Note: See TracChangeset
for help on using the changeset viewer.