# HG changeset patch # User paulb # Date 1121809133 0 # Node ID e3e4cbbc6a7bb8825250980429608290f017cb4d # Parent fe99c80824aad7d8fc17f37a2630b3121953ac4f [project @ 2005-07-19 21:38:53 by paulb] Updated the notation to be consistent with the current contents of XSLForms.Constants. diff -r fe99c80824aa -r e3e4cbbc6a7b XSLForms/Output.py --- a/XSLForms/Output.py Tue Jul 19 21:26:35 2005 +0000 +++ b/XSLForms/Output.py Tue Jul 19 21:38:53 2005 +0000 @@ -39,11 +39,11 @@ Generate an XSLForms path to the given 'node', producing an attribute reference if 'attribute_ref' is true; for example: - /package#1/discriminators#5/discriminator#1/category + /package$1/discriminators$5/discriminator$1/category Otherwise an element reference is produced; for example: - /package#1/discriminators#5/discriminator#1 + /package$1/discriminators$5/discriminator$1 Use the given 'name' to complete the path if an attribute reference is required (and if a genuine attribute is found at the context node - @@ -53,7 +53,7 @@ If 'multivalue' is true, produce an attribute reference using the given 'name' of the following form: - /package#1/categories#1/category##name + /package$1/categories$1/category$$name """ l = [] @@ -165,7 +165,7 @@ """ Convert the given 'field_or_multi_name' back to an XPath reference. For example: - /configuration#1/details#1/base-system##value -> /*[position() = 1]/*[position() = 1]/base-system + /configuration$1/details$1/base-system$$value -> /*[position() = 1]/*[position() = 1]/base-system """ field_name = get_field_name(field_or_multi_name)