Added sample XSD schema (#163)
Due to some errors with namespaces and XSD schema simplified sample XML for that tool. Co-authored-by: widlam <mikolaj.widla@gmail.com> Reviewed-on: #163 Reviewed-by: Adam Bem <bema@noreply.example.com> Co-authored-by: Mikolaj Widla <widlam@noreply.example.com> Co-committed-by: Mikolaj Widla <widlam@noreply.example.com>
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user