merge new tools (#244)
Co-authored-by: Adam Bem <adam.bem@zoho.eu> Co-authored-by: Adam Bem <bema@noreply.example.com> Reviewed-on: #244
This commit is contained in:
		
							
								
								
									
										33
									
								
								Samples/xquery/sampleXML.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								Samples/xquery/sampleXML.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<l:library xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.release11.com" xmlns:l="http://www.release11.com/library" xmlns:p="http://www.release11.com/person" xmlns:b="http://www.release11.com/book">
 | 
			
		||||
    <l:libraryName>City library</l:libraryName>
 | 
			
		||||
    <l:libraryID>345123</l:libraryID>
 | 
			
		||||
    <l:readerList>
 | 
			
		||||
        <p:person>
 | 
			
		||||
            <p:readerID>7321</p:readerID>
 | 
			
		||||
            <p:name>Adam</p:name>
 | 
			
		||||
            <p:surname>Choke</p:surname>
 | 
			
		||||
        </p:person>
 | 
			
		||||
        <p:person>
 | 
			
		||||
            <p:readerID>5123</p:readerID>
 | 
			
		||||
            <p:name>Lauren</p:name>
 | 
			
		||||
            <p:surname>Wong</p:surname>
 | 
			
		||||
        </p:person>
 | 
			
		||||
    </l:readerList>
 | 
			
		||||
    <l:bookList>
 | 
			
		||||
        <b:book>
 | 
			
		||||
            <b:bookID>6422</b:bookID>
 | 
			
		||||
            <b:title>Harry Potter</b:title>
 | 
			
		||||
            <p:readerID>7542</p:readerID>
 | 
			
		||||
        </b:book>
 | 
			
		||||
        <b:book>
 | 
			
		||||
            <b:bookID>1234</b:bookID>
 | 
			
		||||
            <b:title>Macbeth</b:title>
 | 
			
		||||
            <p:readerID>5123</p:readerID>
 | 
			
		||||
        </b:book>
 | 
			
		||||
        <b:book>
 | 
			
		||||
            <b:bookID>9556</b:bookID>
 | 
			
		||||
            <b:title>Romeo and Juliet</b:title>
 | 
			
		||||
        </b:book>
 | 
			
		||||
    </l:bookList>
 | 
			
		||||
</l:library>
 | 
			
		||||
							
								
								
									
										4
									
								
								Samples/xquery/xquery.curl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Samples/xquery/xquery.curl
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
url = "localhost/java/xquery"
 | 
			
		||||
#url = "localhost/libxml/xslt"
 | 
			
		||||
data = "@xquery.json"
 | 
			
		||||
request = POST
 | 
			
		||||
							
								
								
									
										6
									
								
								Samples/xquery/xquery.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								Samples/xquery/xquery.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
    "data": "<people><person><name>John</name><age>67</age></person><person><name>Anna</name><age>69</age></person></people>",
 | 
			
		||||
    "process": "for $x in //person return string($x/name)",
 | 
			
		||||
    "processor": "saxon",
 | 
			
		||||
    "version": "3.1"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user