--- 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=("''")
--- 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();
}