# HG changeset patch # User František Kučera # Date 1609318719 -3600 # Node ID c58c7f2d4785be38e39c93c4b8e3a16222868cca # Parent 709abeb5f6d13c3489e9f18079d0b44d62a2fe02 add current relation name: ../relation-name diff -r 709abeb5f6d1 -r c58c7f2d4785 bash-completion.sh --- a/bash-completion.sh Wed Dec 30 01:37:41 2020 +0100 +++ b/bash-completion.sh Wed Dec 30 09:58:39 2020 +0100 @@ -53,7 +53,7 @@ ) - if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") + if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("'.*'") elif [[ "$w1" == "--where" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w1" == "--xml-attribute" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w1" == "--output-attribute" && "x$w0" == "x" ]]; then COMPREPLY=("''") diff -r 709abeb5f6d1 -r c58c7f2d4785 src/XPathHandler.h --- a/src/XPathHandler.h Wed Dec 30 01:37:41 2020 +0100 +++ b/src/XPathHandler.h Wed Dec 30 09:58:39 2020 +0100 @@ -128,8 +128,8 @@ for (auto oa : currentRelationConfiguration->outputAttributes) currentWriterMetadata.push_back({oa.name, oa.type}); if (isAppendingInputAttributes()) copyInputAttributesToOutput(); - // TODO: prepare DOM dom.get_document()->create_root_node("relpipe-tr-xpath"); + dom.get_document()->get_root_node()->add_child("relation-name")->add_child_text(s2x(name)); resetRecordElement(); }