- Timestamp:
- 11/12/12 10:36:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/test/DEBBTranslator/xml/DEBBComponentTranslator.xsl
r587 r595 114 114 115 115 <xsl:template match="Storage"> 116 <!-- TODO: Not finished-->116 <!-- TODO: Not finished --> 117 117 <xsl:element name="resourceUnit"> 118 118 <xsl:attribute name="class">Storage</xsl:attribute> … … 122 122 123 123 <xsl:template match="CoolingDevice"> 124 <!-- TODO: Not finished--> 125 <xsl:element name="parameter"> 126 <xsl:attribute name="name">CoolingDevice</xsl:attribute> 127 <xsl:call-template name="BasicDEBBPhysicalElementData" /> 128 </xsl:element> 124 <!-- TODO: Not finished --> 125 <xsl:element name="airThroughputProfile"> 126 <!-- <xsl:attribute name="name">CoolingDevice</xsl:attribute> --> 127 <!-- Obligatory attribute --> 128 <xsl:element name="parameter"> 129 <xsl:attribute name="name">Class</xsl:attribute> 130 <xsl:element name="value"> 131 <xsl:value-of select="Class" /> 132 </xsl:element> 133 </xsl:element> 134 <xsl:if test="MaxCoolingCapacity"> 135 <xsl:element name="parameter"> 136 <xsl:attribute name="name">MaxCoolingCapacity</xsl:attribute> 137 <xsl:element name="value"> 138 <xsl:value-of select="MaxCoolingCapacity" /> 139 </xsl:element> 140 </xsl:element> 141 </xsl:if> 142 <xsl:if test="MaxAirThroughput"> 143 <xsl:element name="parameter"> 144 <xsl:attribute name="name">MaxAirThroughput</xsl:attribute> 145 <xsl:element name="value"> 146 <xsl:value-of select="MaxAirThroughput" /> 147 </xsl:element> 148 </xsl:element> 149 </xsl:if> 150 <xsl:if test="MaxWaterThroughput"> 151 <xsl:element name="parameter"> 152 <xsl:attribute name="name">MaxWaterThroughput</xsl:attribute> 153 <xsl:element name="value"> 154 <xsl:value-of select="MaxWaterThroughput" /> 155 </xsl:element> 156 </xsl:element> 157 </xsl:if> 158 <xsl:if test="ThroughputProfile"> 159 <xsl:element name="airThroughputStates"> 160 <xsl:apply-templates select="ThroughputProfile" /> 161 </xsl:element> 162 </xsl:if> 163 <!-- TODO: What to take it from?? --> 164 <xsl:element name="airThroughputEstimationPlugin"> 165 </xsl:element> 166 <xsl:call-template name="BasicDEBBPhysicalElementData" /> 167 </xsl:element> 168 </xsl:template> 169 170 <xsl:template match="ThroughputProfile"> 171 <xsl:apply-templates select="FlowState" /> 172 </xsl:template> 173 174 <xsl:template match="FlowState"> 175 <xsl:element name="airThroughputState"> 176 <xsl:element name="name"> 177 <xsl:value-of select="State" /> 178 </xsl:element> 179 <xsl:if test="Flow"> 180 <xsl:element name="value"> 181 <xsl:value-of select="Flow" /> 182 </xsl:element> 183 </xsl:if> 184 <xsl:if test="PowerUsage"> 185 <xsl:element name="value"> 186 <xsl:value-of select="PowerUsage" /> 187 </xsl:element> 188 </xsl:if> 189 <xsl:if test="Transition"> 190 <xsl:apply-templates select="Transition" /> 191 </xsl:if> 192 </xsl:element> 193 </xsl:template> 194 195 <xsl:template match="Transition"> 196 <xsl:element name="parameter"> 197 <xsl:attribute name="name">ToState</xsl:attribute> 198 <xsl:element name="value"> 199 <xsl:value-of select="ToState" /> 200 </xsl:element> 201 </xsl:element> 202 <xsl:element name="parameter"> 203 <xsl:attribute name="name">PowerUsage</xsl:attribute> 204 <xsl:element name="value"> 205 <xsl:value-of select="PowerUsage" /> 206 </xsl:element> 207 </xsl:element> 208 <xsl:element name="parameter"> 209 <xsl:attribute name="name">Time</xsl:attribute> 210 <xsl:element name="value"> 211 <xsl:value-of select="Time" /> 212 </xsl:element> 213 </xsl:element> 129 214 </xsl:template> 130 215
Note: See TracChangeset
for help on using the changeset viewer.