Changeset 11145


Ignore:
Timestamp:
06/05/08 12:26:04 (4 years ago)
Author:
anp
Message:

debug deployScorm2004 + passage à Scorm 2004 3rd Edition

Location:
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy
Files:
4 edited

Legend:

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

    r10904 r11145  
    5555        <xsl0:template match="sma:scormGenDeploy"> 
    5656                <xsl0:variable name="vScormVersion" select="resultatAgent('//scorm.version')"/> 
    57                 <xsl0:variable name="vMetaVersion" select="si(resultatAgent('//scorm.version')='scorm2k4', 'CAM 1.3', '1.2')"/> 
    58                  
     57                <xsl0:variable name="vMetaVersion" select="si(resultatAgent('//scorm.version')='scorm2k4', '2004 3rd Edition', '1.2')"/> 
     58                <xsl0:variable name="vAdlcpNs" select="si($vScormVersion='scorm2k4', 'http://www.adlnet.org/xsd/adlcp_v1p3', 'http://www.adlnet.org/xsd/adlcp_rootv1p2')"/> 
    5959                <structure code="_root"> 
    6060                        <!-- 
     
    117117                                                                                <metadata> 
    118118                                                                                        <schema>ADL SCORM</schema> 
    119                                                                                         <schemaversion>CAM 1.3</schemaversion> 
     119                                                                                <schemaversion><xsl0:value-of select="$vMetaVersion"/></schemaversion> 
    120120                                                                                </metadata> 
    121121                                                                                <organizations default="O_{{$vIdOrg}}"> 
     
    194194                                                        <xsl:choose> 
    195195                                                                <xsl:when test="count(*)=0"><!-- un seul SCO --> 
    196                                                                         <resource identifier="R_{{$vIdOrg}}" type="webcontent" adlcp:scormtype="sco" href="{{@mainFile}}"> 
    197                                                                                  <metadata> 
     196                                                                        <resource identifier="R_{{$vIdOrg}}" type="webcontent" href="{{@mainFile}}"> 
     197                                                                                <xsl:attribute name="{si($vScormVersion='scorm2k4', 'adlcp:scormType', 'adlcp:scormtype')}" namespace="{$vAdlcpNs}">sco</xsl:attribute> 
     198                                                                                <metadata> 
    198199                                                                                        <schema>ADL SCORM</schema> 
    199200                                                                                        <schemaversion><xsl0:value-of select="$vMetaVersion"/></schemaversion> 
    200                                                                                  </metadata> 
    201                                                                                  <dependency identifierref="fullResList"/> 
     201                                                                                </metadata> 
     202                                                                                <xsl0:if test="$vScormVersion='scorm2k4'"> 
     203                                                                                        <file href="{{@mainFile}}"/>  
     204                                                                                </xsl0:if> 
     205                                                                                <dependency identifierref="fullResList"/> 
    202206                                                                   </resource> 
    203207                                                                </xsl:when> 
     
    215219                                                                </xsl:choose> 
    216220                                                        </xsl:variable> 
    217                                                         <resource identifier="R_{{@identifier}}" type="webcontent" adlcp:scormtype="{{$vScormType}}"> 
    218                                                         <xsl:if test="string-length(@href)!='0'"> 
    219                                                                 <xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute> 
    220                                                         </xsl:if> 
    221                                                  <metadata> 
    222                                                     <schema>ADL SCORM</schema> 
    223                                                     <schemaversion><xsl0:value-of select="$vMetaVersion"/></schemaversion> 
    224                                                     <!-- <adlcp:location><xsl:value-of select="@href"/></adlcp:location> --> 
    225                                                  </metadata> 
    226                                                   <!-- file ...--> 
    227                                                  <dependency identifierref="fullResList"/> 
     221                                                        <resource identifier="R_{{@identifier}}" type="webcontent"> 
     222                                                                <xsl:attribute name="{si($vScormVersion='scorm2k4', 'adlcp:scormType', 'adlcp:scormtype')}" namespace="{$vAdlcpNs}"><xsl:value-of select="$vScormType"/></xsl:attribute> 
     223                                                                <xsl:if test="string-length(@href)!='0'"> 
     224                                                                        <xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute> 
     225                                                                </xsl:if> 
     226                                                        <metadata> 
     227                                                            <schema>ADL SCORM</schema> 
     228                                                            <schemaversion><xsl0:value-of select="$vMetaVersion"/></schemaversion> 
     229                                                            <!-- <adlcp:location><xsl:value-of select="@href"/></adlcp:location> --> 
     230                                                        </metadata> 
     231                                                         <!-- file ...--> 
     232                                                        <dependency identifierref="fullResList"/> 
    228233                                              </resource> 
    229234                                              <xsl:apply-templates mode="res"/> 
     
    246251                                        <xsl:param name="vDialog"/> 
    247252                                        <xsl:template match="*"> 
    248                                                 <resource identifier="fullResList" type="webcontent" adlcp:scormtype="asset"> 
    249                                                         <xsl:apply-templates select="scanFolder('dest:/tmp/')/*/*" mode="files"> 
     253                                                <resource identifier="fullResList" type="webcontent"> 
     254                                                        <xsl:attribute name="{si($vScormVersion='scorm2k4', 'adlcp:scormType', 'adlcp:scormtype')}" namespace="{$vAdlcpNs}">asset</xsl:attribute> 
     255                                                        <xsl:apply-templates select="scanFolder('dest:/tmp/site/')/*/*" mode="files"> 
    250256                                                                <xsl:with-param name="vPath" select="''"/> 
    251257                                                        </xsl:apply-templates> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/pf/build.xml

    r10041 r11145  
    44        <property name="vDeployDir" value="${vFolderDest}/deploy"/> 
    55        <property name="vTmpDir" value="${vFolderDest}/tmp"/> 
     6        <property name="vTmpDir.site" value="${vFolderDest}/tmp/site"/> 
    67         
    78        <target name="main"> 
     
    1920              casesensitive="true" /> 
    2021               
    21                 <copy todir="${vTmpDir}"> 
     22                <copy todir="${vTmpDir.site}"> 
    2223                        <fileset dir="${folderToCopy}" excludes="meta/**"/> 
    2324                </copy> 
    2425                 
    2526                <!-- Copie des fichiers de surcharge de la génération (Overide) --> 
    26                 <copy todir="${vTmpDir}" failonerror="false" overwrite="true"> 
     27                <copy todir="${vTmpDir.site}" failonerror="false" overwrite="true"> 
    2728                        <fileset dir="${basedir}/_genOveride"/> 
    2829                </copy> 
     
    3233                <!-- Création de imsScormCam.xml si il n'existe pas (<=> si on n'est pas sur un scormUiFrame) --> 
    3334                <if> 
    34                         <not><available file="${vTmpDir}/imsScormCam.xml"/></not> 
     35                        <not><available file="${vTmpDir.site}/imsScormCam.xml"/></not> 
    3536                        <then> 
    3637                                <!-- on cherche le nom du fichier root --> 
    37                                 <if><available file="${vTmpDir}/index.xhtml"/> 
     38                                <if><available file="${vTmpDir.site}/index.xhtml"/> 
    3839                                        <then><property name="vIndexName" value="index.xhtml"/></then> 
    3940                                        <else><property name="vIndexName" value="index.html"/></else> 
    4041                                </if>                            
    41                                 <concat append="no" force="no" destfile="${vTmpDir}/imsScormCam.xml" outputencoding="UTF-8"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]> 
     42                                <concat append="no" force="no" destfile="${vTmpDir.site}/imsScormCam.xml" outputencoding="UTF-8"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]> 
    4243                                        <![CDATA[<organization title="]]>${scorm.moduleTitle}<![CDATA[" mainFile="]]>${vIndexName}<![CDATA["/>]]> 
    4344                                </concat> 
     
    4748                <!-- Création du manifest --> 
    4849                <xslt   style="${vTmpDir}/generateManifest.xsl" 
    49                                 in="${vTmpDir}/imsScormCam.xml" 
    50                                 out="${vTmpDir}/imsmanifest.xml"> 
     50                                in="${vTmpDir.site}/imsScormCam.xml" 
     51                                out="${vTmpDir.site}/imsmanifest.xml"> 
    5152                </xslt> 
    5253                 
     
    5859                <mkdir dir="${vDeployDir}"/> 
    5960                <zip destfile="${vDeployDir}/${scorm.moduleCode}.zip" encoding="UTF-8"> 
    60                         <fileset dir="${vTmpDir}" excludes="imsScormCam.xml,generateManifest.xsl,preview.html"/> 
     61                        <fileset dir="${vTmpDir.site}" excludes="imsScormCam.xml,generateManifest.xsl,preview.html"/> 
    6162                        <fileset dir="${basedir}/${scorm.version}/schemas"/> 
    6263                </zip> 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/pf/scorm2k4/schemas/adlcp_v1p3.xsd

    r8581 r11145  
    2525      2004-01-06  Added completionThreshold to the ADL CP namespace 
    2626      2004-23-01  Final edits in preparation for release 
     27      2006-02-06  Removed persistState, change type of the locationType from  
     28                  xs:string to xs:anyURI 
    2729      ************************************************************************* 
    2830      </xs:documentation> 
     
    4446   </xs:attribute> 
    4547 
    46    <xs:attribute name = "persistState" default = "false" type = "xs:boolean" /> 
    47  
    4848   <xs:simpleType name = "locationType"> 
    49       <xs:restriction base = "xs:string"/> 
     49      <xs:restriction base = "xs:anyURI"/> 
    5050   </xs:simpleType> 
    5151 
  • trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/pf/scorm2k4/schemas/adlnav_v1p3.xsd

    r8581 r11145  
    22<xs:schema targetNamespace = "http://www.adlnet.org/xsd/adlnav_v1p3" 
    33           xmlns:xs = "http://www.w3.org/2001/XMLSchema" 
    4            xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" 
    54           xmlns = "http://www.adlnet.org/xsd/adlnav_v1p3" 
    65           elementFormDefault = "qualified" 
    7            version = "ADL Version 1.3"> 
     6           version = "1.0"> 
    87 
    98   <xs:annotation> 
    109      <xs:documentation> 
    11           This is a draft version of the ADL namespaced elements for presentation of navigation controls. 
    12           Further modifications will be made prior to the SCORM 1.3 final release. 
     10          This file represents the W3C XML Schema Language Binding of the ADL namespaced elements for navigation controls. 
    1311      </xs:documentation> 
    1412   </xs:annotation> 
     
    2018      <xs:documentation> 
    2119      ************************************************************************* 
    22       *                                Change History                                  * 
     20      *                          Change History                               * 
    2321      ************************************************************************* 
    2422      2003-18-09  Initial creation. 
     23      2004-23-01  Final edits in preparation for release 
     24      2005-06-06  Added new hideLMSUI vocabulary token suspendAll, exitAll, 
     25                  and abandonAll 
    2526      ************************************************************************* 
    2627      </xs:documentation> 
     
    5253         <xs:enumeration value = "exit"/> 
    5354         <xs:enumeration value = "previous"/> 
     55         <xs:enumeration value = "suspendAll"/> 
     56         <xs:enumeration value = "exitAll"/> 
     57         <xs:enumeration value = "abandonAll"/> 
    5458      </xs:restriction> 
    5559   </xs:simpleType> 
Note: See TracChangeset for help on using the changeset viewer.