Changeset 11145
- Timestamp:
- 06/05/08 12:26:04 (4 years ago)
- Location:
- trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy
- Files:
-
- 4 edited
-
bsRoot.xml.xsl (modified) (5 diffs)
-
pf/build.xml (modified) (5 diffs)
-
pf/scorm2k4/schemas/adlcp_v1p3.xsd (modified) (2 diffs)
-
pf/scorm2k4/schemas/adlnav_v1p3.xsd (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/bsRoot.xml.xsl
r10904 r11145 55 55 <xsl0:template match="sma:scormGenDeploy"> 56 56 <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')"/> 59 59 <structure code="_root"> 60 60 <!-- … … 117 117 <metadata> 118 118 <schema>ADL SCORM</schema> 119 <schemaversion>CAM 1.3</schemaversion>119 <schemaversion><xsl0:value-of select="$vMetaVersion"/></schemaversion> 120 120 </metadata> 121 121 <organizations default="O_{{$vIdOrg}}"> … … 194 194 <xsl:choose> 195 195 <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> 198 199 <schema>ADL SCORM</schema> 199 200 <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"/> 202 206 </resource> 203 207 </xsl:when> … … 215 219 </xsl:choose> 216 220 </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"/> 228 233 </resource> 229 234 <xsl:apply-templates mode="res"/> … … 246 251 <xsl:param name="vDialog"/> 247 252 <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"> 250 256 <xsl:with-param name="vPath" select="''"/> 251 257 </xsl:apply-templates> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/pf/build.xml
r10041 r11145 4 4 <property name="vDeployDir" value="${vFolderDest}/deploy"/> 5 5 <property name="vTmpDir" value="${vFolderDest}/tmp"/> 6 <property name="vTmpDir.site" value="${vFolderDest}/tmp/site"/> 6 7 7 8 <target name="main"> … … 19 20 casesensitive="true" /> 20 21 21 <copy todir="${vTmpDir }">22 <copy todir="${vTmpDir.site}"> 22 23 <fileset dir="${folderToCopy}" excludes="meta/**"/> 23 24 </copy> 24 25 25 26 <!-- 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"> 27 28 <fileset dir="${basedir}/_genOveride"/> 28 29 </copy> … … 32 33 <!-- Création de imsScormCam.xml si il n'existe pas (<=> si on n'est pas sur un scormUiFrame) --> 33 34 <if> 34 <not><available file="${vTmpDir }/imsScormCam.xml"/></not>35 <not><available file="${vTmpDir.site}/imsScormCam.xml"/></not> 35 36 <then> 36 37 <!-- on cherche le nom du fichier root --> 37 <if><available file="${vTmpDir }/index.xhtml"/>38 <if><available file="${vTmpDir.site}/index.xhtml"/> 38 39 <then><property name="vIndexName" value="index.xhtml"/></then> 39 40 <else><property name="vIndexName" value="index.html"/></else> 40 41 </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"?>]]> 42 43 <![CDATA[<organization title="]]>${scorm.moduleTitle}<![CDATA[" mainFile="]]>${vIndexName}<![CDATA["/>]]> 43 44 </concat> … … 47 48 <!-- Création du manifest --> 48 49 <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"> 51 52 </xslt> 52 53 … … 58 59 <mkdir dir="${vDeployDir}"/> 59 60 <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"/> 61 62 <fileset dir="${basedir}/${scorm.version}/schemas"/> 62 63 </zip> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/pf/scorm2k4/schemas/adlcp_v1p3.xsd
r8581 r11145 25 25 2004-01-06 Added completionThreshold to the ADL CP namespace 26 26 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 27 29 ************************************************************************* 28 30 </xs:documentation> … … 44 46 </xs:attribute> 45 47 46 <xs:attribute name = "persistState" default = "false" type = "xs:boolean" />47 48 48 <xs:simpleType name = "locationType"> 49 <xs:restriction base = "xs: string"/>49 <xs:restriction base = "xs:anyURI"/> 50 50 </xs:simpleType> 51 51 -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/pf/scorm2k4/schemas/adlnav_v1p3.xsd
r8581 r11145 2 2 <xs:schema targetNamespace = "http://www.adlnet.org/xsd/adlnav_v1p3" 3 3 xmlns:xs = "http://www.w3.org/2001/XMLSchema" 4 xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"5 4 xmlns = "http://www.adlnet.org/xsd/adlnav_v1p3" 6 5 elementFormDefault = "qualified" 7 version = " ADL Version 1.3">6 version = "1.0"> 8 7 9 8 <xs:annotation> 10 9 <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. 13 11 </xs:documentation> 14 12 </xs:annotation> … … 20 18 <xs:documentation> 21 19 ************************************************************************* 22 * Change History*20 * Change History * 23 21 ************************************************************************* 24 22 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 25 26 ************************************************************************* 26 27 </xs:documentation> … … 52 53 <xs:enumeration value = "exit"/> 53 54 <xs:enumeration value = "previous"/> 55 <xs:enumeration value = "suspendAll"/> 56 <xs:enumeration value = "exitAll"/> 57 <xs:enumeration value = "abandonAll"/> 54 58 </xs:restriction> 55 59 </xs:simpleType>
Note: See TracChangeset
for help on using the changeset viewer.