Changeset 9330
- Timestamp:
- 07/10/07 11:38:05 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_genericWebSiteTransf/bs.xml.xsl
r9288 r9330 163 163 </noeud> 164 164 </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> 165 168 <!-- sm:navigation/sm:callModel... --> 166 169 <xsl0:template match="sm:callModel" mode="listenoeuds"> … … 193 196 <xsl0:apply-templates mode="listenoeuds_choose"/> 194 197 </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> 195 201 </xsl0:template> 196 202 <xsl0:template match="*" mode="listenoeuds_choose"/> … … 369 375 <xsl0:template match="sm:lookForExistingModelPage" mode="callModel"> 370 376 <valeur code="lookForPage_{generate-id()}"> 371 <source type="xpath-dynamique">resultatDialogue(<xsl0:apply-templates mode="callModel" select="sm:navContext/*"/>, concat('lookFor:computeResultWithArguments=act:&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:&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> 372 385 </valeur> 373 386 </xsl0:template> … … 379 392 <xsl0:template match="sm:currentNav" mode="callModel">'.'</xsl0:template> 380 393 <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"/> 383 395 384 396 <!-- Mode pathPage : contruction des path des pages -->
Note: See TracChangeset
for help on using the changeset viewer.