Ignore:
Timestamp:
11/20/12 09:23:58 (12 years ago)
Author:
gosiaw
Message:

Sensors excluded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/trunk/src/test/DEBBTranslator/xml/PLMXMLTranslator.xsl

    r628 r629  
    3030                <xsl:variable name="partRef" select="@partRef" /> 
    3131                <xsl:variable name="id" select="translate($partRef, '#', '')" /> 
    32                 <xsl:element name="computingElement"> 
    33                         <!-- <xsl:attribute name="name"> --> 
    34                         <!-- <xsl:value-of select="@name" /> --> 
    35                         <!-- </xsl:attribute> --> 
    36                         <xsl:apply-templates select="//plm:ProductRevisionView[@id=$id]" /> 
    37                 </xsl:element> 
     32 
     33                <xsl:if test="not (starts-with(@name, 'Sensor'))"> 
     34                        <!-- We have to get rid of sensors, which make only problems here --> 
     35                        <xsl:element name="computingElement"> 
     36                                <xsl:attribute name="test"><xsl:value-of select="@name" /></xsl:attribute> 
     37                                <xsl:apply-templates select="//plm:ProductRevisionView[@id=$id]" /> 
     38                        </xsl:element> 
     39                </xsl:if> 
    3840        </xsl:template> 
    3941 
Note: See TracChangeset for help on using the changeset viewer.