Changeset 9330


Ignore:
Timestamp:
07/10/07 11:38:05 (5 years ago)
Author:
sys
Message:

genericWebSiteTransf : sm:lookForExistingModelPage dans sm:navigation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf/bs.xml.xsl

    r9288 r9330  
    163163                </noeud> 
    164164        </xsl0:template> 
     165        <xsl0:template match="sm:lookForExistingModelPage" mode="listenoeuds"> 
     166                <noeud cle="p_{generate-id()}" type="singleton"><ref type="resultat-dynamique">agent=//lookForPage_<xsl0:value-of select="generate-id()"/></ref></noeud> 
     167        </xsl0:template> 
    165168        <!-- sm:navigation/sm:callModel... --> 
    166169        <xsl0:template match="sm:callModel" mode="listenoeuds"> 
     
    193196                        <xsl0:apply-templates mode="listenoeuds_choose"/> 
    194197                </xsl:choose> 
     198        </xsl0:template> 
     199        <xsl0:template match="sm:lookForExistingModelPage" mode="listenoeuds_choose"> 
     200                <item>[![agent=lookForPage_<xsl0:value-of select="generate-id()"/>]!]</item> 
    195201        </xsl0:template> 
    196202        <xsl0:template match="*" mode="listenoeuds_choose"/> 
     
    369375        <xsl0:template match="sm:lookForExistingModelPage" mode="callModel"> 
    370376                <valeur code="lookForPage_{generate-id()}"> 
    371                         <source type="xpath-dynamique">resultatDialogue(<xsl0:apply-templates mode="callModel" select="sm:navContext/*"/>, concat('lookFor:computeResultWithArguments=act:&amp;codeAgentPrinc=', codeAgent(<xsl0:apply-templates mode="callModel" select="sm:target/*"/>)))</source> 
     377                        <xsl0:choose> 
     378                                <xsl0:when test="ancestor::sm:page or not(ancestor::sm:navigation)"> 
     379                                        <source type="xpath-dynamique">resultatDialogue(<xsl0:apply-templates mode="callModel" select="sm:navContext/*"/>, concat('lookFor:computeResultWithArguments=act:&amp;codeAgentPrinc=', codeAgent(<xsl0:apply-templates mode="callModel" select="sm:target/*"/>)))</source> 
     380                                </xsl0:when> 
     381                                <xsl0:otherwise> 
     382                                        <source type="xpath-dynamique">resultatDialogue(<xsl0:apply-templates mode="callModel" select="sm:navContext/*"/>, concat('lookFor:codeAgentPrinc=', codeAgent(<xsl0:apply-templates mode="callModel" select="sm:target/*"/>)))</source> 
     383                                </xsl0:otherwise> 
     384                        </xsl0:choose> 
    372385                </valeur> 
    373386        </xsl0:template> 
     
    379392        <xsl0:template match="sm:currentNav" mode="callModel">'.'</xsl0:template> 
    380393        <xsl0:template match="sm:fromNewRoot" mode="callModel"><xsl0:apply-templates mode="callModel"/></xsl0:template> 
    381         <xsl0:template match="*" mode="callModel"/> 
    382         <xsl0:template match="text()|@*" mode="callModel"/> 
     394        <xsl0:template match="node()|@*" mode="callModel"/> 
    383395         
    384396        <!-- Mode pathPage : contruction des path des pages --> 
Note: See TracChangeset for help on using the changeset viewer.