1.1 --- a/XSLForms/Output.py Tue Jul 19 21:26:35 2005 +0000
1.2 +++ b/XSLForms/Output.py Tue Jul 19 21:38:53 2005 +0000
1.3 @@ -39,11 +39,11 @@
1.4 Generate an XSLForms path to the given 'node', producing an attribute
1.5 reference if 'attribute_ref' is true; for example:
1.6
1.7 - /package#1/discriminators#5/discriminator#1/category
1.8 + /package$1/discriminators$5/discriminator$1/category
1.9
1.10 Otherwise an element reference is produced; for example:
1.11
1.12 - /package#1/discriminators#5/discriminator#1
1.13 + /package$1/discriminators$5/discriminator$1
1.14
1.15 Use the given 'name' to complete the path if an attribute reference is
1.16 required (and if a genuine attribute is found at the context node -
1.17 @@ -53,7 +53,7 @@
1.18 If 'multivalue' is true, produce an attribute reference using the given
1.19 'name' of the following form:
1.20
1.21 - /package#1/categories#1/category##name
1.22 + /package$1/categories$1/category$$name
1.23 """
1.24
1.25 l = []
1.26 @@ -165,7 +165,7 @@
1.27 """
1.28 Convert the given 'field_or_multi_name' back to an XPath reference.
1.29 For example:
1.30 - /configuration#1/details#1/base-system##value -> /*[position() = 1]/*[position() = 1]/base-system
1.31 + /configuration$1/details$1/base-system$$value -> /*[position() = 1]/*[position() = 1]/base-system
1.32 """
1.33
1.34 field_name = get_field_name(field_or_multi_name)