1.1 --- a/XSLForms/Fields.py Tue Jul 19 22:40:50 2005 +0000
1.2 +++ b/XSLForms/Fields.py Tue Jul 19 23:28:44 2005 +0000
1.3 @@ -27,29 +27,29 @@
1.4 field entry consists of a field name mapped to a string value, where the field
1.5 name may have the following formats:
1.6
1.7 - /name1#n1/name2
1.8 - /name1#n1/name2#n2/name3
1.9 - /name1#n1/name2#n2/name3#n3/name4
1.10 + /name1$n1/name2
1.11 + /name1$n1/name2$n2/name3
1.12 + /name1$n1/name2$n2/name3$n3/name4
1.13 ...
1.14
1.15 The indexes n1, n2, n3, ... indicate the position of elements (starting from 1)
1.16 in the entire element list, whose elements may have different names. For
1.17 example:
1.18
1.19 - /zoo#1/name
1.20 - /zoo#1/cage#1/name
1.21 - /zoo#1/cage#2/name
1.22 - /zoo#1/funding#3/contributor#1/name
1.23 + /zoo$1/name
1.24 + /zoo$1/cage$1/name
1.25 + /zoo$1/cage$2/name
1.26 + /zoo$1/funding$3/contributor$1/name
1.27
1.28 Where multiple values can be collected for a given field, the following notation
1.29 is employed:
1.30
1.31 - /package#1/categories#1/category##value
1.32 + /package$1/categories$1/category$$value
1.33
1.34 Some fields may contain the "=" string. This string is reserved and all text
1.35 following it is meant to specify a path into a particular document. For example:
1.36
1.37 - _action_add_animal=/zoo#1/cage#2
1.38 + _action_add_animal=/zoo$1/cage$2
1.39 """
1.40
1.41 import Constants
1.42 @@ -369,35 +369,35 @@
1.43
1.44 items = [
1.45 ("_action_update", "Some value"),
1.46 - ("_action_delete=/zoo#1/cage#2", "Some value"),
1.47 - ("/actions#1/update#1/selected", "Some value"), # Not actually used in output documents or input.
1.48 - ("/zoo#1/name", "The Zoo זרו"),
1.49 - ("/zoo#1/cage#1/name", "reptiles"),
1.50 - ("/zoo#1/cage#1/capacity", "5"),
1.51 - ("/zoo#1/cage#1/animal#1/name", "Monty"),
1.52 - ("/zoo#1/cage#1/animal#1/species#1/name", "Python"),
1.53 - ("/zoo#1/cage#1/animal#1/property#2/name", "texture"),
1.54 - ("/zoo#1/cage#1/animal#1/property#2/value", "scaled"),
1.55 - ("/zoo#1/cage#1/animal#1/property#3/name", "length"),
1.56 - ("/zoo#1/cage#1/animal#1/property#3/value", "5m"),
1.57 - ("/zoo#1/cage#1/animal#2/name", "Vincent"),
1.58 - ("/zoo#1/cage#1/animal#2/species#1/name", "Lizard"),
1.59 - ("/zoo#1/cage#1/animal#2/property#2/name", "colour"),
1.60 - ("/zoo#1/cage#1/animal#2/property#2/value", "variable"),
1.61 - ("/zoo#1/cage#1/animal#2/property#3/name", "length"),
1.62 - ("/zoo#1/cage#1/animal#2/property#3/value", "1m"),
1.63 - ("/zoo#1/cage#2/name", "mammals"),
1.64 - ("/zoo#1/cage#2/capacity", "25"),
1.65 - ("/zoo#1/cage#2/animal#1/name", "Simon"),
1.66 - ("/zoo#1/cage#2/animal#1/species#1/name", "Giraffe"),
1.67 - ("/zoo#1/cage#2/animal#2/name", "Leonard"),
1.68 - ("/zoo#1/cage#2/animal#2/species#1/name", "Lion"),
1.69 - ("/zoo#1/cage#2/animal#2/property#2/name", "danger"),
1.70 - ("/zoo#1/cage#2/animal#2/property#2/value", "high"),
1.71 - ("/zoo#1/funding#3/type", "private"),
1.72 - ("/zoo#1/funding#3/contributor#1/name", "Animal Corporation"),
1.73 - ("/zoo#1/funding#3/contributor#1/amount", "543210.987"),
1.74 - ("/zoo#1/funding#3/contributor#1/industry##type", "animals")
1.75 + ("_action_delete=/zoo$1/cage$2", "Some value"),
1.76 + ("/actions$1/update$1/selected", "Some value"), # Not actually used in output documents or input.
1.77 + ("/zoo$1/name", "The Zoo זרו"),
1.78 + ("/zoo$1/cage$1/name", "reptiles"),
1.79 + ("/zoo$1/cage$1/capacity", "5"),
1.80 + ("/zoo$1/cage$1/animal$1/name", "Monty"),
1.81 + ("/zoo$1/cage$1/animal$1/species$1/name", "Python"),
1.82 + ("/zoo$1/cage$1/animal$1/property$2/name", "texture"),
1.83 + ("/zoo$1/cage$1/animal$1/property$2/value", "scaled"),
1.84 + ("/zoo$1/cage$1/animal$1/property$3/name", "length"),
1.85 + ("/zoo$1/cage$1/animal$1/property$3/value", "5m"),
1.86 + ("/zoo$1/cage$1/animal$2/name", "Vincent"),
1.87 + ("/zoo$1/cage$1/animal$2/species$1/name", "Lizard"),
1.88 + ("/zoo$1/cage$1/animal$2/property$2/name", "colour"),
1.89 + ("/zoo$1/cage$1/animal$2/property$2/value", "variable"),
1.90 + ("/zoo$1/cage$1/animal$2/property$3/name", "length"),
1.91 + ("/zoo$1/cage$1/animal$2/property$3/value", "1m"),
1.92 + ("/zoo$1/cage$2/name", "mammals"),
1.93 + ("/zoo$1/cage$2/capacity", "25"),
1.94 + ("/zoo$1/cage$2/animal$1/name", "Simon"),
1.95 + ("/zoo$1/cage$2/animal$1/species$1/name", "Giraffe"),
1.96 + ("/zoo$1/cage$2/animal$2/name", "Leonard"),
1.97 + ("/zoo$1/cage$2/animal$2/species$1/name", "Lion"),
1.98 + ("/zoo$1/cage$2/animal$2/property$2/name", "danger"),
1.99 + ("/zoo$1/cage$2/animal$2/property$2/value", "high"),
1.100 + ("/zoo$1/funding$3/type", "private"),
1.101 + ("/zoo$1/funding$3/contributor$1/name", "Animal Corporation"),
1.102 + ("/zoo$1/funding$3/contributor$1/amount", "543210.987"),
1.103 + ("/zoo$1/funding$3/contributor$1/industry$$type", "animals")
1.104 ]
1.105
1.106 import time