Changeset 8869
- Timestamp:
- 03/05/07 18:17:03 (5 years ago)
- Location:
- trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf
- Files:
-
- 2 edited
-
bs.xml.xsl (modified) (4 diffs)
-
calledTransformersInc.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/bs.xml.xsl
r8868 r8869 154 154 155 155 <!-- ######### comps : création des composants fils de la structure racine. ########--> 156 <xsl0:template match="sm:itemFolder|sm:itemAsset|sm:itemSco " mode="comps">156 <xsl0:template match="sm:itemFolder|sm:itemAsset|sm:itemSco|sm:children" mode="comps"> 157 157 <xsl0:param name="vRacineComp"/> 158 158 <xsl0:apply-templates mode="comps"> … … 180 180 <xsl0:when test="$vRacineComp"> 181 181 <xsl0:attribute name="racine"><xsl0:value-of select="$vRacineComp"/></xsl0:attribute> 182 <xsl0:apply-templates mode=" comps"/>182 <xsl0:apply-templates mode="itemBody"/> 183 183 </xsl0:when> 184 184 <xsl0:otherwise> 185 <xsl0:apply-templates mode=" comps"/>185 <xsl0:apply-templates mode="itemBody"/> 186 186 </xsl0:otherwise> 187 187 </xsl0:choose> 188 188 </valeur> 189 189 </xsl0:template> 190 <xsl0:template match="sm:callSubModel" mode="comps"> 190 <xsl0:template match="node()" mode="comps"/> 191 192 <!-- ######### itemBody : bascule vers la navigation. ########--> 193 <xsl0:template match="sm:callSubModel" mode="itemBody"> 191 194 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(resultatAgent('codeAgentSubM'), '<xsl0:value-of select="@axis"/>'))))</source> 192 195 <valeur code="codeAgentSubM"> … … 194 197 </valeur> 195 198 </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>198 </xsl0:template> 199 <xsl0:template match=" *" mode="comps"/>199 <xsl0:template match="sm:callModel" mode="itemBody"> 200 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(<xsl0:apply-templates mode="callModel"/>))</source> 201 </xsl0:template> 202 <xsl0:template match="node()" mode="itemBody"/> 200 203 201 204 <!-- ######### content : construction du contenu de la page (dans la xsl-statique + inclusion-dynamique en mode "in" ). ########--> … … 265 268 </valeur> 266 269 </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 <xsl0:template match="sm:root" mode="callModel">concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '<xsl0:value-of select="getAxisSuffix(@axis)"/><xsl0:if test="not(parent::*/parent::sm:itemBody)">/scormCam</xsl0:if>')</xsl0:template> 271 <xsl0:template match="sm:current" mode="callModel">concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="@axis"/>')<xsl0:if test="not(parent::*/parent::sm:itemBody)">, '/scormCam'</xsl0:if>)</xsl0:template> 272 <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:if test="not(parent::*/parent::sm:itemBody)">, '/scormCam'</xsl0:if>)</xsl0:template> 270 273 <xsl0:template match="sm:callableModel" mode="callModel">,'<xsl0:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/codeModel'))"/>'</xsl0:template> 271 274 <xsl0:template match="sm:agentPath" mode="callModel">agent('<xsl0:value-of select="@path"/>', $vDialog)</xsl0:template> 272 <xsl0:template match="*" mode="callModel"/> 273 <xsl0:template match="text()|@*" mode="callModel"/> 275 <xsl0:template match="node()" mode="callModel"/> 274 276 275 277 <!-- ######### contentTitleIn : gestion des titres inline. ########--> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/calledTransformersInc.xsl
r8446 r8869 94 94 <xsl:template match="sm:callModel" mode="in"> 95 95 <xsl:apply-templates mode="in"> 96 <xsl:with-param name="vView" select="si( ancestor::sm:itemBody, 'navigation', 'scormCam')"/>96 <xsl:with-param name="vView" select="si(parent::sm:itemBody, 'navigation', 'scormCam')"/> 97 97 </xsl:apply-templates> 98 98 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.