<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:x = 
"urn:schemas-microsoft-com:office:excel" xmlns:p = 
"urn:schemas-microsoft-com:office:powerpoint" xmlns:a = 
"urn:schemas-microsoft-com:office:access" xmlns:dt = 
"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s = 
"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs = 
"urn:schemas-microsoft-com:rowset" xmlns:z = "#RowsetSchema" xmlns:b = 
"urn:schemas-microsoft-com:office:publisher" xmlns:ss = 
"urn:schemas-microsoft-com:office:spreadsheet" xmlns:c = 
"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc = 
"urn:schemas-microsoft-com:office:odc" xmlns:oa = 
"urn:schemas-microsoft-com:office:activation" xmlns:html = 
"http://www.w3.org/TR/REC-html40" xmlns:q = 
"http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc = 
"http://microsoft.com/officenet/conferencing" XMLNS:D = "DAV:" XMLNS:Repl = 
"http://schemas.microsoft.com/repl/" xmlns:mt = 
"http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2 = 
"http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda = 
"http://www.passport.com/NameSpace.xsd" xmlns:ois = 
"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir = 
"http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds = 
"http://www.w3.org/2000/09/xmldsig#" xmlns:dsp = 
"http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc = 
"http://schemas.microsoft.com/data/udc" xmlns:xsd = 
"http://www.w3.org/2001/XMLSchema" xmlns:sub = 
"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec = 
"http://www.w3.org/2001/04/xmlenc#" xmlns:sp = 
"http://schemas.microsoft.com/sharepoint/" xmlns:sps = 
"http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi = 
"http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs = 
"http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf = 
"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p = 
"http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf = 
"http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss = 
"http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi = 
"http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi = 
"http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver = 
"http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels = 
"http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp = 
"http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t = 
"http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m = 
"http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl = 
"http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl = 
"http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" 
XMLNS:Z = "urn:schemas-microsoft-com:" xmlns:st = ""><HEAD><TITLE>[Xerte] Xerte Dynamic Templates tutorial - clarification</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: SimSun;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: @SimSun;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>Thanks for all your help :-).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>Anyone following the instructions in the help file or 
XerteDynamic Templates.pdf file may find the following helpful when using the 
tutorial.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009></SPAN><SPAN 
class=364531512-16072009><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>By downloading the sample code and referring to it you 
should be able to complete your fully working template. I will omit cosmetic 
stuff like x and y settings and adding page titles</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>1. The&nbsp;help version of the tutorial omits a "prompt" 
node in the xml file, this is shown in the&nbsp;pdf file version of the 
tutorial.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>2. Learning Object - Setup</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>There is much more script than is shown in the tutorial - 
this includes the defining of quizData and the setting up of arrays 
for</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>tracking</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>built</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=364531512-16072009><FONT face=Arial 
color=#0000ff size=2>answers</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364531512-16072009>3. 
options - protoOption - judge</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364531512-16072009>The 
script shown omits the code to store the answer</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=364531512-16072009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364531512-16072009>4. 
options</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364531512-16072009>I 
think the default for the "perpetual" value is 0 and this needs setting to 
1</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=364531512-16072009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364531512-16072009>5. 
options - protoOption</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364531512-16072009>The 
tutorial does not show how values are set for&nbsp;"y" to cause each option to 
appear below the previous one, and for "label" to select the correct&nbsp;label 
for each option.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=364531512-16072009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=364531512-16072009>Kind 
regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=364531512-16072009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=364531512-16072009>Johnathan</SPAN></FONT></DIV>
<P><FONT face=Arial size=2>Johnathan Kemp<BR>IT Dev. Manager<BR>Connexions 
Staffordshire<BR></FONT><A href="http://www.cxstaffs.co.uk/"><FONT face=Arial 
size=2>www.cxstaffs.co.uk</FONT></A><BR><FONT face=Arial size=2>01785 
355714<BR></FONT></P>
<P>&nbsp;</P>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk 
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian 
Tenney<BR><B>Sent:</B> 16 July 2009 12:34<BR><B>To:</B> Xerte discussion 
list<BR><B>Subject:</B> RE: [Xerte] Xerte Dynamic Templates tutorial - 
clarification<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Icon 
is the script icon you are excuting code in<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Icon.nextSibling 
is the next icon <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Icon.nextSibling.firstChild 
is the first child of the next icon and so on.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Icon.nextSibling.childNodes 
is an array of all the children<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Icon.nextSibling.chidNodes[2] 
is th second child and so on.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">TemplateData 
and quizData are probably the same thing.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Icon.parentNode.index() 
returns the index of the aprent Icon, so it will be a question number, not the 
number or questions.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p>&nbsp;</o:p></SPAN></P>
<DIV>
<DIV 
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><B><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN 
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> 
xerte-bounces@lists.nottingham.ac.uk 
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Johnathan 
Kemp<BR><B>Sent:</B> Thursday, July 16, 2009 11:52 AM<BR><B>To:</B> Xerte 
discussion list<BR><B>Subject:</B> RE: [Xerte] Xerte Dynamic Templates tutorial 
- clarification<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><o:p>&nbsp;</o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">I am 
sorry I did not make myself clear.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">I 
understand that the reference to 'value' &nbsp;was a variable and that duplicate 
would result in duplication of the icon, what I was struggling with 
was&nbsp;</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">a) the 
apparent discrepancy between the code in the image which refers 
to&nbsp;</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">icon.nextSibling.childNodes[2]</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">and the 
code referred to in the accompanying text which refers 
to&nbsp;</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">icon.nextSibling.firstChild</SPAN>&nbsp;<o:p></o:p></P>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">b) 
trying to figure out&nbsp;what icon.nextSibling.childNodes[2] was actually 
identifying in the document tree and why that was 
so.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Similarly 
I was struggling to figure out, by tracking back up the document tree how it was 
that on page 11 in the pdf file (no page number in the xerte help file, but it 
is in the section 5 create the template logic 
section)</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">icon.ParentNode.index( 
) -2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; would return the 
number of questions.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Also I 
was puzzled by the reference later in the same section to quizData as I was not 
sure where this object had been defined.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Is it 
the case that since earlier we set templateDate to point to the quiz.xml file 
that quizData is effectively the same as 
templateData?</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">I am 
trying not just to duplicate the actions in the tutorial but to understand them, 
so that I can create my own templates.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Kind 
regards</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Johnathan</SPAN><o:p></o:p></P></DIV>
<P style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">Johnathan Kemp<BR>IT 
Dev. Manager<BR>Connexions Staffordshire<BR></SPAN><A 
href="http://www.cxstaffs.co.uk/"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">www.cxstaffs.co.uk</SPAN></A><BR><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">01785 
355714</SPAN><o:p></o:p></P>
<P style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><o:p>&nbsp;</o:p></P>
<DIV class=MsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" 
align=center><SPAN lang=EN-US>
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal 
style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"><B><SPAN 
lang=EN-US 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN 
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> 
xerte-bounces@lists.nottingham.ac.uk 
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian 
Tenney<BR><B>Sent:</B> 15 July 2009 20:20<BR><B>To:</B> Xerte discussion 
list<BR><B>Subject:</B> RE: [Xerte] Xerte Dynamic Templates tutorial - 
clarification</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></P>
<DIV id=idOWAReplyText80619>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">the 
parameter just describes how many times you want to duplicate the icon - don't 
run it twice!</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">&nbsp;<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">(value) is just a 
variable, a number, for how many times you want to duplicate the 
icon.</SPAN><o:p></o:p></P></DIV></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><o:p>&nbsp;</o:p></P>
<DIV class=MsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center>
<HR align=center width="100%" SIZE=2>
</DIV>
<P class=MsoNormal 
style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 0cm"><B><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> 
xerte-bounces@lists.nottingham.ac.uk on behalf of Johnathan Kemp<BR><B>Sent:</B> 
Wed 15/07/2009 17:02<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> 
[Xerte] Xerte Dynamic Templates tutorial - 
clarification</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt"><o:p>&nbsp;</o:p></P>
<P style="MARGIN-LEFT: 36pt"><SPAN style="FONT-SIZE: 10pt">&nbsp;I am part way 
through the simple quiz example in the dynamic templates<BR>tutorial as 
described in the document XerteDynamicTemplates.pdf<BR><BR>I am following 
through the example step by step and trying to ensure<BR>that I understand the 
logic behind each step, so that I will then be<BR>able to apply this to creating 
my own templates.<BR><BR>Can I seek clarification on the following 
points?<BR><BR>Page 10<BR>The code uses 
icon.nextSibling.childNodes[2].duplicate(quesCount -1)<BR>But the text refers to 
icon.nextSibling.firstChild.duplicate(value)<BR><BR>Is this a typing error? Are 
both statements required in the code?<BR><BR>Page 11<BR>Why does 
icon.parentNode.index( ) - 2 = the number of questions?<BR><BR>Page 12<BR>Where 
does the quizData object come from, there appears to be no<BR>previous reference 
to it?<BR><BR>And a general question - is there a way of easily identifying 
which node<BR>is being referenced at any time by an expression?<BR>E.g. is there 
a way of echoing a value for<BR>icon.nextSibling.firstChild.name or 
.value<BR><BR>I guess I am looking for any tricks you have picked up along the 
way<BR>that aid you in debugging your template creation.<BR><BR>Kind 
regards<BR><BR>Johnathan Kemp<BR>IT Dev. Manager<BR>Connexions 
Staffordshire<BR>www.cxstaffs.co.uk<BR>01785 355714<BR><BR><BR><BR>This email 
and any files transmitted with it are confidential and are intended solely for 
the use of the individual(s) or entity(s) to whom they are addressed. All 
messages are monitored for virus, high risk files and inappropriate content. As 
a result users should be aware that this mail maybe accessed, read and the right 
is reserved to reject, return, remove attachments or delete if considered to be 
inappropriate or unsuitable. Liability cannot be accepted for any loss or damage 
arising from this email (or any attachments) or from scripts or any virus 
transmitted.<BR><BR><BR><BR>This communication represents the originator's 
personal views and opinions, which do not necessarily reflect those of 
Connexions Staffordshire. If you are not the original recipient or the person 
responsible for delivering the email to the intended recipient, be advised that 
you have received this email in error, and that any use, dissemination, 
forwarding, printing, or copying of this email is strictly prohibited. If you 
received this email in error, please immediately reply to the sender or notify 
postmaster@cxstaffs.co.uk<BR><BR><BR><BR><BR><BR>Connexions Staffordshire 
Limited is registered in England No.4355170<BR><BR>Registered office: Foregate 
House, 70 Foregate Street, Stafford, Staffordshire, ST16 
2PX<BR><BR>_______________________________________________<BR>Xerte mailing 
list<BR>Xerte@lists.nottingham.ac.uk<BR><A 
href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A></SPAN><o:p></o:p></P></DIV>
<DIV>
<DIV class=MsoNormal style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align=center>
<HR align=center width="100%" SIZE=2>
</DIV>
<P class=MsoNormal style="MARGIN-LEFT: 36pt">This email and any files 
transmitted with it are confidential and are intended solely for the use of the 
individual(s) or entity(s) to whom they are addressed. All messages are 
monitored for virus, high risk files and inappropriate content. As a result 
users should be aware that this mail maybe accessed, read and the right is 
reserved to reject, return, remove attachments or delete if considered to be 
inappropriate or unsuitable. Liability cannot be accepted for any loss or damage 
arising from this email (or any attachments) or from scripts or any virus 
transmitted. This communication represents the originator's personal views and 
opinions, which do not necessarily reflect those of Connexions Staffordshire. If 
you are not the original recipient or the person responsible for delivering the 
email to the intended recipient, be advised that you have received this email in 
error, and that any use, dissemination, forwarding, printing, or copying of this 
email is strictly prohibited. If you received this email in error, please 
immediately reply to the sender or notify postmaster@cxstaffs.co.uk Connexions 
Staffordshire Limited is registered in England No.4355170 Registered office: 
Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 
2PX<o:p></o:p></P></DIV></DIV><div align=\"center\" style=\"font-family:verdana; font-size:10px;\"><hr width=\"100%\">This email and any files transmitted with it are confidential and are intended solely for the use of the individual(s) or entity(s) to whom they are addressed. All messages are monitored for virus, high risk files and inappropriate content. As a result users should be aware that this mail maybe accessed, read and the right is reserved to reject, return, remove attachments or delete if considered to be inappropriate or unsuitable. Liability cannot be accepted for any loss or damage arising from this email (or any attachments) or from scripts or any virus transmitted.

This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Connexions Staffordshire. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately reply to the sender or notify postmaster@cxstaffs.co.uk


Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX</div></body></HTML>