Ignore:
Timestamp:
03/19/14 18:24:17 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/simulator/xslt/debb/PLMXMLTranslator.xsl

    r1266 r1302  
    9494                                                        <xsl:value-of select="$templateStartLevel"/> 
    9595                                                </xsl:attribute> 
    96                                                 <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" mode="component"/>             
     96                                                <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="component"/>          
    9797                                                <xsl:element name="device"> 
    9898                                                <xsl:variable name="deviceName" select="distinct-values($rootDoc//plm:ProductRevisionView[plm:UserData/plm:UserValue/@value=$devicesIds[$index3]]/@name)[1]" />          
     
    114114                                </xsl:variable> 
    115115                                                                <xsl:variable name="nestedDoc2" select="document($deviceFileFullName)" /> 
    116                                                                 <xsl:apply-templates select="$nestedDoc2//*[ComponentId=$devicesIds[$index3]]" mode="heatsink"> 
     116                                                                <xsl:apply-templates select="$nestedDoc2//*[PartID=$devicesIds[$index3]]" mode="heatsink"> 
    117117                                                <xsl:with-param name="instanceRefs" select="distinct-values($rootDoc//plm:ProductRevisionView[plm:UserData/plm:UserValue/@value=$devicesIds[$index3]]/@id)[1]" />                
    118118                                                        </xsl:apply-templates> 
     
    207207                                        <xsl:when test="$debbComponentFile != ''"> 
    208208                                                <xsl:variable name="nestedDoc" select="document($debbComponentFile)" /> 
    209                                                 <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" mode="component"> 
     209                                                <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="component"> 
    210210                                                        <xsl:with-param name="instanceRefs" select="@instanceRefs" />            
    211211                                                </xsl:apply-templates> 
     
    247247 
    248248                        <xsl:if test="$debbLevel = 'CoolingDevice'"> 
    249                                 <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" mode="coolingDevice"> 
     249                                <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="coolingDevice"> 
    250250                                        <xsl:with-param name="instanceRefs" select="@id" />              
    251251                                </xsl:apply-templates> 
    252252                        </xsl:if>        
    253253                        <xsl:if test="$debbLevel = 'Inlet' or $debbLevel = 'Outlet'"> 
    254                                 <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" mode="fan"> 
     254                                <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="fan"> 
    255255                                        <xsl:with-param name="instanceRefs" select="@id" />              
    256256                                </xsl:apply-templates> 
    257257                        </xsl:if> 
    258258                        <xsl:if test="$debbLevel = 'Heatsink'"> 
    259                                 <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" mode="heatsink"> 
     259                                <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="heatsink"> 
    260260                                        <xsl:with-param name="instanceRefs" select="@id" />              
    261261                                </xsl:apply-templates> 
     
    296296                                                <xsl:variable name="nestedDoc" select="document($debbComponentFile)" /> 
    297297 
    298                                                 <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" mode="component">  
     298                                                <xsl:apply-templates select="$nestedDoc//*[PartID=$debbComponentId]" mode="component">  
    299299                                                        <xsl:with-param name="instanceRefs" select="@instanceRefs" />                                                    
    300300                                                </xsl:apply-templates> 
Note: See TracChangeset for help on using the changeset viewer.