--- modules/damieng/clean_xml/loncapa.xsd 2015/05/06 20:20:25 1.10 +++ modules/damieng/clean_xml/loncapa.xsd 2017/01/05 16:55:16 1.19 @@ -1,7 +1,17 @@ - + + + - XML schema for LON-CAPA 2 documents. + XML schema for LON-CAPA documents. @@ -137,6 +147,7 @@ + @@ -229,7 +240,6 @@ - @@ -326,6 +336,7 @@ + @@ -718,7 +729,7 @@ - Print options + Set to "nochoice" to avoid the display of the list of option values when printing. @@ -754,6 +765,36 @@ + + + + Set to "nochoice" to omit "Select all that are ... ". + + + + + + + + + + + + + + + + Minimum boxes required to check. + + + + + + + Maximum boxes permitted to check. + + + @@ -1433,7 +1474,28 @@ - + + + + Comma-separated list of libraries. + + The following libraries can be used with Maxima: + absimp, affine, atensor, atrig1, augmented_lagrangian, + contrib_ode, ctensor, descriptive, diag, eigen, facexp, fft, + fourie, functs, ggf, grobner, impdiff, ineq, interpol, + itensor, lapack, lbfgs, lindstedt, linearalgebra, lsquares, + makeOrders, mnewton, mchrpl, ntrig, orthopoly, + quadpack, rducon, romberg, scifac, simplex, solve_rec, + sqdnst, stats, sterling, sym, units, vect, zeilberger + + The following libraries can be used with R: + alr3, boot, car, class, cluster, datasets, Hmisc, + KernSmooth, leaps, lmtest, MASS, methods, mgcv, + nlme, nnet, qAnalyst, quadprog, rpart, SuppDists, + spatial, splines, stats, stats4, survival, tseries, zoo + + + @@ -2189,6 +2251,7 @@ Query for a chemical reaction. + An internal textline element is necessary for the student's response to go in. @@ -2201,11 +2264,24 @@ - + + + + The correct answer. + Chemical reactions use the following syntax: + - Reactants are separated from products by '->'. + - Individual reactants and products are separated by ' +' (leading space is obligatory). + - Numbers preceding the first symbol of a chemical specie are considered to be stoichiometric coefficients. + - Numbers appearing after the first symbol of a chemical specie are considered to be subscripts. + - Superscripts are initialized by '^' and terminated by a space. + - Ionic charges are superscripts composed of a number followed by a sign (i.e. '^2+'). + + + - Initial Reaction + Initial reaction displayed to students. See the answer attribute for the syntax. @@ -2448,6 +2524,14 @@ + + + + Id that will be part of the HTML input element id. + This can be used to get a reference to the input element in Javascript. + + + @@ -2517,7 +2601,12 @@ - The first part of the hint is the condition, which includes a specification of the foil(s) and foil answer(s) required to trigger the hint. The answers specified in the hint condition are compared with the user's submission, and if the condition is met, the hint action included in the conditional hint block will be executed (for example this could be the display of a block of text). You can set multiple hint conditions for a particular problem. Hint conditions are identified by a name. The corresponding hint action includes this hint condition name in the "on" parameter. When a hint condition evaluates to true, the corresponding hint action is triggered. Besides providing hint actions within <hintpart on="NAME"> </hintpart> tags for each named (NAME) hint condition, a hint can be designated for display if none of the conditional hints evaluate to true. The default hint is not displayed if the conditions were met for any of the conditional hints. The default hint action is included between <hintpart on="default"> </hintpart> tags. + This element can either contain a simple hint displayed when the submitted answer for the part is not correct, or a more complex structure to display different hints for different submitted answers. + + To display different hints based on the submitted answer, the hint group has to contain hint conditions (<*hint> elements) and conditional hints (<hintpart> elements). + A hint condition defines the foil(s) and foil answer(s) required to trigger a hint, and has a name attribute to identify it. + A conditional hint (<hintpart>) defines what will be displayed if a particular hint condition is met. It includes a reference to the hint condition in the "on" attribute. + A default conditional hint can be defined by using on="default" in a <hintpart>. The contents of this hint will be displayed if none of the other conditional hints is triggered. @@ -2548,7 +2637,7 @@ Conditional Hint - When a hint element named the same as the on attribute evaluates to be correct, the hintpart will show. + When a hint condition named the same as the on attribute evaluates to be correct, the contents of this element will be displayed. If no other hintpart is to show then all hintparts with an on value set to “default” will show. @@ -2616,11 +2705,11 @@ Radiobutton Hint Condition - The radiobutton hint element takes two parameters: answer and name. The name is the name of the hint condition, and the answer is an array. The first element of the array will be 'foil'; the remaining elements are the names of the foils that you require to have been checked by the student for the hint to be displayed. For example, if you create a radiobutton response problem with six foils named: granite, gabbro, gneiss, shale, sandstone and schist, and you want your hint named: igneous to be displayed when either granite or basalt had been checked your radiobutton hint would be as follows: + The radiobutton hint element takes two attributes: answer and name. The name is the name of the hint condition, and the answer is an array. The first element of the array will be 'foil'; the remaining elements are the names of the foils that you require to have been checked by the student for the hint to be displayed. For example, if you create a radiobutton response problem with six foils named: granite, gabbro, gneiss, shale, sandstone and schist, and you want your hint named: igneous to be displayed when either granite or basalt had been checked your radiobutton hint would be as follows: <radiobuttonhint answer="('foil','granite','gabbro')" name="igneous"></radiobuttonhint> - In order to trigger display of this hint you also need to create a <hintpart> </hintpart> block that will include a textblock that contains the text of the actual hint. + In order to trigger display of this hint you also need to create a hint condition (<hintpart>) that will include the text of the actual hint. @@ -2635,12 +2724,17 @@ - + should be at least a two element list: first the type (foil or concept) and then either the foil name(s) or the concept string(s), e.g., “(’foil’,’greaterthan’,’equal’)” if the condition should be triggered by the foils named “greaterthan” or “equal” + + + + + @@ -2649,7 +2743,10 @@ Option Response Hint Condition - There are two types of option response hint conditions: one for standalone foils and one for concept groups. In both cases the option hint element includes two parameters: answer and name for standalone foils, and concept and name for foils grouped together in a concept group. For the answer parameter, the names and submitted values for each of the foils that are being included in the hint condition are provided in a hash, i.e., in the format: ('Foil1'= > 'True','Foil2'= > 'False'). In the case of a conditional hint for a concept group, the format of the concept parameter is also a hash that links the name of each concept group included in the hint condition to either 'correct' or 'incorrect' - e.g., < optionhint concept="('buoyancy'= > 'correct','density'= > 'correct')" name="fluids" / > If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a student must be correct for the hint action to be triggered. If anything other than 'correct' is provided in the concept hash in the optionhint element then then students answers will be compared with the set answers for the foils in the concept group and as long as at least one answer is incorrect (i.e., the concept group was not correctly answered) then the corresponding hint action will be triggered. + There are two types of option response hint conditions: one for standalone foils and one for concept groups. In both cases the option hint element includes two parameters: answer and name for standalone foils, and concept and name for foils grouped together in a concept group. + For the answer parameter, the names and submitted values for each of the foils that are being included in the hint condition are provided in a hash, i.e., in the format: ('Foil1'=> 'True','Foil2'=> 'False'). + In the case of a conditional hint for a concept group, the format of the concept parameter is also a hash that links the name of each concept group included in the hint condition to either 'correct' or 'incorrect' - e.g., <optionhint concept="('buoyancy'=> 'correct','density'=> 'correct')" name="fluids" />. + If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a student must be correct for the hint action to be triggered. If anything other than 'correct' is provided in the concept hash in the optionhint element then then students answers will be compared with the set answers for the foils in the concept group and as long as at least one answer is incorrect (i.e., the concept group was not correctly answered) then the corresponding hint action will be triggered. @@ -2664,8 +2761,32 @@ - - + + + + Perl hash with foil names as keys and submitted values as values. + Example: ('foil1'=> 'true', 'foil2'=> 'false') + + + + + + + + + + + + Perl hash with concept names as keys and either 'correct' or 'incorrect' as values. + Example: ('buoyancy'=>'correct', 'density'=> 'correct') + + + + + + + + @@ -2819,7 +2940,7 @@ Custom Hint Condition - Define the hint condition within an answer block inside of the customhint block. The condition is defined like how an answer is defined in customresponse where you need to return EXACT ANS to indicate when customhint criteria are met. + Define the hint condition within an answer element inside the customhint element. The condition is defined in the same way an answer is defined in customresponse, where you need to return EXACT_ANS to indicate when the customhint criteria are met. @@ -3076,23 +3197,6 @@ - - - - Draw border for boxes - - - - - - - - - - - - - @@ -3221,48 +3325,6 @@ - - - - Pattern value for boxes - - - - - - - - - - - - - - - - - The density of fill style for boxes - - - - - - - Filled style for boxes - - - - - - - - - - - - - - @@ -3364,6 +3426,37 @@ + + + + Size of major tic marks (plot coordinates) + + + + + + + Size of minor tic mark (plot coordinates) + + + + + + + Draw border for boxes + + + + + + + + + + + + + @@ -3371,20 +3464,48 @@ - + - Size of major tic marks (plot coordinates) + Fill style for boxes + + + + + + + + + + + - + - Size of minor tic mark (plot coordinates) + Density of fill style for boxes + + + + Pattern value for boxes + + + + + + + + + + + + + @@ -5019,13 +5140,19 @@ - + + + + Comma-separated list of options: + reaction: is a reaction (note: setting this option is only useful for the editor, it does not change the resulting image) + border: draws a border around the image + + - - + @@ -5381,6 +5508,7 @@ + @@ -5391,13 +5519,7 @@ - - - - generic metainformation - - - + @@ -5412,7 +5534,7 @@ - + @@ -5424,8 +5546,10 @@ - - + + + + @@ -5458,7 +5582,7 @@ - Document base URI + The HTML Base Element (<base>) specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document. @@ -5467,6 +5591,17 @@ + + + The HTML Meta Element (<meta>) represents any metadata information that cannot be represented by one of the other HTML meta-related elements (<base>, <link>, <script>, <style> or <title>). + + Depending on the attributes set, the kind of metadata can be one of the following: + - If name is set, it is document-level metadata, applying to the whole page. + - If http-equiv is set, it is a pragma directive, i.e. information normally given by the web server about how the - web page should be served. + - If charset is set, it is a charset declaration, i.e. the charset used for the serialized form of the webpage. HTML5 + - if the itemprop is set, a user-defined metadata, transparent for the user-agent as the semantics of the metadata is user-specific. + + @@ -5679,7 +5814,7 @@ - The HTML <body> element represents the content of an HTML document. There is only one <body> element in a document. + The HTML Body Element (<body>) represents the content of an HTML document. There can be only one <body> element in a document. @@ -5739,6 +5874,7 @@ + @@ -5753,6 +5889,7 @@ + @@ -5765,6 +5902,7 @@ + @@ -5919,7 +6057,9 @@ - Unordered list + The HTML unordered list element (<ul>) represents an unordered list of items, namely a collection of items that do not have a numerical ordering, and their order in the list is meaningless. Typically, unordered-list items are displayed with a bullet, which can be of several forms, like a dot, a circle or a squared. The bullet style is not defined in the HTML description of the page, but in its associated CSS, using the list-style-type property. + + There is no limitation to the depth and imbrication of lists defined with the <ol> and <ul> elements. @@ -5969,7 +6109,9 @@ - Ordered list + The HTML <ol> Element (or HTML Ordered List Element) represents an ordered list of items. Typically, ordered-list items are displayed with a preceding numbering, which can be of any form, like numerals, letters or Romans numerals or even simple bullets. This numbered style is not defined in the HTML description of the page, but in its associated CSS, using the list-style-type property. + + There is no limitation to the depth and overlap of lists defined with the <ol> and <ul> elements. @@ -6020,7 +6162,7 @@ - List item + The HTML List Item Element (<li>) is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter. @@ -6555,7 +6697,7 @@ - Inline style + The HTML <span> element is a generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. It should be used only when no other semantic element is appropriate. <span> is very much like a <div> element, but <div> is a block-level element whereas a <span> is an inline element. @@ -6647,7 +6789,7 @@ - + Attribute specific to LON-CAPA. @@ -6663,7 +6805,7 @@ - + Attribute specific to LON-CAPA. @@ -6684,14 +6826,14 @@ - Emphasis + The HTML Emphasis Element (<em>) marks text that has stress emphasis. The <em> element can be nested, with each level of nesting indicating a greater degree of emphasis. - Strong emphasis + The HTML Strong Element (<strong>) gives text strong importance, and is typically displayed in bold. @@ -6723,12 +6865,18 @@ - + The HTML <pre> Element (or HTML Preformatted Text) represents preformatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed. + + + + + + @@ -7055,6 +7203,7 @@ + @@ -7171,7 +7320,7 @@ - param is used to supply a named property value + The HTML <param> element is used to supply a named property value. @@ -7580,14 +7729,32 @@ - + + + + The ID of a labelable form-related element in the same document as the label element. The first such element in the document with an ID matching the value of the for attribute is the labeled control for this label element. + + + + + + A shortcut key to access this element from the keyboard. + + + + + + The form element that the label element is associated with (its form owner). If specified, the value of the attribute must be the ID of a <form> element in the same document. This attribute enables you to place label elements anywhere within a document, not just as descendants of their form elements. + + + @@ -7848,6 +8015,9 @@ + + +