Project

General

Profile

root / branches / 4.4-sc42 / model / sources / dkTraining / genScorm / genDeploy / scorm2k4transMnf.doss / main.xsl @ 3016

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet 
3
       xmlns="http://www.imsglobal.org/xsd/imscp_v1p1"
4
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
       xmlns:adlseq="http://www.adlnet.org/xsd/adlseq_v1p3"
6
       xmlns:imsss="http://www.imsglobal.org/xsd/imsss"
7
       xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_v1p3"
8
       xmlns:adlnav="http://www.adlnet.org/xsd/adlnav_v1p3"
9
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10
       exclude-result-prefixes="xsi adlseq imsss adlcp adlnav"
11
       version="1.0">
12
    <xsl:output encoding="UTF-8" method="xml"/>
13
    <xsl:param name="vAgent" />
14
    <xsl:param name="vDialog" />
15
    
16
    <xsl:template match="/*">
17
        <xsl:copy>
18
            <xsl:apply-templates select="@*"/>
19
            <xsl:attribute name="xmlns:xsi">http://www.w3.org/2001/XMLSchema-instance</xsl:attribute>
20
            <xsl:attribute name="xmlns:adlseq">http://www.adlnet.org/xsd/adlseq_v1p3</xsl:attribute>
21
            <xsl:attribute name="xmlns:imsss">http://www.imsglobal.org/xsd/imsss</xsl:attribute>
22
            <xsl:attribute name="xmlns:adlcp">http://www.adlnet.org/xsd/adlcp_v1p3</xsl:attribute>
23
            <xsl:attribute name="xmlns:adlnav">http://www.adlnet.org/xsd/adlnav_v1p3</xsl:attribute>
24
            <xsl:apply-templates select="node()"/>
25
        </xsl:copy>
26
    </xsl:template>
27
    
28
    <xsl:template match="*[name()='item']" priority="100">
29
        <xsl:copy>
30
            <xsl:apply-templates select="@*|node()"/>
31
             <imsss:sequencing>
32
                <imsss:objectives>
33
                    <imsss:primaryObjective satisfiedByMeasure="true">
34
                        <imsss:minNormalizedMeasure><xsl:value-of select="genProp('passingScore@stored') div 100"/></imsss:minNormalizedMeasure>
35
                    </imsss:primaryObjective>
36
                </imsss:objectives>
37
            </imsss:sequencing>
38
        </xsl:copy>
39
    </xsl:template>
40
    
41
    <xsl:template match="@*|node()">
42
        <xsl:copy>
43
            <xsl:apply-templates select="@*|node()"/>
44
        </xsl:copy>
45
    </xsl:template>
46
    
47
</xsl:stylesheet>
    (1-1/1)