Changeset 9846 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/common.xsl.xsl
- Timestamp:
- 10/19/07 10:14:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_dataFormXhtmlTransf/common.xsl.xsl
r9302 r9846 87 87 </xsl0:template> 88 88 <xsl0:template match="sm:callSubModel" mode="nav"><xsl0:param name="vField"/>[![agent=<xsl0:call-template name="callSubModelPathAgent"><xsl0:with-param name="vField" select="$vField"/></xsl0:call-template>;arguments=act:]!]</xsl0:template> 89 <xsl0:template match="sm:callModel" mode="nav">[![agent=//callModel_<xsl0:value-of select="generate-id()"/>]!]</xsl0:template> 89 90 <xsl0:template match="text()|@*" mode="nav"/> 90 91 <xsl0:template match="*" mode="nav"/> … … 106 107 <xsl0:template match="*" mode="string"/> 107 108 109 110 <!-- ######### callModel. ########--> 111 <xsl0:template match="sm:callModel" mode="callModel"> 112 <valeur code="callModel_{generate-id()}"> 113 <xsl0:choose> 114 <xsl0:when test="parent::sm:link"> 115 <!-- On demande la page liée et on retourne l'url de cette page. --> 116 <source type="xpath-dynamique">resultatDialogue(<xsl0:if test="not(*/@navCtx='preserveCurrent')">concat('/', </xsl0:if><xsl0:apply-templates mode="callModel"/><xsl0:if test="not(*/@navCtx='preserveCurrent')">)</xsl0:if>, 'act:')</source> 117 </xsl0:when> 118 <xsl0:otherwise> 119 <!-- On demande le contenu de cet agent. --> 120 <source type="xpath-dynamique">resultatAgent(concat(<xsl0:apply-templates mode="callModel"/>, '/xhtmlContent'))</source> 121 </xsl0:otherwise> 122 </xsl0:choose> 123 </valeur> 124 </xsl0:template> 125 <!-- 126 <xsl0:template match="sm:lookForExistingModelPage" mode="callModel"> 127 <valeur code="lookForPage_{generate-id()}"> 128 <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> 129 </valeur> 130 </xsl0:template> 131 --> 132 <xsl0:template match="sm:root" mode="callModel">concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '<xsl0:value-of select="getAxisSuffix(@axis)"/>')</xsl0:template> 133 <xsl0:template match="sm:current" mode="callModel">concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="@axis"/>'))</xsl0:template> 134 <xsl0:template match="sm:lookForAscendants" mode="callModel">concat('@', switchAxis(codeAgent(lookForAncestorAgentByTypes($vDialog<xsl0:apply-templates mode="callModel"/>)[<xsl0:value-of select="si(@direction='rootToCurrent', 'last()', '1')"/>]), '<xsl0:value-of select="@axis"/>'))</xsl0:template> 135 <xsl0:template match="sm:callableModel" mode="callModel">,'<xsl0:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/codeModel'))"/>'</xsl0:template> 136 <xsl0:template match="sm:agentPath" mode="callModel">pathAgent(agent('<xsl0:value-of select="@path"/>', $vDialog))</xsl0:template> 137 <xsl0:template match="sm:currentNav" mode="callModel">'.'</xsl0:template> 138 <xsl0:template match="sm:fromNewRoot" mode="callModel"><xsl0:apply-templates mode="callModel"/></xsl0:template> 139 <xsl0:template match="*" mode="callModel"/> 140 <xsl0:template match="text()|@*" mode="callModel"/> 108 141 </xsl0:stylesheet>
Note: See TracChangeset
for help on using the changeset viewer.