Changeset 8868 for trunk/Wsp_ModelingAssmnt/spaces/gen/modelBuilder/bs.doss/sma_scormGenDeploy/bsRoot.xml.xsl
- Timestamp:
- 03/05/07 17:27:04 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.