Changeset 635 for DCWoRMS/trunk/src


Ignore:
Timestamp:
11/20/12 13:17:57 (12 years ago)
Author:
gosiaw
Message:

Some parameters are passed to and handled inside xslt

Location:
DCWoRMS/trunk/src/test/DEBBTranslator/xml
Files:
2 edited

Legend:

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

    r626 r635  
    66        <xsl:output method="xml" version="1.0" encoding="UTF-8" 
    77                indent="yes" /> 
     8                 
     9        <!-- Information for mapping of resource classes into DCWoRMS resourceUnits classes --> 
     10        <xsl:param name="resourceUnitClasses" select="resourceUnitClasses"/> 
     11                         
    812        <xsl:template match="/"> 
    913                <xsl:element name="environment"> 
  • DCWoRMS/trunk/src/test/DEBBTranslator/xml/PLMXMLTranslator.xsl

    r634 r635  
    77        <xsl:import href="DEBBComponentTranslator.xsl" /> 
    88 
     9        <!-- Information for mapping of DEBB classes into DCWoRMS computingResource classes --> 
     10        <xsl:param name="computingResourceClasses" select="computingResourceClasses"/> 
     11         
     12        <!-- Information for mapping of resource classes into DCWoRMS resourceUnits classes --> 
     13        <!-- (Needed to pass to DEBB Components xslt) --> 
     14        <xsl:param name="resourceUnitClasses" select="resourceUnitClasses"/> 
     15         
    916        <!-- Specification of the output document --> 
    1017        <xsl:output method="xml" version="1.0" encoding="UTF-8" 
     
    1926 
    2027 
    21         <xsl:template match="/"> 
     28        <xsl:template match="/">         
    2229                <xsl:element name="environment"> 
    2330                        <xsl:attribute name="xsi:noNamespaceSchemaLocation">DCWormsResSchema.xsd</xsl:attribute> 
     
    126133                                <xsl:variable name="nestedDoc" 
    127134                                        select="document($defaultDEBBComponentsFileName)" /> 
    128                                 <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" /> 
     135                                <xsl:apply-templates select="$nestedDoc//*[ComponentId=$debbComponentId]" > 
     136                                        <xsl:with-param name="resourceUnitClasses"> 
     137                                                <xsl:value-of select="$resourceUnitClasses"/> 
     138                                        </xsl:with-param> 
     139                                </xsl:apply-templates> 
    129140                        </xsl:otherwise> 
    130141                </xsl:choose> 
Note: See TracChangeset for help on using the changeset viewer.