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

scormCam :

  • bug sm:itemBody en ctx fix
  • extension sm:callModel
  • test et genDeploy : items sans url ni fils sont éliminés.
File:
1 edited

Legend:

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

    r8583 r8868  
    169169                                                </xsl:template> 
    170170                                                 
    171                                                 <xsl:template match="item[starts-with(@identifier, 'asset_') or starts-with(@identifier, 'sco_')]" mode="org"> 
    172                                                         <item identifier="I_{{@identifier}}" identifierref="R_{{@identifier}}" isvisible="true"> 
     171                                                <xsl:template match="item[descendant::item[string-length(@href)&gt;0]]" mode="org"> 
     172                                                        <item identifier="I_{{@identifier}}" isvisible="true"> 
     173                                                                <xsl:if test="string-length(@href)"><xsl0:attribute name="identifierref">R_{@identifier}</xsl0:attribute></xsl:if> 
    173174                                                        <title><xsl:value-of select="@title"/></title> 
    174175                                                        <xsl:apply-templates mode="org"/> 
    175176                                                </item> 
    176177                                                </xsl:template> 
    177                                                 <xsl:template match="item[starts-with(@identifier, 'fold_')]" mode="org"> 
    178                                                         <item identifier="I_{{@identifier}}"> 
    179                                                         <title><xsl:value-of select="@title"/></title> 
    180                                                         <xsl:apply-templates mode="org"/> 
    181                                                 </item> 
     178                                                <xsl:template match="item" mode="org"> 
     179                                                        <xsl:if test="string-length(@href)"> 
     180                                                                <item identifier="I_{{@identifier}}" identifierref="R_{{@identifier}}" isvisible="true"> 
     181                                                                <title><xsl:value-of select="@title"/></title> 
     182                                                        </item> 
     183                                                </xsl:if> 
    182184                                                </xsl:template> 
    183185                                                 
     
    200202                                                </xsl:template> 
    201203                                                 
    202                                                 <xsl:template match="item[starts-with(@identifier, 'fold_')]" mode="res"> 
    203                                                         <!-- rien à déclarer --> 
    204                                                         <xsl:apply-templates mode="res"/> 
    205                                                 </xsl:template> 
    206                                                 <xsl:template match="item[starts-with(@identifier, 'asset_')]" mode="res"> 
    207                                                         <resource identifier="R_{{@identifier}}" type="webcontent" adlcp:scormtype="asset" href="{{@href}}"> 
     204                                                <xsl:template match="item[string-length(@href)]" mode="res"> 
     205                                                        <resource identifier="R_{{@identifier}}" type="webcontent" adlcp:scormtype="{{si(starts-with(@identifier, 'asset_'), 'asset', 'sco')}}" href="{{@href}}"> 
    208206                                                 <metadata> 
    209207                                                    <schema>ADL SCORM</schema> 
     
    214212                                                 <dependency identifierref="fullResList"/> 
    215213                                              </resource> 
    216                                                 </xsl:template> 
    217                                                 <xsl:template match="item[starts-with(@identifier, 'sco_')]" mode="res"> 
    218                                                         <resource identifier="R_{{@identifier}}" type="webcontent" adlcp:scormtype="sco" href="{{@href}}"> 
    219                                                  <metadata> 
    220                                                     <schema>ADL SCORM</schema> 
    221                                                     <schemaversion><xsl0:value-of select="$vMetaVersion"/></schemaversion> 
    222                                                     <adlcp:location><xsl:value-of select="@href"/></adlcp:location> 
    223                                                  </metadata> 
    224                                                  <!-- file ...--> 
    225                                                  <dependency identifierref="fullResList"/> 
    226                                               </resource> 
     214                                              <xsl:apply-templates mode="res"/> 
     215                                                </xsl:template> 
     216                                                 
     217                                                <xsl:template match="item" mode="res"> 
     218                                                        <xsl:apply-templates mode="res"/> 
    227219                                                </xsl:template> 
    228220                                                 
Note: See TracChangeset for help on using the changeset viewer.