Ignore:
Timestamp:
06/05/08 11:03:45 (4 years ago)
Author:
anp
Message:

genOd : Ajout de sm:callModel/sm:lookForAscendants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/od/getContent.xsl.xsl

    r10812 r11144  
    225225                <xsl0:template match="sm:hyperlink[sm:link/sm:toUrl]" mode="mContent"><xsl0:call-template name="sm:hyperlink_url"/></xsl0:template> 
    226226                 
     227                <!-- # CallModel 
     228                --> 
     229                <xsl0:template match="sm:callModel" name="sm:callModel"> 
     230                        <xsl0:for-each select="*"> 
     231                                <xsl:value-of disable-output-escaping="yes"> 
     232                                        <xsl0:attribute name="select"> 
     233                                                <xsl0:choose> 
     234                                                        <xsl0:when test="name()='sm:root'">resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '<xsl0:value-of select="getAxisSuffix(@axis)"/>/getContent'))</xsl0:when> 
     235                                                        <xsl0:when test="name()='sm:current'">resultatAgent(concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="@axis"/>'), '/getContent'))</xsl0:when> 
     236                                                        <xsl0:when test="name()='sm:agentPath'">resultatAgent(agent('<xsl0:value-of select="@path"/>', $vDialog))</xsl0:when> 
     237                                                        <xsl0:when test="name()='sm:lookForAscendants'">resultatAgent(concat('@', switchAxis(codeAgent(lookForAncestorAgentByTypes($vDialog<xsl0:apply-templates select="*" mode="callModel"/>)[<xsl0:value-of select="si(@direction='rootToCurrent', 'last()', '1')"/>]), '<xsl0:value-of select="@axis"/>'), '/getContent'))</xsl0:when> 
     238                                                </xsl0:choose> 
     239                                        </xsl0:attribute> 
     240                                </xsl:value-of> 
     241                        </xsl0:for-each> 
     242                </xsl0:template> 
     243                <xsl0:template match="sm:callModel" mode="mContent"><xsl0:call-template name="sm:callModel"/></xsl0:template> 
     244                <xsl0:template match="sm:callableModel" mode="callModel">,'<xsl0:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/codeModel'))"/>'</xsl0:template> 
     245         
    227246                <!-- Divers --> 
    228247                <xsl0:template name="tGetStyle"> 
Note: See TracChangeset for help on using the changeset viewer.