Changeset 8868
- Timestamp:
- 03/05/07 17:27:04 (5 years ago)
- Location:
- trunk/Wsp_ModelingAssmnt
- Files:
-
- 4 edited
-
es/content/scormCamCompoWebSiteTransf/xml.xed.xml (modified) (7 diffs)
-
spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/bs.xml.xsl (modified) (2 diffs)
-
spaces/gen/modelBuilder/bs.doss/sma_scormCamUiFrame/preview/preview.outline.xsl (modified) (2 diffs)
-
spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/bsRoot.xml.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_ModelingAssmnt/es/content/scormCamCompoWebSiteTransf/xml.xed.xml
r8867 r8868 48 48 49 49 <se:lib> 50 <attribute se:id="a xis" se:bind="attribute" se:name="axis">50 <attribute se:id="att_axis" se:bind="attribute" se:name="axis"> 51 51 <wordsInput trim="true" filterRegExp="^[a-zA-Z0-9]+$" autocompleteProviderXPath="id('axis')"/> 52 52 </attribute> … … 68 68 </choiceInput> 69 69 </attribute> 70 <se:ref se:refid="a xis"/>70 <se:ref se:refid="att_axis"/> 71 71 </atts> 72 72 </element> … … 94 94 <childs> 95 95 <alternativeAlone se:bind="choice"> 96 <element se:name="sm:current" se:bind="element" forcefilled="true"> 97 <atts> 98 <se:ref se:refid="att_axis"/> 99 </atts> 100 </element> 96 101 <element se:name="sm:root" se:bind="element" forcefilled="true"> 97 <atts>98 <se:ref se:refid="att_axis"/>99 </atts>100 </element>101 <element se:name="sm:current" se:bind="element" forcefilled="true">102 102 <atts> 103 103 <se:ref se:refid="att_axis"/> … … 160 160 <element se:name="sm:axis" se:bind="element" se:card="?"> 161 161 <atts> 162 <se:ref se:refid="a xis" se:name="code"/>162 <se:ref se:refid="att_axis" se:name="code"/> 163 163 </atts> 164 164 </element> … … 198 198 <element se:name="sm:callSubModel" se:bind="element" forcefilled="true"> 199 199 <atts> 200 <se:ref se:refid="a xis"/>200 <se:ref se:refid="att_axis"/> 201 201 </atts> 202 202 </element> … … 218 218 <element se:name="sm:itemBody" se:bind="element"> 219 219 <childs> 220 <element se:name="sm:callSubModel" se:bind="element"> 221 <atts> 222 <se:ref se:refid="axis"/> 223 </atts> 224 </element> 220 <alternative se:bind="choice"> 221 <element se:name="sm:callSubModel" se:bind="element" insert="collapsed"> 222 <atts> 223 <se:ref se:refid="att_axis"/> 224 </atts> 225 </element> 226 <se:ref se:refid="sm:callModel"/> 227 </alternative> 225 228 </childs> 226 229 </element> … … 261 264 <element se:name="sm:itemBody" se:bind="element"> 262 265 <childs> 263 <element se:name="sm:callModel" se:bind="element"> 264 <atts> 265 <se:ref se:refid="axis"/> 266 </atts> 267 </element> 266 <se:ref se:refid="sm:callModel"/> 268 267 </childs> 269 268 </element> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamCompoWebSiteTransf/bs.xml.xsl
r8535 r8868 178 178 <valeur code="getItemUrl_{generate-id()}" codecomposant="concat('getItemUrl_{generate-id()}_', generate-id())"> 179 179 <xsl0:choose> 180 <xsl0:when test="$vRacineComp"> 181 <xsl0:attribute name="racine"><xsl0:value-of select="$vRacineComp"/></xsl0:attribute> 182 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(resultatAgent('codeAgentSubM'), '<xsl0:value-of select="sm:callSubModel/@axis"/>'))))</source> 183 <valeur code="codeAgentSubM"> 184 <source type="xpath-statique">si(@sc:refUri, getIdFromPath(@sc:refUri), getIdNode(.))</source> 185 </valeur> 186 </xsl0:when> 187 <xsl0:otherwise> 188 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(codeAgent('//'), '<xsl0:value-of select="sm:callModel/@axis"/>')))</source> 189 </xsl0:otherwise> 180 <xsl0:when test="$vRacineComp"> 181 <xsl0:attribute name="racine"><xsl0:value-of select="$vRacineComp"/></xsl0:attribute> 182 <xsl0:apply-templates mode="comps"/> 183 </xsl0:when> 184 <xsl0:otherwise> 185 <xsl0:apply-templates mode="comps"/> 186 </xsl0:otherwise> 190 187 </xsl0:choose> 191 188 </valeur> 189 </xsl0:template> 190 <xsl0:template match="sm:callSubModel" mode="comps"> 191 <source type="xpath-dynamique">resultat(agent('@@/getItemUrl'), dialog(concat('/@', switchAxis(resultatAgent('codeAgentSubM'), '<xsl0:value-of select="@axis"/>'))))</source> 192 <valeur code="codeAgentSubM"> 193 <source type="xpath-statique">si(@sc:refUri, getIdFromPath(@sc:refUri), getIdNode(.))</source> 194 </valeur> 195 </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> 192 198 </xsl0:template> 193 199 <xsl0:template match="*" mode="comps"/> … … 256 262 <xsl0:template match="sm:callModel" mode="callModel"> 257 263 <valeur code="callModel_{generate-id()}"> 258 <xsl0:apply-templates mode="callModel"/> 259 </valeur> 260 </xsl0:template> 261 <xsl0:template match="sm:root" mode="callModel"> 262 <source type="xpath-dynamique">resultatAgent(concat('@', getIdFromPath(concat('src:', java:hGetUri(srcFileAgent('@@')))), '<xsl0:value-of select="getAxisSuffix(@axis)"/>/scormCam'))</source> 263 </xsl0:template> 264 <xsl0:template match="sm:current" mode="callModel"> 265 <source type="xpath-dynamique">resultatAgent(concat('@', switchAxis(codeAgent('//'), '<xsl0:value-of select="@axis"/>'), '/scormCam'))</source> 266 </xsl0:template> 267 <xsl0:template match="sm:lookForAscendants" mode="callModel"> 268 <source type="xpath-dynamique">resultatAgent(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'))</source> 269 </xsl0:template> 264 <source type="xpath-dynamique">resultatAgent(<xsl0:apply-templates mode="callModel"/>)</source> 265 </valeur> 266 </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 270 <xsl0:template match="sm:callableModel" mode="callModel">,'<xsl0:value-of select="resultatAgent(concat('@', getIdFromPath(@sc:refUri), '/codeModel'))"/>'</xsl0:template> 271 <xsl0:template match="sm:agentPath" mode="callModel"> 272 <source type="xpath-dynamique">resultatAgent(agent('<xsl0:value-of select="@path"/>', $vDialog))</source> 273 </xsl0:template> 271 <xsl0:template match="sm:agentPath" mode="callModel">agent('<xsl0:value-of select="@path"/>', $vDialog)</xsl0:template> 274 272 <xsl0:template match="*" mode="callModel"/> 275 273 <xsl0:template match="text()|@*" mode="callModel"/> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormCamUiFrame/preview/preview.outline.xsl
r8663 r8868 58 58 </xsl:template> 59 59 60 <xsl:template match="item[ item]">60 <xsl:template match="item[descendant::item[string-length(@href)>0]]"> 61 61 <li class="prv_li prv_folder"> 62 62 <xsl:choose> 63 <xsl:when test="string-length(@href) > 0">63 <xsl:when test="string-length(@href)"> 64 64 <a onclick="showPage('{@href}', this)"><span><xsl:value-of select="@title"/></span></a> 65 65 </xsl:when> … … 75 75 76 76 <xsl:template match="item"> 77 <li class="prv_li"> 78 <xsl:choose> 79 <xsl:when test="string-length(@href) > 0"> 80 <a onclick="showPage('{@href}', this)"><span><xsl:value-of select="@title"/></span></a> 81 </xsl:when> 82 <xsl:otherwise> 83 <span><xsl:value-of select="@title"/></span> 84 </xsl:otherwise> 85 </xsl:choose> 86 </li> 77 <!-- un item sans fils et sans url est éliminé. --> 78 <xsl:if test="string-length(@href)"> 79 <li class="prv_li"> 80 <a onclick="showPage('{@href}', this)"><span><xsl:value-of select="@title"/></span></a> 81 </li> 82 </xsl:if> 87 83 </xsl:template> 88 84 89 <xsl:template match="text()|@*" mode="in"/>85 <xsl:template match="text()|@*"/> 90 86 91 87 </xsl:stylesheet> -
trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/bsRoot.xml.xsl
r8583 r8868 169 169 </xsl:template> 170 170 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)>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> 173 174 <title><xsl:value-of select="@title"/></title> 174 175 <xsl:apply-templates mode="org"/> 175 176 </item> 176 177 </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> 182 184 </xsl:template> 183 185 … … 200 202 </xsl:template> 201 203 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}}"> 208 206 <metadata> 209 207 <schema>ADL SCORM</schema> … … 214 212 <dependency identifierref="fullResList"/> 215 213 </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"/> 227 219 </xsl:template> 228 220
Note: See TracChangeset
for help on using the changeset viewer.