Update of /cvsroot/stack/stack-1-0/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15577/scripts
Modified Files:
stackXML.php
Log Message:
Index: stackXML.php
===================================================================
RCS file: /cvsroot/stack/stack-1-0/scripts/stackXML.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** stackXML.php 25 Aug 2005 16:25:41 -0000 1.15
--- stackXML.php 29 Aug 2005 19:08:04 -0000 1.16
***************
*** 29,38 ****
//$namespaces data structure
! $namespaces['xs']['namespace'] = 'http://www.w3.org/2001/XMLSchema'; //Default namespace
! $namespaces['xs']['id'] = 'xs'; //REQUIRED FOR SCHEMA
! $namespaces['dc']['namespace'] = 'http://purl.org/dc/elements/1.1/'; //Dublin core namespace
! $namespaces['dc']['id'] = 'dc'; //The ID prepended to our elements that use DC
! $namespaces['dc']['location'] = 'dc.xsd'; //The actual location of the dublin core schema
$namespaces['lom']['namespace'] = 'http://www.imsglobal.org/xsd/imsmd_v1p2';//etc.
[...4023 lines suppressed...]
! global $stackQuiz;
!
! foreach ($stackQuiz as $arrayKey=>$quizField) //Iterate through the master stackQuestion fields
! {
! if (!array_key_exists($arrayKey,$quiz)) //Where the field ocurrs in stackQuiz, but not the imported quiz
! { //and is metadata
! if(!empty($quizField['type']) && ($quizField['type']=='meta'))
! {
! //If metadata field has defaults
! if(!empty($quizField['default']))
! {
! //Set the field in $question to the default metadata
! $quiz[$arrayKey]=$quizField['default'];
! }
!
! }
! }
! }
}
?>
|