4b196f4e49ced68aa6bdd7af77f0041c71ca6338
[acontent.git] / docs / themes / default / tests / test_questions / manifest_qti_2p1.tmpl.php
1 <<?php echo '?'; ?>xml version="1.0" encoding="<?php echo $this->encoding; ?>"<?php echo '?'; ?>>
2 <manifest xmlns="http://www.imsglobal.org/xsd/imscp_v1p2" xmlns:imsmd="http://www.imsglobal.org/xsd/imsmd_v1p2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:imsqti="http://www.imsglobal.org/xsd/imsqti_v2p1" identifier="MANIFEST-<?php echo md5(time()); ?>" xsi:schemaLocation="http://www.imsglobal.org/xsd/imscp_v1p2 http://www.imsglobal.org/xsd/imscp_v1p2.xsd http://www.imsglobal.org/xsd/imsmd_v1p2 http://www.imsglobal.org/xsd/imsmd_v1p2p2.xsd http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/imsqti_v2p1.xsd">
3         <metadata>
4                 <schema>IMS Content</schema>
5                 <schemaversion>1.2</schemaversion>
6         </metadata>
7
8         <organizations/>
9
10         <resources>
11                 <?php foreach ($this->resources as $resource): ?>
12                         <resource identifier="RES-<?php echo md5($resource['href']); ?>" type="imsqti_item_xmlv2p1" href="<?php echo $resource['href']; ?>">
13                                 <metadata/>
14                                 <file href="<?php echo $resource['href']; ?>"/>
15                                 <?php foreach ($resource['dependencies'] as $dependency_href): ?>
16                                         <dependency identifierref="<?php echo md5($dependency_href); ?>"/>
17                                 <?php endforeach; ?>
18                         </resource>
19                 <?php endforeach; ?>
20
21                 <!-- dependancies go here -->
22                 <?php foreach ($this->dependencies as $dependency_href): ?>
23                         <resource identifier="<?php echo md5($dependency_href); ?>" type="webcontent">
24                                 <metadata/>
25                                 <file href="resources/<?php echo $dependency_href; ?>"/>
26                         </resource>
27                 <?php endforeach; ?>
28         </resources>
29 </manifest>