# HG changeset patch # User paulb # Date 1131729262 0 # Node ID 6f7ef4363ea96cb08c815ea2634d9edefee24efb # Parent b77cac6d6fce3aee01e9768614214c206cc22bc9 [project @ 2005-11-11 17:14:22 by paulb] Minor documentation improvements. diff -r b77cac6d6fce -r 6f7ef4363ea9 docs/advice.html --- a/docs/advice.html Thu Nov 10 19:49:35 2005 +0000 +++ b/docs/advice.html Fri Nov 11 17:14:22 2005 +0000 @@ -13,7 +13,7 @@
It is not necessarily a good idea to nest elements inside multiple-choice elements like this:
-<multi>+
<multi-enum value="1"/>
<multi-enum value="1"/>
<multi-enum value="1"/>
<nested value="x"/>
</multi>
<multi>
<multi-enum value="1"/>
<multi-enum value="2"/>
<multi-enum value="3"/>
<nested value="x"/>
</multi>
The reason for this is that the number of multiple-choice values may vary within your application, and the nested elements will appear at a different position depending on how many such values have been @@ -21,8 +21,8 @@ to begin with, the usage of more advanced features (in-page updates, for example) will probably expose problems due to the way XSLForms reconstructs the XML document data -from the input form data.
-We can avoid the above mistake by specifying the first parameter in the template:multiple-choice-field
and template:multiple-choice-list-field
annotations. For example:
<select name="..." template:multiple-choice-field="multi,multi-enum,value">+
<option value="..." template:multiple-choice-value="multi-enum,value,selected"></option>
</select>
This effectively prevents us from inserting the nested
element inside the multi
element.
Although we ignore this rule with the example in this documentation, it is necessary to be aware of problems with adding and removing elements where other elements may reside. Consider part of our form diff -r b77cac6d6fce -r 6f7ef4363ea9 docs/directory.html --- a/docs/directory.html Thu Nov 10 19:49:35 2005 +0000 +++ b/docs/directory.html Fri Nov 11 17:14:22 2005 +0000 @@ -1,20 +1,16 @@ - -
+ -The recommended directory structure of an XSLForms application is as follows:
-@@ -26,10 +22,7 @@ | |||
A top-level directory corresponding to a Python package | -VerySimple | A subdirectory containing non-code resources for the application | -+ | Resources |
@@ -52,9 +43,5 @@
---|