Changeset 881 for DCWoRMS/trunk
- Timestamp:
- 02/20/13 10:43:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/trunk/src/test/DEBBTranslator/xml/DCWoRMSDEBBUpdater.xsl
r880 r881 156 156 <xsl:template match="powerProfile"> 157 157 <xsl:copy copy-namespaces="no"> 158 <xsl:apply-templates select="$nestedDoc//energyEstimationPlugin"/> 158 <xsl:variable name="resourceClass" select="../../@class"></xsl:variable> 159 <xsl:variable name="resourceType" select="../../@type"></xsl:variable> 160 <xsl:variable name="resourceName" select="../../@name"></xsl:variable> 161 <xsl:choose> 162 <xsl:when test="$resourceType != ''"> 163 <!-- resource class and type --> 164 <!-- Add information about energy estimation plugin --> 165 <xsl:apply-templates select="$nestedDoc//energyEstimationPlugin[resources/class = $resourceClass and resources/type = $resourceType]"/> 166 </xsl:when> 167 <xsl:otherwise> 168 <!-- resource class only --> 169 <!-- Add information about energy estimation plugin --> 170 <xsl:apply-templates select="$nestedDoc//energyEstimationPlugin[resources/class = $resourceClass]"/> 171 </xsl:otherwise> 172 </xsl:choose> 173 <!-- Copy all children of powerProfile --> 159 174 <xsl:copy-of select="@*|node()" /> 160 175 </xsl:copy>
Note: See TracChangeset
for help on using the changeset viewer.