Changeset 8869


Ignore:
Timestamp:
03/05/07 18:17:03 (5 years ago)
Author:
sys
Message:

scormCam : bugs sm:itemBody/sm:callModel

Location:
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/bs.xml.xsl

    r8868 r8869  
    154154         
    155155        <!-- ######### 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"> 
    157157                <xsl0:param name="vRacineComp"/> 
    158158                <xsl0:apply-templates mode="comps"> 
     
    180180                                <xsl0:when test="$vRacineComp"> 
    181181                                        <xsl0:attribute name="racine"><xsl0:value-of select="$vRacineComp"/></xsl0:attribute> 
    182                                         <xsl0:apply-templates mode="comps"/> 
     182                                        <xsl0:apply-templates mode="itemBody"/> 
    183183                                </xsl0:when> 
    184184                                <xsl0:otherwise> 
    185                                         <xsl0:apply-templates mode="comps"/> 
     185                                        <xsl0:apply-templates mode="itemBody"/> 
    186186                                </xsl0:otherwise> 
    187187                        </xsl0:choose> 
    188188                </valeur> 
    189189        </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"> 
    191194                <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(resultatAgent('codeAgentSubM'), '<xsl0:value-of select="@axis"/>'))))</source> 
    192195                <valeur code="codeAgentSubM"> 
     
    194197                </valeur> 
    195198        </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"/> 
    200203 
    201204        <!-- ######### content : construction du contenu de la page (dans la xsl-statique + inclusion-dynamique en mode "in" ). ########--> 
     
    265268                </valeur> 
    266269        </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> 
    270273        <xsl0:template match="sm:callableModel" mode="callModel">,'<xsl0:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/codeModel'))"/>'</xsl0:template> 
    271274        <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"/> 
    274276                 
    275277        <!-- ######### contentTitleIn : gestion des titres inline. ########-->   
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/calledTransformersInc.xsl

    r8446 r8869  
    9494        <xsl:template match="sm:callModel" mode="in"> 
    9595                <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')"/> 
    9797                </xsl:apply-templates> 
    9898        </xsl:template> 
Note: See TracChangeset for help on using the changeset viewer.