Project

General

Profile

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

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns="http://www.imsproject.org/xsd/imscp_rootv1p1p2"
3
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
         xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_rootv1p2"
5
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
       exclude-result-prefixes="xsi adlcp"
7
       version="1.0">
8
    <xsl:output encoding="UTF-8" method="xml"/>
9
    <xsl:param name="vAgent" />
10
    <xsl:param name="vDialog" />
11
    
12
    <xsl:template match="/*">
13
        <xsl:copy>
14
            <xsl:apply-templates select="@*"/>
15
            <xsl:attribute name="xmlns:xsi">http://www.w3.org/2001/XMLSchema-instance</xsl:attribute>
16
            <xsl:attribute name="xmlns:adlcp">http://www.adlnet.org/xsd/adlcp_rootv1p2</xsl:attribute>
17
            <xsl:apply-templates select="node()"/>
18
        </xsl:copy>
19
    </xsl:template>
20
    
21
    <xsl:template match="*[name()='item']" priority="100">
22
        <xsl:copy>
23
            <xsl:apply-templates select="@*|node()"/>
24
            <adlcp:dataFromLMS>'passingScore':<xsl:value-of select="genProp('passingScore@stored') div 100"/></adlcp:dataFromLMS>
25
        </xsl:copy>
26
    </xsl:template>
27
    
28
    <xsl:template match="@*|node()">
29
        <xsl:copy>
30
            <xsl:apply-templates select="@*|node()"/>
31
        </xsl:copy>
32
    </xsl:template>
33
    
34
</xsl:stylesheet>
    (1-1/1)