Added sample XSD schema

Due to some errors with namespaces and XSD schema simplified sample XML for that tool.
This commit is contained in:
2023-04-28 15:23:42 +02:00
parent 71bbe668f6
commit 636d09f2a0
5 changed files with 91 additions and 11 deletions

View File

@@ -84,6 +84,21 @@ function fillDefaultXML(element) {
}
}
function fillDefaultXSD(){
const serverAddress = window.location.protocol + "//" + window.location.hostname + ":8086";
fetch(serverAddress + "/assets/samples/sampleXSD.xsd")
.then( response => response.text() )
.then( (XSDSchema) => {
document.getElementById('transformArea').value = XSDSchema;
} )
fetch(serverAddress + "/assets/samples/sampleXMLForXSD.xml")
.then( response => response.text() )
.then( (XMLSample) => {
document.getElementById('xmlArea').value = XMLSample;
} )
}
/**
* The `fillDefaultXSLT()` function fetches a default XSLT template from the server and sets the value of the element with id "transformArea" to the fetched template.