Added missing docs and organized sample files (#97)

Co-authored-by: Adam Bem <adam.bem@zoho.eu>
Reviewed-on: R11/release11-tools-web#97
This commit is contained in:
2023-03-02 14:08:39 +01:00
parent c5190f7b62
commit fd95d7e845
23 changed files with 248 additions and 184 deletions

5
Samples/xsd/sample.xml Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<ns0:values xmlns:ns0 = "http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd">
<ns0:value>Test</ns0:value>
<ns0:value>Test3</ns0:value>
</ns0:values>

10
Samples/xsd/schema.xsd Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd" targetNamespace="http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="values">
<xs:complexType>
<xs:sequence>
<xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

4
Samples/xsd/xsd.curl Normal file
View File

@@ -0,0 +1,4 @@
#url = "http://localhost:8082/xsdpost"
url = "http://localhost:5000/xsdpost"
data = "@xsd.json"
request = POST

6
Samples/xsd/xsd.json Normal file
View File

@@ -0,0 +1,6 @@
{
"data": "<ns0:values xmlns:ns0 = \"http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd\"><ns0:value>Test</ns0:value><ns0:value>Test3</ns0:value></ns0:values>",
"process": "<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns=\"http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd\" targetNamespace=\"http://www.tibco.com/schemas/test/Test/Resources/Schema.xsd\" elementFormDefault=\"qualified\" attributeFormDefault=\"unqualified\"> <xs:element name=\"values\"><xs:complexType><xs:sequence><xs:element name=\"value\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"unbounded\"/></xs:sequence></xs:complexType></xs:element></xs:schema>",
"processor": "saxon",
"version": "1.0"
}