1.1 --- a/XSLForms/Output.py Mon Dec 20 18:56:12 2004 +0000
1.2 +++ b/XSLForms/Output.py Mon Dec 20 19:42:37 2004 +0000
1.3 @@ -20,10 +20,9 @@
1.4 "Generate an XSLForms path to the given 'node'."
1.5
1.6 l = []
1.7 - # Attribute reference.
1.8 - l.insert(0, node.name)
1.9 - l.insert(0, "/")
1.10 - node = node.parent
1.11 + # Skip attribute reference.
1.12 + if node.type == "attribute":
1.13 + node = node.parent
1.14 # Element references.
1.15 while node is not None and node.type != "document_xml":
1.16 l.insert(0, str(int(node.xpathEval("count(preceding-sibling::*) + 1"))))