我的SCORM 1.2先决条件的有效文本节点值是多少?

时间:2012-06-20 02:31:15

标签: xml manifest scorm scorm1.2

我正在尝试创建一个包含多个模块的有序SCORM 1.2软件包。指定多个项目标识符会创建无效的XML。

从ADL的“The SCORM Content Aggregation Model”(转到第2-139节),使用的文本节点值是:

<adlcp:prerequisites type="aicc_script">R1&R2</adlcp:prerequisites>

所以XML在R1 / R2之间的&符号上扼流圈。我用什么而不是&符号?我尝试了一个在Moodle中工作的逗号而不是Saba。

我的明确内容:

<?xml version="1.0" encoding="UTF-8"?>
<manifest identifier="captivate_test_multires_seq_4" version="1" xmlns="http://www.imsproject.org/xsd/imscp_rootv1p1p2" xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_rootv1p2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsproject.org/xsd/imscp_rootv1p1p2 imscp_rootv1p1p2.xsd http://www.imsglobal.org/xsd/imsmd_rootv1p2p1 imsmd_rootv1p2p1.xsd http://www.adlnet.org/xsd/adlcp_rootv1p2 adlcp_rootv1p2.xsd">
    <metadata>
        <schema>ADL SCORM</schema>
        <schemaversion>1.2</schemaversion>
        <lom xmlns="http://www.imsglobal.org/xsd/imsmd_rootv1p2p1" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsmd_rootv1p2p1 imsmd_rootv1p2p1.xsd">
            <general>
                <title>
                <langstring xml:lang="x-none">Captivate Multi-Res Sequenced Test 4</langstring>
                </title>
                <description>
                    <langstring xml:lang="x-none">Captivate Multi-Res Sequenced Test 4</langstring>
                </description>
            </general>
        </lom>
    </metadata>
    <organizations default="kineo_scorm">
        <organization identifier="kineo_scorm">
            <title>Captivate Multi-Res Sequenced Test 4</title>
            <item identifier="item_1" isvisible="true" identifierref="res1">
                <title>Mod 1</title>
                <adlcp:masteryscore>50</adlcp:masteryscore>
            </item>
            <item identifier="item_2" isvisible="true" identifierref="res2">
                <title>Mod 2</title>
                <adlcp:prerequisites type="aicc_script">item_1</adlcp:prerequisites>
                <adlcp:masteryscore>50</adlcp:masteryscore>
            </item>
            <item identifier="item_3" isvisible="true" identifierref="res3">
                <title>Mod 3</title>
                <adlcp:prerequisites type="aicc_script">item1&item_2</adlcp:prerequisites>
                <adlcp:masteryscore>50</adlcp:masteryscore>
            </item>
        </organization>
    </organizations>
    <resources>
        <resource identifier="res1" type="webcontent" href="mod_1/mod_1.htm" adlcp:scormtype="sco">
            <file href="mod_1/mod_1.htm"/>
            <file href="mod_1/mod_1.swf"/>
        </resource>
        <resource identifier="res2" type="webcontent" href="mod_2/mod_2.htm" adlcp:scormtype="sco">
            <file href="mod_2/mod_2.htm"/>
            <file href="mod_2/mod_2.swf"/>
        </resource>
        <resource identifier="res3" type="webcontent" href="mod_3/mod_3.htm" adlcp:scormtype="sco">
            <file href="mod_3/mod_3.htm"/>
            <file href="mod_3/mod_3.swf"/>
        </resource>
    </resources>
</manifest>

1 个答案:

答案 0 :(得分:2)

尝试使用&amp; amp;这是逃避&符号的首选方式(另见How do I escape ampersands in XML so they are rendered as entities in HTML?

(我刚刚在LMS中尝试过它并且有效)