Changeset 8868 for trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/bs.xml.xsl
- Timestamp:
- 03/05/07 17:27:04 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/bs.xml.xsl
r8535 r8868 178 178 <valeur code="getItemUrl_{generate-id()}" codecomposant="concat('getItemUrl_{generate-id()}_', generate-id())"> 179 179 <xsl0:choose> 180 <xsl0:when test="$vRacineComp"> 181 <xsl0:attribute name="racine"><xsl0:value-of select="$vRacineComp"/></xsl0:attribute> 182 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(resultatAgent('codeAgentSubM'), '<xsl0:value-of select="sm:callSubModel/@axis"/>'))))</source> 183 <valeur code="codeAgentSubM"> 184 <source type="xpath-statique">si(@sc:refUri, getIdFromPath(@sc:refUri), getIdNode(.))</source> 185 </valeur> 186 </xsl0:when> 187 <xsl0:otherwise> 188 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(codeAgent('//'), '<xsl0:value-of select="sm:callModel/@axis"/>')))</source> 189 </xsl0:otherwise> 180 <xsl0:when test="$vRacineComp"> 181 <xsl0:attribute name="racine"><xsl0:value-of select="$vRacineComp"/></xsl0:attribute> 182 <xsl0:apply-templates mode="comps"/> 183 </xsl0:when> 184 <xsl0:otherwise> 185 <xsl0:apply-templates mode="comps"/> 186 </xsl0:otherwise> 190 187 </xsl0:choose> 191 188 </valeur> 189 </xsl0:template> 190 <xsl0:template match="sm:callSubModel" mode="comps"> 191 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(resultatAgent('codeAgentSubM'), '<xsl0:value-of select="@axis"/>'))))</source> 192 <valeur code="codeAgentSubM"> 193 <source type="xpath-statique">si(@sc:refUri, getIdFromPath(@sc:refUri), getIdNode(.))</source> 194 </valeur> 195 </xsl0:template> 196 <xsl0:template match="sm:callModel" mode="comps"> 197 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(<xsl0:apply-templates select="sm:callModel/*" mode="callModel"/>))</source> 192 198 </xsl0:template> 193 199 <xsl0:template match="*" mode="comps"/> … … 256 262 <xsl0:template match="sm:callModel" mode="callModel"> 257 263 <valeur code="callModel_{generate-id()}"> 258 <xsl0:apply-templates mode="callModel"/> 259 </valeur> 260 </xsl0:template> 261 <xsl0:template match="sm:root" mode="callModel"> 262 <source type="xpath-dynamique">resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '<xsl0:value-of select="getAxisSuffix(@axis)"/>/scormCam'))</source> 263 </xsl0:template> 264 <xsl0:template match="sm:current" mode="callModel"> 265 <source type="xpath-dynamique">resultatAgent(concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="@axis"/>'), '/scormCam'))</source> 266 </xsl0:template> 267 <xsl0:template match="sm:lookForAscendants" mode="callModel"> 268 <source type="xpath-dynamique">resultatAgent(concat('@', switchAxis(codeAgent(lookForAncestorAgentByTypes($vDialog<xsl0:apply-templates mode="callModel"/>)[<xsl0:value-of select="si(@direction='rootToCurrent', 'last()', '1')"/>]), '<xsl0:value-of select="@axis"/>'), '/scormCam'))</source> 269 </xsl0:template> 264 <source type="xpath-dynamique">resultatAgent(<xsl0:apply-templates mode="callModel"/>)</source> 265 </valeur> 266 </xsl0:template> 267 <xsl0:template match="sm:root" mode="callModel">concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '<xsl0:value-of select="getAxisSuffix(@axis)"/>/scormCam')</xsl0:template> 268 <xsl0:template match="sm:current" mode="callModel">concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="@axis"/>'), '/scormCam')</xsl0:template> 269 <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"/>'), '/scormCam')</xsl0:template> 270 270 <xsl0:template match="sm:callableModel" mode="callModel">,'<xsl0:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/codeModel'))"/>'</xsl0:template> 271 <xsl0:template match="sm:agentPath" mode="callModel"> 272 <source type="xpath-dynamique">resultatAgent(agent('<xsl0:value-of select="@path"/>', $vDialog))</source> 273 </xsl0:template> 271 <xsl0:template match="sm:agentPath" mode="callModel">agent('<xsl0:value-of select="@path"/>', $vDialog)</xsl0:template> 274 272 <xsl0:template match="*" mode="callModel"/> 275 273 <xsl0:template match="text()|@*" mode="callModel"/>
Note: See TracChangeset
for help on using the changeset viewer.