diff --git a/Frontend/src/assets/tooltips/xpath/xpath1.json b/Frontend/src/assets/tooltips/xpath/xpath1.json index 5f66284..031de3b 100644 --- a/Frontend/src/assets/tooltips/xpath/xpath1.json +++ b/Frontend/src/assets/tooltips/xpath/xpath1.json @@ -45,8 +45,13 @@ "examples": [ { "command": "sum()", - "output": "blablabla" + "output": "56" + }, + { + "command": "sum()", + "output": "2137" } + ] }, { diff --git a/Frontend/src/assets/tooltips/xpath/xpath2.json b/Frontend/src/assets/tooltips/xpath/xpath2.json index d78fb81..fde2214 100644 --- a/Frontend/src/assets/tooltips/xpath/xpath2.json +++ b/Frontend/src/assets/tooltips/xpath/xpath2.json @@ -13,12 +13,7 @@ } ], "output": "number", - "examples": [ - { - "command": "sum()", - "output": "blablabla" - } - ] + "examples": [] }, { "name": "floor", diff --git a/Frontend/src/components/xml/XmlOutputFieldComponent.vue b/Frontend/src/components/xml/XmlOutputFieldComponent.vue index 85c80df..5591d85 100644 --- a/Frontend/src/components/xml/XmlOutputFieldComponent.vue +++ b/Frontend/src/components/xml/XmlOutputFieldComponent.vue @@ -10,6 +10,8 @@ const props = defineProps( } ) +const emit = defineEmits(["update"]); + const result = ref(''); var enginesForCurrentTool = ref(["saxon", "xalan", "libxml"]); @@ -118,6 +120,10 @@ function clear() { result.value = ""; } +function emitVersionChange() { + emit("update", version.value); +} + \ No newline at end of file