Changeset 3441 for SMC


Ignore:
Timestamp:
08/20/13 11:59:28 (11 years ago)
Author:
vronk
Message:

making use of getData() function to retrieve individual profiles
(gets us access to cache)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SMC/trunk/SMC/src/xsl/cmd_includes.xsl

    r2437 r3441  
    5050    </xsl:template>
    5151   
    52 
    53     <xsl:template match="componentDescription[id] | profileDescription[id]" mode="include">
     52<!--    <xsl:template match="componentDescription[id] | profileDescription[id]" mode="include">-->
     53    <xsl:template match="profileDescription[id]" mode="include">
    5454   
    5555        <!--  <xsl:variable name="resolved_uri" select="concat($root_uri, '/', id)" />-->
    5656        <!--<xsl:variable name="resolved_uri" select="concat($cmd_profiles_uri , '/', my:extractID(id))" />-->
     57        <!--
    5758        <xsl:variable name="resolved_uri" select="concat($cmd_profiles_uri , id, '/xml')" />
    5859       
    5960        <xsl:message>PROFILE: document-uri:<xsl:value-of select="document-uri(/)" /></xsl:message>
    6061        <xsl:message>resolved_uri:<xsl:value-of select="$resolved_uri" /></xsl:message>
    61        
     62        -->
    6263               
    6364        <xsl:copy>             
    64                 <xsl:apply-templates mode="include" />
    65                 <xsl:apply-templates select="document($resolved_uri)" mode="include" />
     65            <xsl:apply-templates mode="include" />
     66            <xsl:copy-of select="my:getData('profiles', id, $cache)"></xsl:copy-of>
     67                <!--<xsl:call-template name="getData">
     68                    <xsl:with-param name="key" select="'profile'"></xsl:with-param>
     69                    <xsl:with-param name="id" select="id"></xsl:with-param>
     70                </xsl:call-template>-->
     71            <!-- <xsl:apply-templates mode="include" />
     72                <xsl:apply-templates select="document($resolved_uri)" mode="include" /> -->
    6673                <!-- <xsl:copy-of select="document($resolved_uri)" /> -->
    6774                <!-- <xsl:copy-of select="document(id, $root_uri)" />  -->
Note: See TracChangeset for help on using the changeset viewer.