1.1 --- a/XSLForms/Output.py Tue Jan 25 17:00:47 2005 +0000
1.2 +++ b/XSLForms/Output.py Sun Jan 30 01:50:18 2005 +0000
1.3 @@ -104,8 +104,12 @@
1.4 def multi_field_name(context, multivalue_name):
1.5 return path_to_context(context, 1, multivalue_name)
1.6
1.7 +def new_field(context, name):
1.8 + return path_to_context(context, 0) + "/" + name
1.9 +
1.10 libxslt.registerExtModuleFunction("this-position", "http://www.boddie.org.uk/ns/xmltools/template", this_position)
1.11 libxslt.registerExtModuleFunction("field-name", "http://www.boddie.org.uk/ns/xmltools/template", field_name)
1.12 libxslt.registerExtModuleFunction("multi-field-name", "http://www.boddie.org.uk/ns/xmltools/template", multi_field_name)
1.13 +libxslt.registerExtModuleFunction("new-field", "http://www.boddie.org.uk/ns/xmltools/template", new_field)
1.14
1.15 # vim: tabstop=4 expandtab shiftwidth=4