[Xerte] Having problems with Xerte 2.10 not opening xml file

Dave Burnett d_b_burnett at hotmail.com
Thu Jul 8 11:21:02 BST 2010


Wow.
Eagle eyes!
:-)


----------------------------------------
> Subject: RE: [Xerte] Having problems with Xerte 2.10 not opening xml file
> Date: Thu, 8 Jul 2010 10:03:33 +0100
> From: Julian.Tenney at nottingham.ac.uk
> To: xerte at lists.nottingham.ac.uk
>
> Is this a typo:
>
> System.security.allowDomain('*.harlandds.com');
>
>
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
> Sent: 07 July 2010 23:08
> To: Xerte discussion list
> Subject: RE: [Xerte] Having problems with Xerte 2.10 not opening xml
> file
>
> The "broken" xml file is opened in the working directory and parsed just
> fine. Good idea, though. That would indicate the problem is in my rlo
> ...
>
> The first part of the .rlo file, including the first script where I
> assign the xml data to variables, is:
> [start copy]
>
> 
> statusBarColour="0x00529B" defaultFont="Verdana" stageSize="800,605"
> stageColour="0xD4E1EE" name="DepositPro Admin">
>>
> // get setup info
> courseSetup = courseInfo.setup[0];
>
> // productName
> productName = courseSetup.product[0];
>
> // set course title
> courseTitle = courseSetup.title[0];
>
> // set course id
> sku = courseSetup.sku[0];
>
> // set passing grade, must equal or exceed to pass test
> passingGrade = courseSetup.passingGrade[0];
> //debug(passingGrade);
>
> // The pool of questions may vary in length, but only quesCount will be
> selected.
> quesCount = courseSetup.questionCount[0]; // the number of test
> questions to be presented.
>
>
> //debug(quesCount);
>
> // The quiz data will be randomized so the order of questions will be
> // different each time the test is taken.
> quizData = courseInfo.quiz[0];
>
> // create the right number of questions
> icon.parentNode.lastChild.previousSibling.childNodes[12].childNodes[3].c
> hildNodes[1].duplicate(quesCount - 1);
>
> quizData.question.randomize(); // randomize the list of question.
>
>
> // We need an array to store the results in so we can score
> tracking = new Array();
>
> // we also need to keep track of which pages have been built
> built = new Array();
>
> // and keep track of which answers the user chose
> answers = new Array();
>
> // set security to allow access to scripts in our domain.
> System.security.allowDomain('*.harlandds.com');
> System.security.allowDomain('localhost');
>
> // initialize lesson complete variables
> overviewComplete = false;
> lesson1complete = false;
> lesson2complete = false;
> lesson3complete = false;
> lesson4complete = false;
> lesson5complete = false;
> lesson6complete = false;
> quizComplete = false;
>
> // create array with HTML entities as the key and the unicode equivalent
> as the value
> HTMLentities = Array();
>
> HTMLentities[" "] = "\u00A0"; // non-breaking space
> HTMLentities["¡"] = "\u00A1"; // inverted exclamation mark
> HTMLentities["¢"] = "\u00A2"; // cent sign
> HTMLentities["£"] = "\u00A3"; // pound sign
> HTMLentities["¤"] = "\u00A4"; // currency sign
> HTMLentities["¥"] = "\u00A5"; // yen sign
> HTMLentities["€"] = "\u20AC"; // Euro sign
> HTMLentities["¦"] = "\u00A6"; // broken vertical bar (|)
> HTMLentities["§"] = "\u00A7"; // section sign
> HTMLentities["¨"] = "\u00A8"; // diaeresis
> HTMLentities["©"] = "\u00A9"; // copyright sign
> HTMLentities["®"] = "\u00AE"; // registered sign
> HTMLentities["™"] = "\u2122"; // trademark sign
> HTMLentities["°"] = "\u00B0"; // degree sign
> HTMLentities["±"] = "\u00B1"; // plus-minus sign
> HTMLentities["¹"] = "\u00B9"; // superscript one
> HTMLentities["²"] = "\u00B2"; // superscript two
> HTMLentities["³"] = "\u00B3"; // superscript three
> HTMLentities["´"] = "\u00B4"; // acute accent
> HTMLentities["µ"] = "\u00B5"; // micro sign
> HTMLentities["¼"] = "\u00BC"; // vulgar fraction one quarter
> HTMLentities["½"] = "\u00BD"; // vulgar fraction one half
> HTMLentities["¾"] = "\u00BE"; // vulgar fraction three quarters
> HTMLentities["¿"] = "\u00BF"; // inverted question mark
> HTMLentities["À"] = "\u00C0"; // Latin capital letter A with
> grave
> HTMLentities["Á"] = "\u00C1"; // Latin capital letter A with
> acute
> HTMLentities["Â"] = "\u00C2"; // Latin capital letter A with
> circumflex
> HTMLentities["Ã"] = "\u00C3"; // Latin capital letter A with
> tilde
> HTMLentities["Ä"] = "\u00C4"; // Latin capital letter A with
> diaeresis
> HTMLentities["Å"] = "\u00C5"; // Latin capital letter A with ring
> above
> HTMLentities["Æ"] = "\u00C6"; // Latin capital letter AE
> HTMLentities["Ç"] = "\u00C7"; // Latin capital letter C with
> cedilla
> HTMLentities["È"] = "\u00C8"; // Latin capital letter E with
> grave
> HTMLentities["É"] = "\u00C9"; // Latin capital letter E with
> acute
> HTMLentities["Ê"] = "\u00CA"; // Latin capital letter E with
> circumflex
> HTMLentities["Ë"] = "\u00CB"; // Latin capital letter E with
> diaeresis
> HTMLentities["Ì"] = "\u00CC"; // Latin capital letter I with
> grave
> HTMLentities["Í"] = "\u00CD"; // Latin capital letter I with
> acute
> HTMLentities["Î"] = "\u00CE"; // Latin capital letter I with
> circumflex
> HTMLentities["Ï"] = "\u00CF"; // Latin capital letter I with
> diaeresis
> HTMLentities["Ð"] = "\u00D0"; // Latin capital letter ETH
> HTMLentities["Ñ"] = "\u00D1"; // Latin capital letter N with
> tilde
> HTMLentities["Ò"] = "\u00D2"; // Latin capital letter O with
> grave
> HTMLentities["Ó"] = "\u00D3"; // Latin capital letter O with
> acute
> HTMLentities["Ô"] = "\u00D4"; // Latin capital letter O with
> circumflex
> HTMLentities["Õ"] = "\u00D5"; // Latin capital letter O with
> tilde
> HTMLentities["Ö"] = "\u00D6"; // Latin capital letter O with
> diaeresis
> HTMLentities["Ø"] = "\u00D8"; // Latin capital letter O with
> stroke
> HTMLentities["Ù"] = "\u00D9"; // Latin capital letter U with
> grave
> HTMLentities["Ú"] = "\u00DA"; // Latin capital letter U with
> acute
> HTMLentities["Û"] = "\u00DB"; // Latin capital letter U with
> circumflex
> HTMLentities["Ü"] = "\u00DC"; // Latin capital letter U with
> diaeresis
> HTMLentities["Ý"] = "\u00DD"; // Latin capital letter Y with
> acute
> HTMLentities["Þ"] = "\u00DE"; // Latin capital letter THORN
> HTMLentities["ß"] = "\u00DF"; // Latin small letter sharp s =
> ess-zed
> HTMLentities["à"] = "\u00E0"; // Latin small letter a with grave
> HTMLentities["á"] = "\u00E1"; // Latin small letter a with acute
> HTMLentities["â"] = "\u00E2"; // Latin small letter a with
> circumflex
> HTMLentities["ã"] = "\u00E3"; // Latin small letter a with tilde
> HTMLentities["ä"] = "\u00E4"; // Latin small letter a with
> diaeresis
> HTMLentities["å"] = "\u00E5"; // Latin small letter a with ring
> above
> HTMLentities["æ"] = "\u00E6"; // Latin small letter ae
> HTMLentities["ç"] = "\u00E7"; // Latin small letter c with
> cedilla
> HTMLentities["è"] = "\u00E8"; // Latin small letter e with grave
> HTMLentities["é"] = "\u00E9"; // Latin small letter e with acute
> HTMLentities["ê"] = "\u00EA"; // Latin small letter e with
> circumflex
> HTMLentities["ë"] = "\u00EB"; // Latin small letter e with
> diaeresis
> HTMLentities["ì"] = "\u00EC"; // Latin small letter i with grave
> HTMLentities["í"] = "\u00ED"; // Latin small letter i with acute
> HTMLentities["î"] = "\u00EE"; // Latin small letter i with
> circumflex
> HTMLentities["ï"] = "\u00EF"; // Latin small letter i with
> diaeresis
> HTMLentities["ð"] = "\u00F0"; // Latin small letter eth
> HTMLentities["ñ"] = "\u00F1"; // Latin small letter n with tilde
> HTMLentities["ò"] = "\u00F2"; // Latin small letter o with grave
> HTMLentities["ó"] = "\u00F3"; // Latin small letter o with acute
> HTMLentities["ô"] = "\u00F4"; // Latin small letter o with
> circumflex
> HTMLentities["õ"] = "\u00F5"; // Latin small letter o with tilde
> HTMLentities["ö"] = "\u00F6"; // Latin small letter o with
> diaeresis
> HTMLentities["ø"] = "\u00F8"; // Latin small letter o with stroke
> HTMLentities["ù"] = "\u00F9"; // Latin small letter u with grave
> HTMLentities["ú"] = "\u00FA"; // Latin small letter u with acute
> HTMLentities["û"] = "\u00FB"; // Latin small letter u with
> circumflex
> HTMLentities["ü"] = "\u00FC"; // Latin small letter u with
> diaeresis
> HTMLentities["ý"] = "\u00FD"; // Latin small letter y with acute
> HTMLentities["þ"] = "\u00FE"; // Latin small letter thorn
> HTMLentities["ÿ"] = "\u00FF"; // Latin small letter y with
> diaeresis
> HTMLentities["–"] = "\u2013"; // N-dash
> HTMLentities["—"] = "\u2014"; // M-dash
> HTMLentities["""] = "\u0022"; // Quotation mark
> HTMLentities["&"] = "\u0026"; // Ampersand
> HTMLentities["<"] = "\u003C"; // Less-than sign
> HTMLentities[">"] = "\u003E"; // Greater-than sign
> HTMLentities["√"] = "\u221A"; // Square root symbol
> HTMLentities["∞"] = "\u221E"; // Infinity symbol
> HTMLentities["◊"] = "\u25CA"; // Lozenge shape
> HTMLentities["♠"] = "\u2660"; // Spade suit
> HTMLentities["♣"] = "\u2663"; // Club suit / shamrock
> HTMLentities["♥"] = "\u2665"; // Heart suit / valentine
> HTMLentities["♦"] = "\u2666"; // Diamond suit
> HTMLentities["←"] = "\u2190"; // Leftwards arrow
> HTMLentities["↑"] = "\u2191"; // Upwards arrow
> HTMLentities["→"] = "\u2192"; // Rightwards arrow
> HTMLentities["↓"] = "\u2193"; // Downwards arrow
> HTMLentities["↔"] = "\u2194"; // Left Right arrow
> HTMLentities["↵"] = "\u21B5"; // Downwards arrow with corner
> leftwards (carriage return)
> HTMLentities["⇐"] = "\u21D0"; // Leftwards double arrow
> HTMLentities["⇑"] = "\u21D1"; // Upwards double arrow
> HTMLentities["⇒"] = "\u21D2"; // Rightwards double arrow
> HTMLentities["⇓"] = "\u21D3"; // Downwards double arrow
> HTMLentities["⇔"] = "\u21D4"; // Left Right double
> arrow]]>
>
> [end copy]
>
> If the full .rlo file is needed, I can provide that, but it's 432KB.
>
> The setup.xml file looks like (an abbreviated version,  contains
> more questions, there are both a  and  closing tags
> towards the end of the full file):
> [start copy]
> 
>
> 
>
> 
>
> DepositPro
> Admin
> 1007
> 80
> 20
>
> 
>
>
> 
>
> 
>
> 
> What section of General System Setup allows you to establish
> access rights to various levels of program use?
> Tools> Security
> File> View Licenses
> General> Institution Setup
> Personnel> Access Groups
> Libraries> Financial Institution
> 
>
> [end copy]
>
> But I don't believe the xml file is the problem, it seems to me to be a
> problem with the templateData="FileLocation + 'setup.xml'" part in the
> .rlo file. Looks okay, but acts like the 'setup.xml' part is missing.
>
> Paul
>
>> -----Original Message-----
>> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-
>> bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
>> Sent: Wednesday, July 07, 2010 2:36 PM
>> To: Xerte list
>> Subject: RE: [Xerte] Having problems with Xerte 2.10 not opening xml
>> file
>>
>>
>>>I've tried replacing the xml file with another from a working course,
>> and also with just a bare-bones xml file, but it makes no difference.
>>
>>
>>
>> And vice versa?
>>
>> "Broken" xml into a working directory?
>>
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
 		 	   		  
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3


More information about the Xerte mailing list