bema/func/libxml_backend #20

Merged
bema merged 25 commits from bema/func/libxml_backend into dev 2023-02-09 13:34:44 +01:00
Showing only changes of commit f8d5934998 - Show all commits

View File

@@ -106,20 +106,15 @@ function performRequest(text, checkXML, checkTransform){
async function restRequest(text) {
const escapeChar = "specialEscapeChar";
// const addr = "http://localhost:8081/" + text;
var port = ":8081/"
if (getProcessor() == "libxml") {
port = ":8082/"
}
const addr = window.location.protocol + "//" + window.location.hostname + port + text;
console.log(addr)
const addr = window.location.protocol + "//" + window.location.hostname + ":8081/" + text;
var xmlData = document.getElementById("xmlArea").value.trim();
var transformData = document.getElementById("transformArea").value.trim();
if(defaultStrings.includes(xmlData)){
xmlData = "<empty/>";
}
console.log(getProcessor());
// var data = xmlData.concat(escapeChar, transformData);
// const url = addr.concat("?escapechar=", escapeChar, "&processor=", getProcInfo());