Browse files

Dev: add eol=lf for sql,txt,lss

Dev: Normalize line endings
  • Loading branch information...
1 parent eff5aba commit a0bcbf483d9d2eecf267de97ef0136e41d8acb33 @Shnoulle Shnoulle committed Feb 13, 2013
View
3 .gitattributes
@@ -7,6 +7,9 @@
*.js text eol=lf
*.pstpl text eol=lf
*.html text eol=lf
+*.sql text eol=lf
+*.txt text eol=lf
+*.lss text eol=lf
# Denote all files that are truly binary and should not be modified.
*.jpg binary
View
110 docs/demosurveys/Randomization_Group_Test.lss
@@ -246,7 +246,7 @@
<gid><![CDATA[1]]></gid>
<type><![CDATA[S]]></type>
<title><![CDATA[Q1]]></title>
- <question><![CDATA[1 Texte Q1
+ <question><![CDATA[1 Texte Q1
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -283,7 +283,7 @@
<gid><![CDATA[1]]></gid>
<type><![CDATA[T]]></type>
<title><![CDATA[Q2]]></title>
- <question><![CDATA[Texte Q2 2
+ <question><![CDATA[Texte Q2 2
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -320,7 +320,7 @@
<gid><![CDATA[1]]></gid>
<type><![CDATA[U]]></type>
<title><![CDATA[Q3]]></title>
- <question><![CDATA[Texte Q3 3
+ <question><![CDATA[Texte Q3 3
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -357,7 +357,7 @@
<gid><![CDATA[2]]></gid>
<type><![CDATA[!]]></type>
<title><![CDATA[Q4]]></title>
- <question><![CDATA[Liste Q4 1
+ <question><![CDATA[Liste Q4 1
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -394,7 +394,7 @@
<gid><![CDATA[2]]></gid>
<type><![CDATA[L]]></type>
<title><![CDATA[Q5]]></title>
- <question><![CDATA[Liste Q5 2
+ <question><![CDATA[Liste Q5 2
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -431,7 +431,7 @@
<gid><![CDATA[2]]></gid>
<type><![CDATA[O]]></type>
<title><![CDATA[Q6]]></title>
- <question><![CDATA[Q6 Liste 3
+ <question><![CDATA[Q6 Liste 3
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -468,7 +468,7 @@
<gid><![CDATA[3]]></gid>
<type><![CDATA[B]]></type>
<title><![CDATA[Q7]]></title>
- <question><![CDATA[Q7 tableau 1
+ <question><![CDATA[Q7 tableau 1
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -505,7 +505,7 @@
<gid><![CDATA[3]]></gid>
<type><![CDATA[:]]></type>
<title><![CDATA[Q8]]></title>
- <question><![CDATA[Tableau 2 Q8
+ <question><![CDATA[Tableau 2 Q8
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -542,7 +542,7 @@
<gid><![CDATA[3]]></gid>
<type><![CDATA[C]]></type>
<title><![CDATA[Q9]]></title>
- <question><![CDATA[Tableau 3 Q9
+ <question><![CDATA[Tableau 3 Q9
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -2598,17 +2598,17 @@ Rand Group3&nbsp; Q3 |&nbsp; Q6&nbsp; | Q9<br />
<surveyls_survey_id><![CDATA[88881]]></surveyls_survey_id>
<surveyls_language><![CDATA[fr]]></surveyls_language>
<surveyls_title><![CDATA[Enqu&ecirc;te test groupe de randomisation]]></surveyls_title>
- <surveyls_description><![CDATA[<p>
- Cette enqu&ecirc;te permettra de tester la fonctionnalit&eacute; de la randomisation de groupe, il contient 3 groupes avec 3 questions &agrave; un groupe. La premi&egrave;re question de chaque groupe est en rand groupe1, la deuxi&egrave;me question dans chaque groupe est en rand groupe2, et la derni&egrave;re question de chaque groupe est en rand groupe3. Les groupes de l&#39;enqu&ecirc;te sont du groupe A, B, C. Pour illustrer ceci:</p>
-<p>
- <br />
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C<br />
- ---------------------------------------<br />
- Rand Group1&nbsp; Q1 |&nbsp; Q4&nbsp; | Q7<br />
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------------------<br />
- Rand Group2&nbsp; Q2 |&nbsp; Q5&nbsp; | Q8<br />
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------------------<br />
- Rand Group3&nbsp; Q3 |&nbsp; Q6&nbsp; | Q9</p>
+ <surveyls_description><![CDATA[<p>
+ Cette enqu&ecirc;te permettra de tester la fonctionnalit&eacute; de la randomisation de groupe, il contient 3 groupes avec 3 questions &agrave; un groupe. La premi&egrave;re question de chaque groupe est en rand groupe1, la deuxi&egrave;me question dans chaque groupe est en rand groupe2, et la derni&egrave;re question de chaque groupe est en rand groupe3. Les groupes de l&#39;enqu&ecirc;te sont du groupe A, B, C. Pour illustrer ceci:</p>
+<p>
+ <br />
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C<br />
+ ---------------------------------------<br />
+ Rand Group1&nbsp; Q1 |&nbsp; Q4&nbsp; | Q7<br />
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------------------<br />
+ Rand Group2&nbsp; Q2 |&nbsp; Q5&nbsp; | Q8<br />
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------------------<br />
+ Rand Group3&nbsp; Q3 |&nbsp; Q6&nbsp; | Q9</p>
]]></surveyls_description>
<surveyls_welcometext><![CDATA[]]></surveyls_welcometext>
<surveyls_endtext><![CDATA[]]></surveyls_endtext>
@@ -2701,41 +2701,41 @@ Visualiser les statistiques en cliquant ici :
les réponses suivantes ont été données par le participant :
{ANSWERTABLE}]]></email_admin_notification>
<email_admin_responses_subj><![CDATA[Soumission de réponse pour le questionnaire {SURVEYNAME} avec résultats]]></email_admin_responses_subj>
- <email_admin_responses><![CDATA[<style type="text/css">
- .printouttable {
- margin:1em auto;
- }
- .printouttable th {
- text-align: center;
- }
- .printouttable td {
- border-color: #ddf #ddf #ddf #ddf;
- border-style: solid;
- border-width: 1px;
- padding:0.1em 1em 0.1em 0.5em;
- }
-
- .printouttable td:first-child {
- font-weight: 700;
- text-align: right;
- padding-right: 5px;
- padding-left: 5px;
-
- }
- .printouttable .printanswersquestion td{
- background-color:#F7F8FF;
- }
-
- .printouttable .printanswersquestionhead td{
- text-align: left;
- background-color:#ddf;
- }
-
- .printouttable .printanswersgroup td{
- text-align: center;
- font-weight:bold;
- padding-top:1em;
- }
+ <email_admin_responses><![CDATA[<style type="text/css">
+ .printouttable {
+ margin:1em auto;
+ }
+ .printouttable th {
+ text-align: center;
+ }
+ .printouttable td {
+ border-color: #ddf #ddf #ddf #ddf;
+ border-style: solid;
+ border-width: 1px;
+ padding:0.1em 1em 0.1em 0.5em;
+ }
+
+ .printouttable td:first-child {
+ font-weight: 700;
+ text-align: right;
+ padding-right: 5px;
+ padding-left: 5px;
+
+ }
+ .printouttable .printanswersquestion td{
+ background-color:#F7F8FF;
+ }
+
+ .printouttable .printanswersquestionhead td{
+ text-align: left;
+ background-color:#ddf;
+ }
+
+ .printouttable .printanswersgroup td{
+ text-align: center;
+ font-weight:bold;
+ padding-top:1em;
+ }
</style>Bonjour,
Une nouvelle réponse a été soumise pour votre questionnaire '{SURVEYNAME}'.
View
202 docs/demosurveys/ls2_EM_question_attributes.lss
@@ -2024,107 +2024,107 @@
<gid><![CDATA[54]]></gid>
<type><![CDATA[X]]></type>
<title><![CDATA[report00]]></title>
- <question><![CDATA[<table border='1'>
-<tr><th>Qcode</th><th>INSERTANS</th><th>Qcode.shown</th></tr>
-<tr><td>q5pointChoice</td><td>{INSERTANS:14272X54X930}</td><td>{q5pointChoice.shown}</td></tr>
-<tr><td>qListDropdown</td><td>{INSERTANS:14272X54X931}</td><td>{qListDropdown.shown}</td></tr>
-<tr><td>qListDropdown_other</td><td>{INSERTANS:14272X54X931other}</td><td>{qListDropdown_other.shown}</td></tr>
-<tr><td>qListRadio</td><td>{INSERTANS:14272X54X932}</td><td>{qListRadio.shown}</td></tr>
-<tr><td>qListRadio_other</td><td>{INSERTANS:14272X54X932other}</td><td>{qListRadio_other.shown}</td></tr>
-<tr><td>qListWithComment</td><td>{INSERTANS:14272X54X933}</td><td>{qListWithComment.shown}</td></tr>
-<tr><td>qListWithComment_comment</td><td>{INSERTANS:14272X54X933comment}</td><td>{qListWithComment_comment.shown}</td></tr>
-<tr><td>qArray_F1</td><td>{INSERTANS:14272X54X934F1}</td><td>{qArray_F1.shown}</td></tr>
-<tr><td>qArray_F2</td><td>{INSERTANS:14272X54X934F2}</td><td>{qArray_F2.shown}</td></tr>
-<tr><td>qArray_F3</td><td>{INSERTANS:14272X54X934F3}</td><td>{qArray_F3.shown}</td></tr>
-<tr><td>qArray_F4</td><td>{INSERTANS:14272X54X934F4}</td><td>{qArray_F4.shown}</td></tr>
-<tr><td>qArray_F5</td><td>{INSERTANS:14272X54X934F5}</td><td>{qArray_F5.shown}</td></tr>
-<tr><td>qArray10Point_L1</td><td>{INSERTANS:14272X54X935L1}</td><td>{qArray10Point_L1.shown}</td></tr>
-<tr><td>qArray10Point_L2</td><td>{INSERTANS:14272X54X935L2}</td><td>{qArray10Point_L2.shown}</td></tr>
-<tr><td>qArray10Point_L3</td><td>{INSERTANS:14272X54X935L3}</td><td>{qArray10Point_L3.shown}</td></tr>
-<tr><td>qArray10Point_L4</td><td>{INSERTANS:14272X54X935L4}</td><td>{qArray10Point_L4.shown}</td></tr>
-<tr><td>qArray10Point_L5</td><td>{INSERTANS:14272X54X935L5}</td><td>{qArray10Point_L5.shown}</td></tr>
-<tr><td>qArray10Point_L6</td><td>{INSERTANS:14272X54X935L6}</td><td>{qArray10Point_L6.shown}</td></tr>
-<tr><td>qArray5Point_1</td><td>{INSERTANS:14272X54X9361}</td><td>{qArray5Point_1.shown}</td></tr>
-<tr><td>qArray5Point_2</td><td>{INSERTANS:14272X54X9362}</td><td>{qArray5Point_2.shown}</td></tr>
-<tr><td>qArray5Point_3</td><td>{INSERTANS:14272X54X9363}</td><td>{qArray5Point_3.shown}</td></tr>
-<tr><td>qArray5Point_4</td><td>{INSERTANS:14272X54X9364}</td><td>{qArray5Point_4.shown}</td></tr>
-<tr><td>qArray5Point_5</td><td>{INSERTANS:14272X54X9365}</td><td>{qArray5Point_5.shown}</td></tr>
-<tr><td>qArray5Point_6</td><td>{INSERTANS:14272X54X9366}</td><td>{qArray5Point_6.shown}</td></tr>
-<tr><td>qArrayISD_1</td><td>{INSERTANS:14272X54X9371}</td><td>{qArrayISD_1.shown}</td></tr>
-<tr><td>qArrayISD_2</td><td>{INSERTANS:14272X54X9372}</td><td>{qArrayISD_2.shown}</td></tr>
-<tr><td>qArrayISD_3</td><td>{INSERTANS:14272X54X9373}</td><td>{qArrayISD_3.shown}</td></tr>
-<tr><td>qArrayISD_4</td><td>{INSERTANS:14272X54X9374}</td><td>{qArrayISD_4.shown}</td></tr>
-<tr><td>qArrayISD_5</td><td>{INSERTANS:14272X54X9375}</td><td>{qArrayISD_5.shown}</td></tr>
-<tr><td>qArrayISD_6</td><td>{INSERTANS:14272X54X9376}</td><td>{qArrayISD_6.shown}</td></tr>
-<tr><td>qArrayISD_7</td><td>{INSERTANS:14272X54X9377}</td><td>{qArrayISD_7.shown}</td></tr>
-<tr><td>qArrayNumbers_ls1_min</td><td>{INSERTANS:14272X54X938ls1_min}</td><td>{qArrayNumbers_ls1_min.shown}</td></tr>
-<tr><td>qArrayNumbers_ls1_max</td><td>{INSERTANS:14272X54X938ls1_max}</td><td>{qArrayNumbers_ls1_max.shown}</td></tr>
-<tr><td>qArrayNumbers_ls1_avg</td><td>{INSERTANS:14272X54X938ls1_avg}</td><td>{qArrayNumbers_ls1_avg.shown}</td></tr>
-<tr><td>qArrayNumbers_todo_min</td><td>{INSERTANS:14272X54X938todo_min}</td><td>{qArrayNumbers_todo_min.shown}</td></tr>
-<tr><td>qArrayNumbers_todo_max</td><td>{INSERTANS:14272X54X938todo_max}</td><td>{qArrayNumbers_todo_max.shown}</td></tr>
-<tr><td>qArrayNumbers_todo_avg</td><td>{INSERTANS:14272X54X938todo_avg}</td><td>{qArrayNumbers_todo_avg.shown}</td></tr>
-<tr><td>qArrayNumbers_honey_min</td><td>{INSERTANS:14272X54X938honey_min}</td><td>{qArrayNumbers_honey_min.shown}</td></tr>
-<tr><td>qArrayNumbers_honey_max</td><td>{INSERTANS:14272X54X938honey_max}</td><td>{qArrayNumbers_honey_max.shown}</td></tr>
-<tr><td>qArrayNumbers_honey_avg</td><td>{INSERTANS:14272X54X938honey_avg}</td><td>{qArrayNumbers_honey_avg.shown}</td></tr>
-<tr><td>qArrayNumbers_econ_min</td><td>{INSERTANS:14272X54X938econ_min}</td><td>{qArrayNumbers_econ_min.shown}</td></tr>
-<tr><td>qArrayNumbers_econ_max</td><td>{INSERTANS:14272X54X938econ_max}</td><td>{qArrayNumbers_econ_max.shown}</td></tr>
-<tr><td>qArrayNumbers_econ_avg</td><td>{INSERTANS:14272X54X938econ_avg}</td><td>{qArrayNumbers_econ_avg.shown}</td></tr>
-<tr><td>qArrayTexts_hp_1st</td><td>{INSERTANS:14272X54X939hp_1st}</td><td>{qArrayTexts_hp_1st.shown}</td></tr>
-<tr><td>qArrayTexts_hp_2nd</td><td>{INSERTANS:14272X54X939hp_2nd}</td><td>{qArrayTexts_hp_2nd.shown}</td></tr>
-<tr><td>qArrayTexts_hp_3rd</td><td>{INSERTANS:14272X54X939hp_3rd}</td><td>{qArrayTexts_hp_3rd.shown}</td></tr>
-<tr><td>qArrayTexts_st_1st</td><td>{INSERTANS:14272X54X939st_1st}</td><td>{qArrayTexts_st_1st.shown}</td></tr>
-<tr><td>qArrayTexts_st_2nd</td><td>{INSERTANS:14272X54X939st_2nd}</td><td>{qArrayTexts_st_2nd.shown}</td></tr>
-<tr><td>qArrayTexts_st_3rd</td><td>{INSERTANS:14272X54X939st_3rd}</td><td>{qArrayTexts_st_3rd.shown}</td></tr>
-<tr><td>qArrayTexts_sw_1st</td><td>{INSERTANS:14272X54X939sw_1st}</td><td>{qArrayTexts_sw_1st.shown}</td></tr>
-<tr><td>qArrayTexts_sw_2nd</td><td>{INSERTANS:14272X54X939sw_2nd}</td><td>{qArrayTexts_sw_2nd.shown}</td></tr>
-<tr><td>qArrayTexts_sw_3rd</td><td>{INSERTANS:14272X54X939sw_3rd}</td><td>{qArrayTexts_sw_3rd.shown}</td></tr>
-<tr><td>qArrayYNU_1</td><td>{INSERTANS:14272X54X9401}</td><td>{qArrayYNU_1.shown}</td></tr>
-<tr><td>qArrayYNU_2</td><td>{INSERTANS:14272X54X9402}</td><td>{qArrayYNU_2.shown}</td></tr>
-<tr><td>qArrayYNU_3</td><td>{INSERTANS:14272X54X9403}</td><td>{qArrayYNU_3.shown}</td></tr>
-<tr><td>qArrayYNU_4</td><td>{INSERTANS:14272X54X9404}</td><td>{qArrayYNU_4.shown}</td></tr>
-<tr><td>qArrayYNU_5</td><td>{INSERTANS:14272X54X9405}</td><td>{qArrayYNU_5.shown}</td></tr>
-<tr><td>qArrayByColumn_1</td><td>{INSERTANS:14272X54X9411}</td><td>{qArrayByColumn_1.shown}</td></tr>
-<tr><td>qArrayByColumn_2</td><td>{INSERTANS:14272X54X9412}</td><td>{qArrayByColumn_2.shown}</td></tr>
-<tr><td>qArrayByColumn_3</td><td>{INSERTANS:14272X54X9413}</td><td>{qArrayByColumn_3.shown}</td></tr>
-<tr><td>qArrayByColumn_4</td><td>{INSERTANS:14272X54X9414}</td><td>{qArrayByColumn_4.shown}</td></tr>
-<tr><td>qArrayByColumn_5</td><td>{INSERTANS:14272X54X9415}</td><td>{qArrayByColumn_5.shown}</td></tr>
-<tr><td>qArrayDualScale_money_0</td><td>{INSERTANS:14272X54X942money#0}</td><td>{qArrayDualScale_money_0.shown}</td></tr>
-<tr><td>qArrayDualScale_money_1</td><td>{INSERTANS:14272X54X942money#1}</td><td>{qArrayDualScale_money_1.shown}</td></tr>
-<tr><td>qArrayDualScale_health_0</td><td>{INSERTANS:14272X54X942health#0}</td><td>{qArrayDualScale_health_0.shown}</td></tr>
-<tr><td>qArrayDualScale_health_1</td><td>{INSERTANS:14272X54X942health#1}</td><td>{qArrayDualScale_health_1.shown}</td></tr>
-<tr><td>qArrayDualScale_md_0</td><td>{INSERTANS:14272X54X942md#0}</td><td>{qArrayDualScale_md_0.shown}</td></tr>
-<tr><td>qArrayDualScale_md_1</td><td>{INSERTANS:14272X54X942md#1}</td><td>{qArrayDualScale_md_1.shown}</td></tr>
-<tr><td>qDate</td><td>{INSERTANS:14272X54X943}</td><td>{qDate.shown}</td></tr>
-<tr><td>qFileUpload</td><td>{INSERTANS:14272X54X944}</td><td>{qFileUpload.shown}</td></tr>
-<tr><td>qFileUpload_filecount</td><td>{INSERTANS:14272X54X944_filecount}</td><td>{qFileUpload_filecount.shown}</td></tr>
-<tr><td>qGender</td><td>{INSERTANS:14272X54X945}</td><td>{qGender.shown}</td></tr>
-<tr><td>qLanguage</td><td>{INSERTANS:14272X54X946}</td><td>{qLanguage.shown}</td></tr>
-<tr><td>qMultipleNumerical_self</td><td>{INSERTANS:14272X54X947self}</td><td>{qMultipleNumerical_self.shown}</td></tr>
-<tr><td>qMultipleNumerical_mom</td><td>{INSERTANS:14272X54X947mom}</td><td>{qMultipleNumerical_mom.shown}</td></tr>
-<tr><td>qMultipleNumerical_dad</td><td>{INSERTANS:14272X54X947dad}</td><td>{qMultipleNumerical_dad.shown}</td></tr>
-<tr><td>qNumerical</td><td>{INSERTANS:14272X54X948}</td><td>{qNumerical.shown}</td></tr>
-<tr><td>qRanking_1</td><td>{INSERTANS:14272X54X9491}</td><td>{qRanking_1.shown}</td></tr>
-<tr><td>qRanking_2</td><td>{INSERTANS:14272X54X9492}</td><td>{qRanking_2.shown}</td></tr>
-<tr><td>qRanking_3</td><td>{INSERTANS:14272X54X9493}</td><td>{qRanking_3.shown}</td></tr>
-<tr><td>qRanking_4</td><td>{INSERTANS:14272X54X9494}</td><td>{qRanking_4.shown}</td></tr>
-<tr><td>qTextDisplay</td><td>{INSERTANS:14272X54X950}</td><td>{qTextDisplay.shown}</td></tr>
-<tr><td>qYesNo</td><td>{INSERTANS:14272X54X951}</td><td>{qYesNo.shown}</td></tr>
-<tr><td>qHugeText</td><td>{INSERTANS:14272X54X952}</td><td>{qHugeText.shown}</td></tr>
-<tr><td>qLongText</td><td>{INSERTANS:14272X54X953}</td><td>{qLongText.shown}</td></tr>
-<tr><td>qMultipleShort_friend</td><td>{INSERTANS:14272X54X954friend}</td><td>{qMultipleShort_friend.shown}</td></tr>
-<tr><td>qMultipleShort_family</td><td>{INSERTANS:14272X54X954family}</td><td>{qMultipleShort_family.shown}</td></tr>
-<tr><td>qMultipleShort_work</td><td>{INSERTANS:14272X54X954work}</td><td>{qMultipleShort_work.shown}</td></tr>
-<tr><td>qShort</td><td>{INSERTANS:14272X54X955}</td><td>{qShort.shown}</td></tr>
-<tr><td>qMultipleChoice_Hawaii</td><td>{INSERTANS:14272X54X956Hawaii}</td><td>{qMultipleChoice_Hawaii.shown}</td></tr>
-<tr><td>qMultipleChoice_Bahamas</td><td>{INSERTANS:14272X54X956Bahamas}</td><td>{qMultipleChoice_Bahamas.shown}</td></tr>
-<tr><td>qMultipleChoice_Europe</td><td>{INSERTANS:14272X54X956Europe}</td><td>{qMultipleChoice_Europe.shown}</td></tr>
-<tr><td>qMultipleChoice_NewZealand</td><td>{INSERTANS:14272X54X956NewZealand}</td><td>{qMultipleChoice_NewZealand.shown}</td></tr>
-<tr><td>qMultChoiceComment_junk</td><td>{INSERTANS:14272X54X957junk}</td><td>{qMultChoiceComment_junk.shown}</td></tr>
-<tr><td>qMultChoiceComment_junkcomment</td><td>{INSERTANS:14272X54X957junkcomment}</td><td>{qMultChoiceComment_junkcomment.shown}</td></tr>
-<tr><td>qMultChoiceComment_rtv</td><td>{INSERTANS:14272X54X957rtv}</td><td>{qMultChoiceComment_rtv.shown}</td></tr>
-<tr><td>qMultChoiceComment_rtvcomment</td><td>{INSERTANS:14272X54X957rtvcomment}</td><td>{qMultChoiceComment_rtvcomment.shown}</td></tr>
-<tr><td>qMultChoiceComment_ex</td><td>{INSERTANS:14272X54X957ex}</td><td>{qMultChoiceComment_ex.shown}</td></tr>
-<tr><td>qMultChoiceComment_excomment</td><td>{INSERTANS:14272X54X957excomment}</td><td>{qMultChoiceComment_excomment.shown}</td></tr>
+ <question><![CDATA[<table border='1'>
+<tr><th>Qcode</th><th>INSERTANS</th><th>Qcode.shown</th></tr>
+<tr><td>q5pointChoice</td><td>{INSERTANS:14272X54X930}</td><td>{q5pointChoice.shown}</td></tr>
+<tr><td>qListDropdown</td><td>{INSERTANS:14272X54X931}</td><td>{qListDropdown.shown}</td></tr>
+<tr><td>qListDropdown_other</td><td>{INSERTANS:14272X54X931other}</td><td>{qListDropdown_other.shown}</td></tr>
+<tr><td>qListRadio</td><td>{INSERTANS:14272X54X932}</td><td>{qListRadio.shown}</td></tr>
+<tr><td>qListRadio_other</td><td>{INSERTANS:14272X54X932other}</td><td>{qListRadio_other.shown}</td></tr>
+<tr><td>qListWithComment</td><td>{INSERTANS:14272X54X933}</td><td>{qListWithComment.shown}</td></tr>
+<tr><td>qListWithComment_comment</td><td>{INSERTANS:14272X54X933comment}</td><td>{qListWithComment_comment.shown}</td></tr>
+<tr><td>qArray_F1</td><td>{INSERTANS:14272X54X934F1}</td><td>{qArray_F1.shown}</td></tr>
+<tr><td>qArray_F2</td><td>{INSERTANS:14272X54X934F2}</td><td>{qArray_F2.shown}</td></tr>
+<tr><td>qArray_F3</td><td>{INSERTANS:14272X54X934F3}</td><td>{qArray_F3.shown}</td></tr>
+<tr><td>qArray_F4</td><td>{INSERTANS:14272X54X934F4}</td><td>{qArray_F4.shown}</td></tr>
+<tr><td>qArray_F5</td><td>{INSERTANS:14272X54X934F5}</td><td>{qArray_F5.shown}</td></tr>
+<tr><td>qArray10Point_L1</td><td>{INSERTANS:14272X54X935L1}</td><td>{qArray10Point_L1.shown}</td></tr>
+<tr><td>qArray10Point_L2</td><td>{INSERTANS:14272X54X935L2}</td><td>{qArray10Point_L2.shown}</td></tr>
+<tr><td>qArray10Point_L3</td><td>{INSERTANS:14272X54X935L3}</td><td>{qArray10Point_L3.shown}</td></tr>
+<tr><td>qArray10Point_L4</td><td>{INSERTANS:14272X54X935L4}</td><td>{qArray10Point_L4.shown}</td></tr>
+<tr><td>qArray10Point_L5</td><td>{INSERTANS:14272X54X935L5}</td><td>{qArray10Point_L5.shown}</td></tr>
+<tr><td>qArray10Point_L6</td><td>{INSERTANS:14272X54X935L6}</td><td>{qArray10Point_L6.shown}</td></tr>
+<tr><td>qArray5Point_1</td><td>{INSERTANS:14272X54X9361}</td><td>{qArray5Point_1.shown}</td></tr>
+<tr><td>qArray5Point_2</td><td>{INSERTANS:14272X54X9362}</td><td>{qArray5Point_2.shown}</td></tr>
+<tr><td>qArray5Point_3</td><td>{INSERTANS:14272X54X9363}</td><td>{qArray5Point_3.shown}</td></tr>
+<tr><td>qArray5Point_4</td><td>{INSERTANS:14272X54X9364}</td><td>{qArray5Point_4.shown}</td></tr>
+<tr><td>qArray5Point_5</td><td>{INSERTANS:14272X54X9365}</td><td>{qArray5Point_5.shown}</td></tr>
+<tr><td>qArray5Point_6</td><td>{INSERTANS:14272X54X9366}</td><td>{qArray5Point_6.shown}</td></tr>
+<tr><td>qArrayISD_1</td><td>{INSERTANS:14272X54X9371}</td><td>{qArrayISD_1.shown}</td></tr>
+<tr><td>qArrayISD_2</td><td>{INSERTANS:14272X54X9372}</td><td>{qArrayISD_2.shown}</td></tr>
+<tr><td>qArrayISD_3</td><td>{INSERTANS:14272X54X9373}</td><td>{qArrayISD_3.shown}</td></tr>
+<tr><td>qArrayISD_4</td><td>{INSERTANS:14272X54X9374}</td><td>{qArrayISD_4.shown}</td></tr>
+<tr><td>qArrayISD_5</td><td>{INSERTANS:14272X54X9375}</td><td>{qArrayISD_5.shown}</td></tr>
+<tr><td>qArrayISD_6</td><td>{INSERTANS:14272X54X9376}</td><td>{qArrayISD_6.shown}</td></tr>
+<tr><td>qArrayISD_7</td><td>{INSERTANS:14272X54X9377}</td><td>{qArrayISD_7.shown}</td></tr>
+<tr><td>qArrayNumbers_ls1_min</td><td>{INSERTANS:14272X54X938ls1_min}</td><td>{qArrayNumbers_ls1_min.shown}</td></tr>
+<tr><td>qArrayNumbers_ls1_max</td><td>{INSERTANS:14272X54X938ls1_max}</td><td>{qArrayNumbers_ls1_max.shown}</td></tr>
+<tr><td>qArrayNumbers_ls1_avg</td><td>{INSERTANS:14272X54X938ls1_avg}</td><td>{qArrayNumbers_ls1_avg.shown}</td></tr>
+<tr><td>qArrayNumbers_todo_min</td><td>{INSERTANS:14272X54X938todo_min}</td><td>{qArrayNumbers_todo_min.shown}</td></tr>
+<tr><td>qArrayNumbers_todo_max</td><td>{INSERTANS:14272X54X938todo_max}</td><td>{qArrayNumbers_todo_max.shown}</td></tr>
+<tr><td>qArrayNumbers_todo_avg</td><td>{INSERTANS:14272X54X938todo_avg}</td><td>{qArrayNumbers_todo_avg.shown}</td></tr>
+<tr><td>qArrayNumbers_honey_min</td><td>{INSERTANS:14272X54X938honey_min}</td><td>{qArrayNumbers_honey_min.shown}</td></tr>
+<tr><td>qArrayNumbers_honey_max</td><td>{INSERTANS:14272X54X938honey_max}</td><td>{qArrayNumbers_honey_max.shown}</td></tr>
+<tr><td>qArrayNumbers_honey_avg</td><td>{INSERTANS:14272X54X938honey_avg}</td><td>{qArrayNumbers_honey_avg.shown}</td></tr>
+<tr><td>qArrayNumbers_econ_min</td><td>{INSERTANS:14272X54X938econ_min}</td><td>{qArrayNumbers_econ_min.shown}</td></tr>
+<tr><td>qArrayNumbers_econ_max</td><td>{INSERTANS:14272X54X938econ_max}</td><td>{qArrayNumbers_econ_max.shown}</td></tr>
+<tr><td>qArrayNumbers_econ_avg</td><td>{INSERTANS:14272X54X938econ_avg}</td><td>{qArrayNumbers_econ_avg.shown}</td></tr>
+<tr><td>qArrayTexts_hp_1st</td><td>{INSERTANS:14272X54X939hp_1st}</td><td>{qArrayTexts_hp_1st.shown}</td></tr>
+<tr><td>qArrayTexts_hp_2nd</td><td>{INSERTANS:14272X54X939hp_2nd}</td><td>{qArrayTexts_hp_2nd.shown}</td></tr>
+<tr><td>qArrayTexts_hp_3rd</td><td>{INSERTANS:14272X54X939hp_3rd}</td><td>{qArrayTexts_hp_3rd.shown}</td></tr>
+<tr><td>qArrayTexts_st_1st</td><td>{INSERTANS:14272X54X939st_1st}</td><td>{qArrayTexts_st_1st.shown}</td></tr>
+<tr><td>qArrayTexts_st_2nd</td><td>{INSERTANS:14272X54X939st_2nd}</td><td>{qArrayTexts_st_2nd.shown}</td></tr>
+<tr><td>qArrayTexts_st_3rd</td><td>{INSERTANS:14272X54X939st_3rd}</td><td>{qArrayTexts_st_3rd.shown}</td></tr>
+<tr><td>qArrayTexts_sw_1st</td><td>{INSERTANS:14272X54X939sw_1st}</td><td>{qArrayTexts_sw_1st.shown}</td></tr>
+<tr><td>qArrayTexts_sw_2nd</td><td>{INSERTANS:14272X54X939sw_2nd}</td><td>{qArrayTexts_sw_2nd.shown}</td></tr>
+<tr><td>qArrayTexts_sw_3rd</td><td>{INSERTANS:14272X54X939sw_3rd}</td><td>{qArrayTexts_sw_3rd.shown}</td></tr>
+<tr><td>qArrayYNU_1</td><td>{INSERTANS:14272X54X9401}</td><td>{qArrayYNU_1.shown}</td></tr>
+<tr><td>qArrayYNU_2</td><td>{INSERTANS:14272X54X9402}</td><td>{qArrayYNU_2.shown}</td></tr>
+<tr><td>qArrayYNU_3</td><td>{INSERTANS:14272X54X9403}</td><td>{qArrayYNU_3.shown}</td></tr>
+<tr><td>qArrayYNU_4</td><td>{INSERTANS:14272X54X9404}</td><td>{qArrayYNU_4.shown}</td></tr>
+<tr><td>qArrayYNU_5</td><td>{INSERTANS:14272X54X9405}</td><td>{qArrayYNU_5.shown}</td></tr>
+<tr><td>qArrayByColumn_1</td><td>{INSERTANS:14272X54X9411}</td><td>{qArrayByColumn_1.shown}</td></tr>
+<tr><td>qArrayByColumn_2</td><td>{INSERTANS:14272X54X9412}</td><td>{qArrayByColumn_2.shown}</td></tr>
+<tr><td>qArrayByColumn_3</td><td>{INSERTANS:14272X54X9413}</td><td>{qArrayByColumn_3.shown}</td></tr>
+<tr><td>qArrayByColumn_4</td><td>{INSERTANS:14272X54X9414}</td><td>{qArrayByColumn_4.shown}</td></tr>
+<tr><td>qArrayByColumn_5</td><td>{INSERTANS:14272X54X9415}</td><td>{qArrayByColumn_5.shown}</td></tr>
+<tr><td>qArrayDualScale_money_0</td><td>{INSERTANS:14272X54X942money#0}</td><td>{qArrayDualScale_money_0.shown}</td></tr>
+<tr><td>qArrayDualScale_money_1</td><td>{INSERTANS:14272X54X942money#1}</td><td>{qArrayDualScale_money_1.shown}</td></tr>
+<tr><td>qArrayDualScale_health_0</td><td>{INSERTANS:14272X54X942health#0}</td><td>{qArrayDualScale_health_0.shown}</td></tr>
+<tr><td>qArrayDualScale_health_1</td><td>{INSERTANS:14272X54X942health#1}</td><td>{qArrayDualScale_health_1.shown}</td></tr>
+<tr><td>qArrayDualScale_md_0</td><td>{INSERTANS:14272X54X942md#0}</td><td>{qArrayDualScale_md_0.shown}</td></tr>
+<tr><td>qArrayDualScale_md_1</td><td>{INSERTANS:14272X54X942md#1}</td><td>{qArrayDualScale_md_1.shown}</td></tr>
+<tr><td>qDate</td><td>{INSERTANS:14272X54X943}</td><td>{qDate.shown}</td></tr>
+<tr><td>qFileUpload</td><td>{INSERTANS:14272X54X944}</td><td>{qFileUpload.shown}</td></tr>
+<tr><td>qFileUpload_filecount</td><td>{INSERTANS:14272X54X944_filecount}</td><td>{qFileUpload_filecount.shown}</td></tr>
+<tr><td>qGender</td><td>{INSERTANS:14272X54X945}</td><td>{qGender.shown}</td></tr>
+<tr><td>qLanguage</td><td>{INSERTANS:14272X54X946}</td><td>{qLanguage.shown}</td></tr>
+<tr><td>qMultipleNumerical_self</td><td>{INSERTANS:14272X54X947self}</td><td>{qMultipleNumerical_self.shown}</td></tr>
+<tr><td>qMultipleNumerical_mom</td><td>{INSERTANS:14272X54X947mom}</td><td>{qMultipleNumerical_mom.shown}</td></tr>
+<tr><td>qMultipleNumerical_dad</td><td>{INSERTANS:14272X54X947dad}</td><td>{qMultipleNumerical_dad.shown}</td></tr>
+<tr><td>qNumerical</td><td>{INSERTANS:14272X54X948}</td><td>{qNumerical.shown}</td></tr>
+<tr><td>qRanking_1</td><td>{INSERTANS:14272X54X9491}</td><td>{qRanking_1.shown}</td></tr>
+<tr><td>qRanking_2</td><td>{INSERTANS:14272X54X9492}</td><td>{qRanking_2.shown}</td></tr>
+<tr><td>qRanking_3</td><td>{INSERTANS:14272X54X9493}</td><td>{qRanking_3.shown}</td></tr>
+<tr><td>qRanking_4</td><td>{INSERTANS:14272X54X9494}</td><td>{qRanking_4.shown}</td></tr>
+<tr><td>qTextDisplay</td><td>{INSERTANS:14272X54X950}</td><td>{qTextDisplay.shown}</td></tr>
+<tr><td>qYesNo</td><td>{INSERTANS:14272X54X951}</td><td>{qYesNo.shown}</td></tr>
+<tr><td>qHugeText</td><td>{INSERTANS:14272X54X952}</td><td>{qHugeText.shown}</td></tr>
+<tr><td>qLongText</td><td>{INSERTANS:14272X54X953}</td><td>{qLongText.shown}</td></tr>
+<tr><td>qMultipleShort_friend</td><td>{INSERTANS:14272X54X954friend}</td><td>{qMultipleShort_friend.shown}</td></tr>
+<tr><td>qMultipleShort_family</td><td>{INSERTANS:14272X54X954family}</td><td>{qMultipleShort_family.shown}</td></tr>
+<tr><td>qMultipleShort_work</td><td>{INSERTANS:14272X54X954work}</td><td>{qMultipleShort_work.shown}</td></tr>
+<tr><td>qShort</td><td>{INSERTANS:14272X54X955}</td><td>{qShort.shown}</td></tr>
+<tr><td>qMultipleChoice_Hawaii</td><td>{INSERTANS:14272X54X956Hawaii}</td><td>{qMultipleChoice_Hawaii.shown}</td></tr>
+<tr><td>qMultipleChoice_Bahamas</td><td>{INSERTANS:14272X54X956Bahamas}</td><td>{qMultipleChoice_Bahamas.shown}</td></tr>
+<tr><td>qMultipleChoice_Europe</td><td>{INSERTANS:14272X54X956Europe}</td><td>{qMultipleChoice_Europe.shown}</td></tr>
+<tr><td>qMultipleChoice_NewZealand</td><td>{INSERTANS:14272X54X956NewZealand}</td><td>{qMultipleChoice_NewZealand.shown}</td></tr>
+<tr><td>qMultChoiceComment_junk</td><td>{INSERTANS:14272X54X957junk}</td><td>{qMultChoiceComment_junk.shown}</td></tr>
+<tr><td>qMultChoiceComment_junkcomment</td><td>{INSERTANS:14272X54X957junkcomment}</td><td>{qMultChoiceComment_junkcomment.shown}</td></tr>
+<tr><td>qMultChoiceComment_rtv</td><td>{INSERTANS:14272X54X957rtv}</td><td>{qMultChoiceComment_rtv.shown}</td></tr>
+<tr><td>qMultChoiceComment_rtvcomment</td><td>{INSERTANS:14272X54X957rtvcomment}</td><td>{qMultChoiceComment_rtvcomment.shown}</td></tr>
+<tr><td>qMultChoiceComment_ex</td><td>{INSERTANS:14272X54X957ex}</td><td>{qMultChoiceComment_ex.shown}</td></tr>
+<tr><td>qMultChoiceComment_excomment</td><td>{INSERTANS:14272X54X957excomment}</td><td>{qMultChoiceComment_excomment.shown}</td></tr>
</table>]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
View
352 docs/demosurveys/ls2_countifop_sumifop.lss
@@ -68,94 +68,94 @@
<title><![CDATA[an]]></title>
<question><![CDATA[Enter some numbers and see some calculations about them in the Help section]]></question>
<preg><![CDATA[]]></preg>
- <help><![CDATA[<table border="1" cellpadding="1" cellspacing="1" style="width: 500px; ">
- <thead>
- <tr>
- <th scope="col">
- Purpose</th>
- <th scope="col">
- Equation</th>
- <th scope="col">
- Result</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- # answered</td>
- <td>
- count(self)</td>
- <td>
- {count(self)}</td>
- </tr>
- <tr>
- <td>
- grand total</td>
- <td>
- sum(self)</td>
- <td>
- {sum(self)}</td>
- </tr>
- <tr>
- <td>
- # answered in column C</td>
- <td>
- count(self.sq_C)</td>
- <td>
- {count(self.sq_C)}</td>
- </tr>
- <tr>
- <td>
- sum of column C</td>
- <td>
- sum(self.sq_C)</td>
- <td>
- {sum(self.sq_C)}</td>
- </tr>
- <tr>
- <td>
- sum of columns B-D</td>
- <td>
- sum(self.sq_B.sq_C.sq_D)</td>
- <td>
- {sum(self.sq_B.sq_C.sq_D)}</td>
- </tr>
- <tr>
- <td>
- # of negative values</td>
- <td>
- countifop("lt",0,self)</td>
- <td>
- {countifop("lt",0,self)}</td>
- </tr>
- <tr>
- <td>
- sum of positive values</td>
- <td>
- sumifop("gt",0,self)</td>
- <td>
- {sumifop("gt",0,self)}</td>
- </tr>
- <tr>
- <td>
- count of even numbers</td>
- <td>
- countifop("RX","/[02468]$/",self)</td>
- <td>
- {countifop("RX","/[02468]$/",self)}</td>
- </tr>
- <tr>
- <td>
- sum of odd numbers</td>
- <td>
- sumifop("RX","/[13579]$/",self)</td>
- <td>
- {sumifop("RX","/[13579]$/",self)}</td>
- </tr>
- </tbody>
-</table>
-<p>
-  </p>
+ <help><![CDATA[<table border="1" cellpadding="1" cellspacing="1" style="width: 500px; ">
+ <thead>
+ <tr>
+ <th scope="col">
+ Purpose</th>
+ <th scope="col">
+ Equation</th>
+ <th scope="col">
+ Result</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ # answered</td>
+ <td>
+ count(self)</td>
+ <td>
+ {count(self)}</td>
+ </tr>
+ <tr>
+ <td>
+ grand total</td>
+ <td>
+ sum(self)</td>
+ <td>
+ {sum(self)}</td>
+ </tr>
+ <tr>
+ <td>
+ # answered in column C</td>
+ <td>
+ count(self.sq_C)</td>
+ <td>
+ {count(self.sq_C)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of column C</td>
+ <td>
+ sum(self.sq_C)</td>
+ <td>
+ {sum(self.sq_C)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of columns B-D</td>
+ <td>
+ sum(self.sq_B.sq_C.sq_D)</td>
+ <td>
+ {sum(self.sq_B.sq_C.sq_D)}</td>
+ </tr>
+ <tr>
+ <td>
+ # of negative values</td>
+ <td>
+ countifop("lt",0,self)</td>
+ <td>
+ {countifop("lt",0,self)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of positive values</td>
+ <td>
+ sumifop("gt",0,self)</td>
+ <td>
+ {sumifop("gt",0,self)}</td>
+ </tr>
+ <tr>
+ <td>
+ count of even numbers</td>
+ <td>
+ countifop("RX","/[02468]$/",self)</td>
+ <td>
+ {countifop("RX","/[02468]$/",self)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of odd numbers</td>
+ <td>
+ sumifop("RX","/[13579]$/",self)</td>
+ <td>
+ {sumifop("RX","/[13579]$/",self)}</td>
+ </tr>
+ </tbody>
+</table>
+<p>
+  </p>
]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
@@ -172,94 +172,94 @@
<gid><![CDATA[790]]></gid>
<type><![CDATA[X]]></type>
<title><![CDATA[result]]></title>
- <question><![CDATA[<table border="1" cellpadding="1" cellspacing="1" style="width: 500px; ">
- <thead>
- <tr>
- <th scope="col">
- Purpose</th>
- <th scope="col">
- Equation</th>
- <th scope="col">
- Result</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- # answered</td>
- <td>
- count(that.an)</td>
- <td>
- {count(that.an)}</td>
- </tr>
- <tr>
- <td>
- grand total</td>
- <td>
- sum(that.an)</td>
- <td>
- {sum(that.an)}</td>
- </tr>
- <tr>
- <td>
- # answered in column C</td>
- <td>
- count(that.an.sq_C)</td>
- <td>
- {count(that.an.sq_C)}</td>
- </tr>
- <tr>
- <td>
- sum of column C</td>
- <td>
- sum(that.an.sq_C)</td>
- <td>
- {sum(that.an.sq_C)}</td>
- </tr>
- <tr>
- <td>
- sum of columns B-D</td>
- <td>
- sum(that.an.sq_B.sq_C.sq_D)</td>
- <td>
- {sum(that.an.sq_B.sq_C.sq_D)}</td>
- </tr>
- <tr>
- <td>
- # of negative values</td>
- <td>
- countifop("lt",0,that.an)</td>
- <td>
- {countifop("lt",0,that.an)}</td>
- </tr>
- <tr>
- <td>
- sum of positive values</td>
- <td>
- sumifop("gt",0,that.an)</td>
- <td>
- {sumifop("gt",0,that.an)}</td>
- </tr>
- <tr>
- <td>
- count of even numbers</td>
- <td>
- countifop("RX","/[02468]$/",that.an)</td>
- <td>
- {countifop("RX","/[02468]$/",that.an)}</td>
- </tr>
- <tr>
- <td>
- sum of odd numbers</td>
- <td>
- sumifop("RX","/[13579]$/",that.an)</td>
- <td>
- {sumifop("RX","/[13579]$/",that.an)}</td>
- </tr>
- </tbody>
-</table>
-<p>
-  </p>
+ <question><![CDATA[<table border="1" cellpadding="1" cellspacing="1" style="width: 500px; ">
+ <thead>
+ <tr>
+ <th scope="col">
+ Purpose</th>
+ <th scope="col">
+ Equation</th>
+ <th scope="col">
+ Result</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ # answered</td>
+ <td>
+ count(that.an)</td>
+ <td>
+ {count(that.an)}</td>
+ </tr>
+ <tr>
+ <td>
+ grand total</td>
+ <td>
+ sum(that.an)</td>
+ <td>
+ {sum(that.an)}</td>
+ </tr>
+ <tr>
+ <td>
+ # answered in column C</td>
+ <td>
+ count(that.an.sq_C)</td>
+ <td>
+ {count(that.an.sq_C)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of column C</td>
+ <td>
+ sum(that.an.sq_C)</td>
+ <td>
+ {sum(that.an.sq_C)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of columns B-D</td>
+ <td>
+ sum(that.an.sq_B.sq_C.sq_D)</td>
+ <td>
+ {sum(that.an.sq_B.sq_C.sq_D)}</td>
+ </tr>
+ <tr>
+ <td>
+ # of negative values</td>
+ <td>
+ countifop("lt",0,that.an)</td>
+ <td>
+ {countifop("lt",0,that.an)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of positive values</td>
+ <td>
+ sumifop("gt",0,that.an)</td>
+ <td>
+ {sumifop("gt",0,that.an)}</td>
+ </tr>
+ <tr>
+ <td>
+ count of even numbers</td>
+ <td>
+ countifop("RX","/[02468]$/",that.an)</td>
+ <td>
+ {countifop("RX","/[02468]$/",that.an)}</td>
+ </tr>
+ <tr>
+ <td>
+ sum of odd numbers</td>
+ <td>
+ sumifop("RX","/[13579]$/",that.an)</td>
+ <td>
+ {sumifop("RX","/[13579]$/",that.an)}</td>
+ </tr>
+ </tbody>
+</table>
+<p>
+  </p>
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
View
48 docs/demosurveys/ls2_em_tailoring.lss
@@ -201,7 +201,7 @@
<sid><![CDATA[36849]]></sid>
<group_name><![CDATA[Hidden Equations to Compute BMI]]></group_name>
<group_order><![CDATA[0]]></group_order>
- <description><![CDATA[This computes your body mass index (BMI) and tells you your weight status.<br/>
+ <description><![CDATA[This computes your body mass index (BMI) and tells you your weight status.<br/>
It demonstrates the use of hidden Equation-type questions, whose values are stored in the database even though hidden on the screen.]]></description>
<language><![CDATA[en]]></language>
<randomization_group><![CDATA[]]></randomization_group>
@@ -635,27 +635,27 @@ It demonstrates the use of hidden Equation-type questions, whose values are stor
<gid><![CDATA[70]]></gid>
<type><![CDATA[X]]></type>
<title><![CDATA[report]]></title>
- <question><![CDATA[Here is what you said about {city}, where you have lived for {yearsThere} years:</br>
-
-<table border='1'>
-<tr><th>#</th><th>Question</th><th>Code</th><th>Value</th><th>Shown</th></tr>
-<tr><td>{city.qid}</td><td>{city.question}</td><td>{city}</td><td>{city.value}</td><td>{city.shown}</td></tr>
-<tr><td>{yearsThere.qid}</td><td>{yearsThere.question}</td><td>{yearsThere}</td><td>{yearsThere.value}</td><td>{yearsThere.shown}</td></tr>
-<tr><td>{ranking_1.qid}</td><td>{ranking_1.question}</td><td>{ranking_1}</td><td>{ranking_1.value}</td><td>{ranking_1.shown}</td></tr>
-<tr><td>{ranking_2.qid}</td><td>{ranking_2.question}</td><td>{ranking_2}</td><td>{ranking_2.value}</td><td>{ranking_2.shown}</td></tr>
-<tr><td>{ranking_3.qid}</td><td>{ranking_3.question}</td><td>{ranking_3}</td><td>{ranking_3.value}</td><td>{ranking_3.shown}</td></tr>
-<tr><td>{ranking_4.qid}</td><td>{ranking_4.question}</td><td>{ranking_4}</td><td>{ranking_4.value}</td><td>{ranking_4.shown}</td></tr>
-<tr><td>{opinions_tax.qid}</td><td>{opinions_tax.question}</td><td>{opinions_tax}</td><td>{opinions_tax.value}</td><td>{opinions_tax.shown}</td></tr>
-<tr><td>{opinions_srv.qid}</td><td>{opinions_srv.question}</td><td>{opinions_srv}</td><td>{opinions_srv.value}</td><td>{opinions_srv.shown}</td></tr>
-<tr><td>{opinions_evt.qid}</td><td>{opinions_evt.question}</td><td>{opinions_evt}</td><td>{opinions_evt.value}</td><td>{opinions_evt.shown}</td></tr>
-<tr><td>{worries_taxes_0.qid}</td><td>{worries_taxes_0.question}</td><td>{worries_taxes_0}</td><td>{worries_taxes_0.value}</td><td>{worries_taxes_0.shown}</td></tr>
-<tr><td>{worries_taxes_1.qid}</td><td>{worries_taxes_1.question}</td><td>{worries_taxes_1}</td><td>{worries_taxes_1.value}</td><td>{worries_taxes_1.shown}</td></tr>
-<tr><td>{worries_smog_0.qid}</td><td>{worries_smog_0.question}</td><td>{worries_smog_0}</td><td>{worries_smog_0.value}</td><td>{worries_smog_0.shown}</td></tr>
-<tr><td>{worries_smog_1.qid}</td><td>{worries_smog_1.question}</td><td>{worries_smog_1}</td><td>{worries_smog_1.value}</td><td>{worries_smog_1.shown}</td></tr>
-<tr><td>{worries_trans_0.qid}</td><td>{worries_trans_0.question}</td><td>{worries_trans_0}</td><td>{worries_trans_0.value}</td><td>{worries_trans_0.shown}</td></tr>
-<tr><td>{worries_trans_1.qid}</td><td>{worries_trans_1.question}</td><td>{worries_trans_1}</td><td>{worries_trans_1.value}</td><td>{worries_trans_1.shown}</td></tr>
-</table>
-Is this correct?
+ <question><![CDATA[Here is what you said about {city}, where you have lived for {yearsThere} years:</br>
+
+<table border='1'>
+<tr><th>#</th><th>Question</th><th>Code</th><th>Value</th><th>Shown</th></tr>
+<tr><td>{city.qid}</td><td>{city.question}</td><td>{city}</td><td>{city.value}</td><td>{city.shown}</td></tr>
+<tr><td>{yearsThere.qid}</td><td>{yearsThere.question}</td><td>{yearsThere}</td><td>{yearsThere.value}</td><td>{yearsThere.shown}</td></tr>
+<tr><td>{ranking_1.qid}</td><td>{ranking_1.question}</td><td>{ranking_1}</td><td>{ranking_1.value}</td><td>{ranking_1.shown}</td></tr>
+<tr><td>{ranking_2.qid}</td><td>{ranking_2.question}</td><td>{ranking_2}</td><td>{ranking_2.value}</td><td>{ranking_2.shown}</td></tr>
+<tr><td>{ranking_3.qid}</td><td>{ranking_3.question}</td><td>{ranking_3}</td><td>{ranking_3.value}</td><td>{ranking_3.shown}</td></tr>
+<tr><td>{ranking_4.qid}</td><td>{ranking_4.question}</td><td>{ranking_4}</td><td>{ranking_4.value}</td><td>{ranking_4.shown}</td></tr>
+<tr><td>{opinions_tax.qid}</td><td>{opinions_tax.question}</td><td>{opinions_tax}</td><td>{opinions_tax.value}</td><td>{opinions_tax.shown}</td></tr>
+<tr><td>{opinions_srv.qid}</td><td>{opinions_srv.question}</td><td>{opinions_srv}</td><td>{opinions_srv.value}</td><td>{opinions_srv.shown}</td></tr>
+<tr><td>{opinions_evt.qid}</td><td>{opinions_evt.question}</td><td>{opinions_evt}</td><td>{opinions_evt.value}</td><td>{opinions_evt.shown}</td></tr>
+<tr><td>{worries_taxes_0.qid}</td><td>{worries_taxes_0.question}</td><td>{worries_taxes_0}</td><td>{worries_taxes_0.value}</td><td>{worries_taxes_0.shown}</td></tr>
+<tr><td>{worries_taxes_1.qid}</td><td>{worries_taxes_1.question}</td><td>{worries_taxes_1}</td><td>{worries_taxes_1.value}</td><td>{worries_taxes_1.shown}</td></tr>
+<tr><td>{worries_smog_0.qid}</td><td>{worries_smog_0.question}</td><td>{worries_smog_0}</td><td>{worries_smog_0.value}</td><td>{worries_smog_0.shown}</td></tr>
+<tr><td>{worries_smog_1.qid}</td><td>{worries_smog_1.question}</td><td>{worries_smog_1}</td><td>{worries_smog_1.value}</td><td>{worries_smog_1.shown}</td></tr>
+<tr><td>{worries_trans_0.qid}</td><td>{worries_trans_0.question}</td><td>{worries_trans_0}</td><td>{worries_trans_0.value}</td><td>{worries_trans_0.shown}</td></tr>
+<tr><td>{worries_trans_1.qid}</td><td>{worries_trans_1.question}</td><td>{worries_trans_1}</td><td>{worries_trans_1.value}</td><td>{worries_trans_1.shown}</td></tr>
+</table>
+Is this correct?
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -826,8 +826,8 @@ Is this correct?
<gid><![CDATA[72]]></gid>
<type><![CDATA[X]]></type>
<title><![CDATA[Report]]></title>
- <question><![CDATA[You said you are {height} {height_units.shown} tall, and weigh {weight} {weight_units.shown}.<br/>
-Your Body Mass Index (BMI) is {round(BMI,2)}.<br />
+ <question><![CDATA[You said you are {height} {height_units.shown} tall, and weigh {weight} {weight_units.shown}.<br/>
+Your Body Mass Index (BMI) is {round(BMI,2)}.<br />
Assuming you are an adult, you are {weight_status}.]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
View
26 docs/demosurveys/ls2_em_validation_q.lss
@@ -1390,9 +1390,9 @@
<row>
<qid><![CDATA[16693]]></qid>
<attribute><![CDATA[em_validation_q]]></attribute>
- <value><![CDATA[countif("1",self)==1 && countif("2",self)==1 &&
-countif("3",self)==1 &&
-countif("4",self)==1 &&
+ <value><![CDATA[countif("1",self)==1 && countif("2",self)==1 &&
+countif("3",self)==1 &&
+countif("4",self)==1 &&
countif("5",self)==1]]></value>
</row>
<row>
@@ -1753,16 +1753,16 @@ countif("5",self)==1]]></value>
<surveyls_survey_id><![CDATA[14861]]></surveyls_survey_id>
<surveyls_language><![CDATA[en]]></surveyls_language>
<surveyls_title><![CDATA[em_validation_q]]></surveyls_title>
- <surveyls_description><![CDATA[<p>
- This survey demonstrates the use of:</p>
-<ul>
- <li>
- <a href="http://docs.limesurvey.org/Advanced+question+settings#Whole_question_validation_equation">Whole question validation</a> (which now works for more question types)</li>
- <li>
- Using the <a href="http://docs.limesurvey.org/Expression+Manager#The_reserved_this_self_and_that_variables">'self' variable</a> within those validation equations</li>
- <li>
- Creating a multiple forced choice array (must pick one from each column)</li>
-</ul>
+ <surveyls_description><![CDATA[<p>
+ This survey demonstrates the use of:</p>
+<ul>
+ <li>
+ <a href="http://docs.limesurvey.org/Advanced+question+settings#Whole_question_validation_equation">Whole question validation</a> (which now works for more question types)</li>
+ <li>
+ Using the <a href="http://docs.limesurvey.org/Expression+Manager#The_reserved_this_self_and_that_variables">'self' variable</a> within those validation equations</li>
+ <li>
+ Creating a multiple forced choice array (must pick one from each column)</li>
+</ul>
]]></surveyls_description>
<surveyls_welcometext><![CDATA[]]></surveyls_welcometext>
<surveyls_endtext><![CDATA[]]></surveyls_endtext>
View
338 docs/demosurveys/ls2_self_and_that.lss
@@ -22,7 +22,7 @@
<sid><![CDATA[12947]]></sid>
<group_name><![CDATA[G1]]></group_name>
<group_order><![CDATA[0]]></group_order>
- <description><![CDATA[<i>self.suffix</i> is internally expanded to a comma-separated list of all variable names for the current question. Thus, it is useful for functions that take a variable number of arguments, like sum(), count(), min(), max(), and implode().<br/>
+ <description><![CDATA[<i>self.suffix</i> is internally expanded to a comma-separated list of all variable names for the current question. Thus, it is useful for functions that take a variable number of arguments, like sum(), count(), min(), max(), and implode().<br/>
<i>that.suffix</i> is also expanded.]]></description>
<language><![CDATA[en]]></language>
<randomization_group><![CDATA[]]></randomization_group>
@@ -59,12 +59,12 @@
<title><![CDATA[q1]]></title>
<question><![CDATA[Enter some numbers]]></question>
<preg><![CDATA[]]></preg>
- <help><![CDATA[count = {count(self.NAOK)}<br/>
-sum = {sum(self.NAOK)}<br/>
-min = {min(self.NAOK)}<br/>
-max = {max(self.NAOK)}<br/>
-list = {list(self.NAOK)}<br/>
-stddev = {stddev(self.NAOK)}<br/>
+ <help><![CDATA[count = {count(self.NAOK)}<br/>
+sum = {sum(self.NAOK)}<br/>
+min = {min(self.NAOK)}<br/>
+max = {max(self.NAOK)}<br/>
+list = {list(self.NAOK)}<br/>
+stddev = {stddev(self.NAOK)}<br/>
mean = {if(count(self.NAOK)>0,sum(self.NAOK) / count(self.NAOK),'')}]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
@@ -81,122 +81,122 @@ mean = {if(count(self.NAOK)>0,sum(self.NAOK) / count(self.NAOK),'')}]]></help>
<gid><![CDATA[757]]></gid>
<type><![CDATA[X]]></type>
<title><![CDATA[q2]]></title>
- <question><![CDATA[<p>
- Here is what you entered for question 1, along with the row, column and grand totals.</p>
-<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
- <thead>
- <tr>
- <th scope="row">
-  </th>
- <th scope="col">
- A</th>
- <th scope="col">
- B</th>
- <th scope="col">
- C</th>
- <th scope="col">
- Total</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th scope="row">
- 1</th>
- <td>
- {q1_1_A}</td>
- <td>
- {q1_1_B}</td>
- <td>
- {q1_1_C}</td>
- <td>
- <span style="background-color:#d3d3d3;">{sum(that.q1.sq_1)}</span></td>
- </tr>
- <tr>
- <th scope="row">
- 2</th>
- <td>
- {q1_2_A}</td>
- <td>
- {q1_2_B}</td>
- <td>
- {q1_2_C}</td>
- <td>
- <span style="background-color:#d3d3d3;">{sum(that.q1.sq_2)}</span></td>
- </tr>
- <tr>
- <th scope="row">
- 3</th>
- <td>
- {q1_3_A}</td>
- <td>
- {q1_3_B}</td>
- <td>
- {q1_3_C}</td>
- <td>
- <span style="background-color:#d3d3d3;">{sum(that.q1.sq_3)}</span></td>
- </tr>
- <tr>
- <th scope="row">
- Total</th>
- <td>
- <span style="background-color:#d3d3d3;">{sum(that.q1.sq_A)}</span></td>
- <td>
- <span style="background-color:#d3d3d3;">{sum(that.q1.sq_B)}</span></td>
- <td>
- <span style="background-color:#d3d3d3;">{sum(that.q1.sq_C)}</span></td>
- <td>
- <span style="background-color:#d3d3d3;">{sum(that.q1)}</span></td>
- </tr>
- </tbody>
-</table>
-<p>
-  </p>
+ <question><![CDATA[<p>
+ Here is what you entered for question 1, along with the row, column and grand totals.</p>
+<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
+ <thead>
+ <tr>
+ <th scope="row">
+  </th>
+ <th scope="col">
+ A</th>
+ <th scope="col">
+ B</th>
+ <th scope="col">
+ C</th>
+ <th scope="col">
+ Total</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th scope="row">
+ 1</th>
+ <td>
+ {q1_1_A}</td>
+ <td>
+ {q1_1_B}</td>
+ <td>
+ {q1_1_C}</td>
+ <td>
+ <span style="background-color:#d3d3d3;">{sum(that.q1.sq_1)}</span></td>
+ </tr>
+ <tr>
+ <th scope="row">
+ 2</th>
+ <td>
+ {q1_2_A}</td>
+ <td>
+ {q1_2_B}</td>
+ <td>
+ {q1_2_C}</td>
+ <td>
+ <span style="background-color:#d3d3d3;">{sum(that.q1.sq_2)}</span></td>
+ </tr>
+ <tr>
+ <th scope="row">
+ 3</th>
+ <td>
+ {q1_3_A}</td>
+ <td>
+ {q1_3_B}</td>
+ <td>
+ {q1_3_C}</td>
+ <td>
+ <span style="background-color:#d3d3d3;">{sum(that.q1.sq_3)}</span></td>
+ </tr>
+ <tr>
+ <th scope="row">
+ Total</th>
+ <td>
+ <span style="background-color:#d3d3d3;">{sum(that.q1.sq_A)}</span></td>
+ <td>
+ <span style="background-color:#d3d3d3;">{sum(that.q1.sq_B)}</span></td>
+ <td>
+ <span style="background-color:#d3d3d3;">{sum(that.q1.sq_C)}</span></td>
+ <td>
+ <span style="background-color:#d3d3d3;">{sum(that.q1)}</span></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+  </p>
]]></question>
<preg><![CDATA[]]></preg>
- <help><![CDATA[<p>
- This is only shown if you answered q1 (e.g. relevance = <span style="background-color:#d3d3d3;">{ count(that.q1)>0 }</span>)</p>
-<p>
- Note that you can use multiple sub-selectors on <em>self</em> and <em>that</em>.  You can also use the <em>nosq</em> selector to select all columns or rows that do not match the desired pattern.</p>
-<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
- <thead>
- <tr>
- <th scope="col">
- Goal</th>
- <th scope="col">
- Syntax</th>
- <th scope="col">
- Result</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- Sum of odd columns</td>
- <td>
- { sum(that.q1.sq_1.sq_3) }</td>
- <td>
- {sum(that.q1.sq_1.sq_3)}</td>
- </tr>
- <tr>
- <td>
- # answered in odd rows</td>
- <td>
- { count(that.q1.nosq_B) }</td>
- <td>
- {count(that.q1.nosq_B)}</td>
- </tr>
- <tr>
- <td>
- Max of values in row 2 and column B</td>
- <td>
- { max(that.q1.sq_2.sq_B) }</td>
- <td>
- {max(that.q1.sq_2.sq_B)}</td>
- </tr>
- </tbody>
-</table>
-<p>
-  </p>
+ <help><![CDATA[<p>
+ This is only shown if you answered q1 (e.g. relevance = <span style="background-color:#d3d3d3;">{ count(that.q1)>0 }</span>)</p>
+<p>
+ Note that you can use multiple sub-selectors on <em>self</em> and <em>that</em>.  You can also use the <em>nosq</em> selector to select all columns or rows that do not match the desired pattern.</p>
+<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
+ <thead>
+ <tr>
+ <th scope="col">
+ Goal</th>
+ <th scope="col">
+ Syntax</th>
+ <th scope="col">
+ Result</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ Sum of odd columns</td>
+ <td>
+ { sum(that.q1.sq_1.sq_3) }</td>
+ <td>
+ {sum(that.q1.sq_1.sq_3)}</td>
+ </tr>
+ <tr>
+ <td>
+ # answered in odd rows</td>
+ <td>
+ { count(that.q1.nosq_B) }</td>
+ <td>
+ {count(that.q1.nosq_B)}</td>
+ </tr>
+ <tr>
+ <td>
+ Max of values in row 2 and column B</td>
+ <td>
+ { max(that.q1.sq_2.sq_B) }</td>
+ <td>
+ {max(that.q1.sq_2.sq_B)}</td>
+ </tr>
+ </tbody>
+</table>
+<p>
+  </p>
]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
@@ -213,8 +213,8 @@ mean = {if(count(self.NAOK)>0,sum(self.NAOK) / count(self.NAOK),'')}]]></help>
<gid><![CDATA[757]]></gid>
<type><![CDATA[P]]></type>
<title><![CDATA[q3]]></title>
- <question><![CDATA[Multiple choice:<br/>
-how many checked = {count(self.nocomments)}<br/>
+ <question><![CDATA[Multiple choice:<br/>
+how many checked = {count(self.nocomments)}<br/>
comments = {list(self.comments)}<br/>]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[]]></help>
@@ -924,52 +924,52 @@ comments = {list(self.comments)}<br/>]]></question>
<surveyls_language><![CDATA[en]]></surveyls_language>
<surveyls_title><![CDATA[Tests using "self" and "that" variable]]></surveyls_title>
<surveyls_description><![CDATA[These variables make it easier to do assessments and check whether any part of a question has been answered.]]></surveyls_description>
- <surveyls_welcometext><![CDATA[The following syntax is available:<br />
-<ul>
- <li>
-     <em>self</em></li>
- <li>
-     <em>self</em>.<em>suffix</em></li>
- <li>
-     <em>self</em>.<em>sub-selector</em></li>
- <li>
-     <em>self</em>.<em>sub-selector</em>.<em>suffix</em></li>
-</ul>
-<br />
-<em>suffix </em>is any of the normal qcode suffixes (e.g. NAOK, value, shown)<br />
-<em>sub-selector</em> is one of:<br />
-<br />
-    comments - only subquestions that are comments (e.g. from multiple choice with comment and list with comment)<br />
-    nocomments - only subquestions that are not comments<br />
-    sq_X - where X is a row or column identifier. Only sub-questions matching pattern X are selected.<br />
-<br />
-The 'that' variable is like the 'self' variable, but lets you refer to other questions. Its syntax is:<br />
-<ul>
- <li>
-     that.<em>qname</em></li>
- <li>
-     that.<em>qname.suffix</em></li>
- <li>
-     that.<em>qname.sub-selector</em></li>
- <li>
-     that.<em>qname.sub-selector.suffix</em></li>
-</ul>
-<br />
-<em>qname </em>is the question name without any sub-question extensions. So, say you create a question 'q1', that is its qname<br />
-<br />
-Examples:<br />
-<ul>
- <li>
-     Has any part of question q1 been answered? { count(that.q1.NAOK)>0 }</li>
- <li>
-     What is the assessment score for q2? { sum(that.q2.valueNAOK) }</li>
- <li>
-     What is the grand total of q3? { sum(that.q3.NAOK) }</li>
- <li>
-     What is the total of row C in q4? { sum(that.q4.sq_C.NAOK) }</li>
- <li>
-     What is the total of column 2 in q4? { sum(that.q4.sq_2.NAOK) }</li>
-</ul>
+ <surveyls_welcometext><![CDATA[The following syntax is available:<br />
+<ul>
+ <li>
+     <em>self</em></li>
+ <li>
+     <em>self</em>.<em>suffix</em></li>
+ <li>
+     <em>self</em>.<em>sub-selector</em></li>
+ <li>
+     <em>self</em>.<em>sub-selector</em>.<em>suffix</em></li>
+</ul>
+<br />
+<em>suffix </em>is any of the normal qcode suffixes (e.g. NAOK, value, shown)<br />
+<em>sub-selector</em> is one of:<br />
+<br />
+    comments - only subquestions that are comments (e.g. from multiple choice with comment and list with comment)<br />
+    nocomments - only subquestions that are not comments<br />
+    sq_X - where X is a row or column identifier. Only sub-questions matching pattern X are selected.<br />
+<br />
+The 'that' variable is like the 'self' variable, but lets you refer to other questions. Its syntax is:<br />
+<ul>
+ <li>
+     that.<em>qname</em></li>
+ <li>
+     that.<em>qname.suffix</em></li>
+ <li>
+     that.<em>qname.sub-selector</em></li>
+ <li>
+     that.<em>qname.sub-selector.suffix</em></li>
+</ul>
+<br />
+<em>qname </em>is the question name without any sub-question extensions. So, say you create a question 'q1', that is its qname<br />
+<br />
+Examples:<br />
+<ul>
+ <li>
+     Has any part of question q1 been answered? { count(that.q1.NAOK)>0 }</li>
+ <li>
+     What is the assessment score for q2? { sum(that.q2.valueNAOK) }</li>
+ <li>
+     What is the grand total of q3? { sum(that.q3.NAOK) }</li>
+ <li>
+     What is the total of row C in q4? { sum(that.q4.sq_C.NAOK) }</li>
+ <li>
+     What is the total of column 2 in q4? { sum(that.q4.sq_2.NAOK) }</li>
+</ul>
]]></surveyls_welcometext>
<surveyls_endtext><![CDATA[]]></surveyls_endtext>
<surveyls_url><![CDATA[]]></surveyls_url>
View
4 docs/demosurveys/ls2_test_em_sq_validation.lss
@@ -3449,8 +3449,8 @@
<row>
<qid><![CDATA[746]]></qid>
<attribute><![CDATA[em_validation_q]]></attribute>
- <value><![CDATA[(sum(Test_A_1, Test_A_2, Test_A_3, Test_A_4, Test_A_5) <= 3) &&
-(sum(Test_B_1, Test_B_2, Test_B_3, Test_B_4, Test_B_5) <= 3) &&
+ <value><![CDATA[(sum(Test_A_1, Test_A_2, Test_A_3, Test_A_4, Test_A_5) <= 3) &&
+(sum(Test_B_1, Test_B_2, Test_B_3, Test_B_4, Test_B_5) <= 3) &&
(sum(Test_C_1, Test_C_2, Test_C_3, Test_C_4, Test_C_5) <= 3)]]></value>
</row>
<row>

0 comments on commit a0bcbf4

Please sign in to comment.