Ignore:
Timestamp:
03/22/13 11:27:06 (12 years ago)
Author:
gosiaw
Message:

fullPath parameters are not added for computingResource elements embedded in computingResourceTemplate elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/test/DEBBTranslator/xml/DCWoRMSDEBBUpdater.xsl

    r1000 r1001  
    153153                         
    154154                        <xsl:variable name="debbFullPath" select="fun:getFullPath(.)"/> 
    155                         <xsl:if test="$debbFullPath != '' and name(.) = 'computingResource'"> 
    156                                 <!-- fullPath parameter should be added only for computingResource nodes; for computingResourceTemplate it is not needed --> 
     155                        <xsl:variable name="ancestors" select="ancestor::computingResourceTemplate"/> 
     156                                 
     157                         
     158                        <xsl:if test="$debbFullPath != '' and name(.) = 'computingResource' and count($ancestors) = 0"> 
     159                                <!-- fullPath parameter should be added only for computingResource nodes; for computingResourceTemplate it is not needed; 
     160                                for computingResource nodes embedded in computingResourceTemplate nodes fullPath is not needed either --> 
    157161                                <xsl:element name="parameter"> 
    158162                                        <xsl:attribute name="name">fullPath</xsl:attribute> 
Note: See TracChangeset for help on using the changeset viewer.