cpee 1.4.26 → 1.4.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/js_libs.zip +0 -0
  3. data/cockpit/js_libs/Makefile +2 -0
  4. data/cockpit/js_libs/ansi_up.js +333 -0
  5. data/cockpit/js_libs/console.js +80 -0
  6. data/cockpit/js_libs/custommenu.css +84 -0
  7. data/cockpit/js_libs/custommenu.js +101 -0
  8. data/cockpit/js_libs/jquery-2.2.4.min.js +4 -0
  9. data/cockpit/js_libs/jquery-3.2.1.min.js +4 -0
  10. data/cockpit/js_libs/jquery-3.3.1.min.js +2 -0
  11. data/cockpit/js_libs/jquery.browser.js +40 -0
  12. data/cockpit/js_libs/jquery.caret.min.js +10 -0
  13. data/cockpit/js_libs/jquery.cookie.js +117 -0
  14. data/cockpit/js_libs/jquery.min.js +1 -0
  15. data/cockpit/js_libs/jquery.svg.min.js +6 -0
  16. data/cockpit/js_libs/jquery.svgdom.min.js +6 -0
  17. data/cockpit/js_libs/markdown.min.js +1 -0
  18. data/cockpit/js_libs/parsequery.js +21 -0
  19. data/cockpit/js_libs/printf.js +368 -0
  20. data/cockpit/js_libs/relaxngui.css +153 -0
  21. data/cockpit/js_libs/relaxngui.js +402 -0
  22. data/cockpit/js_libs/strftime.min.js +1 -0
  23. data/cockpit/js_libs/tests/dataelements.html +58 -0
  24. data/cockpit/js_libs/tests/dataelements.rng +8 -0
  25. data/cockpit/js_libs/tests/dataelements.xml +3 -0
  26. data/cockpit/js_libs/tests/rngtest1.html +59 -0
  27. data/cockpit/js_libs/tests/rngtest1.rng +41 -0
  28. data/cockpit/js_libs/tests/rngtest1.xml +11 -0
  29. data/cockpit/js_libs/tests/rngtest2.html +59 -0
  30. data/cockpit/js_libs/tests/rngtest2.rng +6 -0
  31. data/cockpit/js_libs/tests/rngtest2.xml +3 -0
  32. data/cockpit/js_libs/tests/rngtest3.html +59 -0
  33. data/cockpit/js_libs/tests/rngtest3.rng +23 -0
  34. data/cockpit/js_libs/tests/rngtest3.xml +9 -0
  35. data/cockpit/js_libs/tests/rngtest4.html +59 -0
  36. data/cockpit/js_libs/tests/rngtest4.rng +19 -0
  37. data/cockpit/js_libs/tests/rngtest4.xml +12 -0
  38. data/cockpit/js_libs/tests/rngtest5.html +59 -0
  39. data/cockpit/js_libs/tests/rngtest5.rng +75 -0
  40. data/cockpit/js_libs/tests/rngtest5.xml +40 -0
  41. data/cockpit/js_libs/tests/rngtest6.html +59 -0
  42. data/cockpit/js_libs/tests/rngtest6.rng +24 -0
  43. data/cockpit/js_libs/tests/rngtest6.xml +6 -0
  44. data/cockpit/js_libs/tests/rngtest8.html +59 -0
  45. data/cockpit/js_libs/tests/rngtest8.rng +13 -0
  46. data/cockpit/js_libs/tests/rngtest8.xml +2 -0
  47. data/cockpit/js_libs/ui.css +301 -0
  48. data/cockpit/js_libs/ui.html +168 -0
  49. data/cockpit/js_libs/ui.js +172 -0
  50. data/cockpit/js_libs/underscore.min.js +27 -0
  51. data/cockpit/js_libs/util.js +84 -0
  52. data/cockpit/js_libs/vkbeautify.0.99.00.beta.js +358 -0
  53. data/cockpit/js_libs/vkbeautify.js +1 -0
  54. data/cockpit/js_libs/webcomponents.min.js +196 -0
  55. data/cpee.gemspec +2 -1
  56. data/server/instances/104/notifications/888d50456e0c2d39d0542a21999c9e0b/consumer-secret +1 -0
  57. data/server/instances/104/notifications/888d50456e0c2d39d0542a21999c9e0b/producer-secret +1 -0
  58. data/server/instances/104/notifications/888d50456e0c2d39d0542a21999c9e0b/subscription.xml +38 -0
  59. data/server/instances/104/notifications/logging/consumer-secret +1 -0
  60. data/server/instances/104/notifications/logging/producer-secret +1 -0
  61. data/server/instances/104/notifications/logging/subscription.xml +19 -0
  62. data/server/instances/104/properties.xml +31 -0
  63. data/tools/cpee +36 -7
  64. metadata +77 -5
  65. data/server/server.pid +0 -1
@@ -0,0 +1 @@
1
+ Date.ext={};Date.ext.util={};Date.ext.util.xPad=function(x,pad,r){if(typeof (r)=="undefined"){r=10}for(;parseInt(x,10)<r&&r>1;r/=10){x=pad.toString()+x}return x.toString()};Date.prototype.locale="en-GB";if(document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang){Date.prototype.locale=document.getElementsByTagName("html")[0].lang}Date.ext.locales={};Date.ext.locales.en={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],x:"%d/%m/%y",X:"%T"};Date.ext.locales["en-US"]=Date.ext.locales.en;Date.ext.locales["en-US"].c="%a %d %b %Y %r %Z";Date.ext.locales["en-US"].x="%D";Date.ext.locales["en-US"].X="%r";Date.ext.locales["en-GB"]=Date.ext.locales.en;Date.ext.locales["en-AU"]=Date.ext.locales["en-GB"];Date.ext.formats={a:function(d){return Date.ext.locales[d.locale].a[d.getDay()]},A:function(d){return Date.ext.locales[d.locale].A[d.getDay()]},b:function(d){return Date.ext.locales[d.locale].b[d.getMonth()]},B:function(d){return Date.ext.locales[d.locale].B[d.getMonth()]},c:"toLocaleString",C:function(d){return Date.ext.util.xPad(parseInt(d.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(d){return Date.ext.util.xPad(parseInt(Date.ext.util.G(d)/100,10),0)},G:function(d){var y=d.getFullYear();var V=parseInt(Date.ext.formats.V(d),10);var W=parseInt(Date.ext.formats.W(d),10);if(W>V){y++}else{if(W===0&&V>=52){y--}}return y},H:["getHours","0"],I:function(d){var I=d.getHours()%12;return Date.ext.util.xPad(I===0?12:I,0)},j:function(d){var ms=d-new Date(""+d.getFullYear()+"/1/1 GMT");ms+=d.getTimezoneOffset()*60000;var doy=parseInt(ms/60000/60/24,10)+1;return Date.ext.util.xPad(doy,0,100)},m:function(d){return Date.ext.util.xPad(d.getMonth()+1,0)},M:["getMinutes","0"],p:function(d){return Date.ext.locales[d.locale].p[d.getHours()>=12?1:0]},P:function(d){return Date.ext.locales[d.locale].P[d.getHours()>=12?1:0]},S:["getSeconds","0"],u:function(d){var dow=d.getDay();return dow===0?7:dow},U:function(d){var doy=parseInt(Date.ext.formats.j(d),10);var rdow=6-d.getDay();var woy=parseInt((doy+rdow)/7,10);return Date.ext.util.xPad(woy,0)},V:function(d){var woy=parseInt(Date.ext.formats.W(d),10);var dow1_1=(new Date(""+d.getFullYear()+"/1/1")).getDay();var idow=woy+(dow1_1>4||dow1_1<=1?0:1);if(idow==53&&(new Date(""+d.getFullYear()+"/12/31")).getDay()<4){idow=1}else{if(idow===0){idow=Date.ext.formats.V(new Date(""+(d.getFullYear()-1)+"/12/31"))}}return Date.ext.util.xPad(idow,0)},w:"getDay",W:function(d){var doy=parseInt(Date.ext.formats.j(d),10);var rdow=7-Date.ext.formats.u(d);var woy=parseInt((doy+rdow)/7,10);return Date.ext.util.xPad(woy,0,10)},y:function(d){return Date.ext.util.xPad(d.getFullYear()%100,0)},Y:"getFullYear",z:function(d){var o=d.getTimezoneOffset();var H=Date.ext.util.xPad(parseInt(Math.abs(o/60),10),0);var M=Date.ext.util.xPad(o%60,0);return(o>0?"-":"+")+H+M},Z:function(d){return d.toString().replace(/^.*\(([^)]+)\)$/,"$1")},"%":function(d){return"%"}};Date.ext.aggregates={c:"locale",D:"%m/%d/%y",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"};Date.ext.aggregates.z=Date.ext.formats.z(new Date());Date.ext.aggregates.Z=Date.ext.formats.Z(new Date());Date.ext.unsupported={};Date.prototype.strftime=function(fmt){if(!(this.locale in Date.ext.locales)){if(this.locale.replace(/-[a-zA-Z]+$/,"") in Date.ext.locales){this.locale=this.locale.replace(/-[a-zA-Z]+$/,"")}else{this.locale="en-GB"}}var d=this;while(fmt.match(/%[cDhnrRtTxXzZ]/)){fmt=fmt.replace(/%([cDhnrRtTxXzZ])/g,function(m0,m1){var f=Date.ext.aggregates[m1];return(f=="locale"?Date.ext.locales[d.locale][m1]:f)})}var str=fmt.replace(/%([aAbBCdegGHIjmMpPSuUVwWyY%])/g,function(m0,m1){var f=Date.ext.formats[m1];if(typeof (f)=="string"){return d[f]()}else{if(typeof (f)=="function"){return f.call(d,d)}else{if(typeof (f)=="object"&&typeof (f[0])=="string"){return Date.ext.util.xPad(d[f[0]](),f[1])}else{return m1}}}});d=null;return str};
@@ -0,0 +1,58 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui is distributed in the hope that it will be useful, but WITHOUT ANY
10
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License along with
14
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Dataelements</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="http://localhost/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="http://localhost/js_libs/relaxngui.js"></script>
27
+ <link rel="stylesheet" href="http://localhost/js_libs/relaxngui.css" type="text/css"/>
28
+ <script type="text/javascript" src="http://localhost/js_libs/util.js"></script>
29
+ <script type="text/javascript" src="http://localhost/js_libs/vkbeautify.js"></script>
30
+ <!-- custom stuff, play arround -->
31
+
32
+ <script type="text/javascript">
33
+ $("body").ready(function(){
34
+ $.ajax({
35
+ type: "GET",
36
+ url: "dataelements.rng",
37
+ success: function(rng){
38
+ $.ajax({
39
+ type: "GET",
40
+ url: "dataelements.xml",
41
+ success: function(data){
42
+ var rngui = new RelaxNGui(rng,$('#show'));
43
+ rngui.content(data);
44
+ $('#saveall').on('click',function(){
45
+ console.log($(rngui.save()).serializePrettyXML());
46
+ });
47
+ }
48
+ });
49
+ }
50
+ });
51
+ });
52
+ </script>
53
+ </head>
54
+ <body>
55
+ <div id="show"></div>
56
+ <button id='saveall'>save it all to console</button>
57
+ </body>
58
+ </html>
@@ -0,0 +1,8 @@
1
+ <element rngui:version="1.2" name="value" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <zeroOrMore rngui:label="Create Data Element">
3
+ <element rngui:label='Name'>
4
+ <anyName/>
5
+ <data type="string" rngui:label="Value"/>
6
+ </element>
7
+ </zeroOrMore>
8
+ </element>
@@ -0,0 +1,3 @@
1
+ <value>
2
+ <a>b</a>
3
+ </value>
@@ -0,0 +1,59 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui is distributed in the hope that it will be useful, but WITHOUT ANY
10
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License along with
14
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 1</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
27
+ <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
28
+ <script type="text/javascript" src="/js_libs/util.js"></script>
29
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
30
+
31
+ <!-- custom stuff, play arround -->
32
+
33
+ <script type="text/javascript">
34
+ $("body").ready(function(){
35
+ $.ajax({
36
+ type: "GET",
37
+ url: "rngtest1.rng",
38
+ success: function(rng){
39
+ $.ajax({
40
+ type: "GET",
41
+ url: "rngtest1.xml",
42
+ success: function(data){
43
+ var rngui = new RelaxNGui(rng,$('#show'));
44
+ rngui.content(data);
45
+ $('#saveall').on('click',function(){
46
+ console.log($(rngui.save()).serializePrettyXML());
47
+ });
48
+ }
49
+ });
50
+ }
51
+ });
52
+ });
53
+ </script>
54
+ </head>
55
+ <body>
56
+ <div id="show"></div>
57
+ <button id='saveall'>save it all to console</button>
58
+ </body>
59
+ </html>
@@ -0,0 +1,41 @@
1
+ <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="id" rngui:label="ID">
3
+ <data type="string" rngui:readonly="true" rngui:default="javascript:generate_id()"/>
4
+ </attribute>
5
+ <attribute name="endpoint" rngui:label="Endpoint">
6
+ <data type="string"/>
7
+ </attribute>
8
+ <element name='parameters' rngui:header="Parameters">
9
+ <element name="label" rngui:label="Label">
10
+ <data type="string" rngui:label="Short description of the task"/>
11
+ </element>
12
+ <element name="method" rngui:label="Method">
13
+ <choice>
14
+ <value>:post</value>
15
+ <value>:get</value>
16
+ <value>:put</value>
17
+ <value>:delete</value>
18
+ </choice>
19
+ </element>
20
+ <element name="arguments" rngui:header="Arguments">
21
+ <zeroOrMore rngui:label="Create Argument Pair">
22
+ <element rngui:label='Name'>
23
+ <anyName/>
24
+ <data type="string" rngui:label="Value"/>
25
+ </element>
26
+ </zeroOrMore>
27
+ </element>
28
+ </element>
29
+ <element name="finalize" rngui:header="Finalize" rngui:label="Code">
30
+ <attribute name="output" rngui:label="Access Variable">
31
+ <data type="string" rngui:readonly="true" rngui:default="result"/>
32
+ </attribute>
33
+ <text rngui:label='Script that is executed, when a service returns data'/>
34
+ </element>
35
+ <element name="update" rngui:header="Update" rngui:label="Code">
36
+ <attribute name="output" rngui:label="Access Variable">
37
+ <data type="string" rngui:readonly="true" rngui:default="result"/>
38
+ </attribute>
39
+ <text rngui:label='Script that is executed, when a service sends intermediate data'/>
40
+ </element>
41
+ </element>
@@ -0,0 +1,11 @@
1
+ <call id="a1" endpoint="timeout">
2
+ <parameters>
3
+ <label></label>
4
+ <method>:post</method>
5
+ <arguments>
6
+ <timeout>2</timeout>
7
+ </arguments>
8
+ </parameters>
9
+ <finalize output="result"> data.x += "a1,"</finalize>
10
+ <update output="result"> data.x += "a1,"</update>
11
+ </call>
@@ -0,0 +1,59 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui is distributed in the hope that it will be useful, but WITHOUT ANY
10
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License along with
14
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 2</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
27
+ <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
28
+ <script type="text/javascript" src="/js_libs/util.js"></script>
29
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
30
+
31
+ <!-- custom stuff, play arround -->
32
+
33
+ <script type="text/javascript">
34
+ $("body").ready(function(){
35
+ $.ajax({
36
+ type: "GET",
37
+ url: "rngtest2.rng",
38
+ success: function(rng){
39
+ $.ajax({
40
+ type: "GET",
41
+ url: "rngtest2.xml",
42
+ success: function(data){
43
+ var rngui = new RelaxNGui(rng,$('#show'));
44
+ rngui.content(data);
45
+ $('#saveall').on('click',function(){
46
+ console.log($(rngui.save()).serializePrettyXML());
47
+ });
48
+ }
49
+ });
50
+ }
51
+ });
52
+ });
53
+ </script>
54
+ </head>
55
+ <body>
56
+ <div id="show"></div>
57
+ <button id='saveall'>save it all to console</button>
58
+ </body>
59
+ </html>
@@ -0,0 +1,6 @@
1
+ <element rngui:version="1.2" name="manipulate" rngui:label="Script" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <attribute name="id" rngui:label="ID">
3
+ <data type="string" rngui:readonly="true" rngui:default="javascript:generate_id()"/>
4
+ </attribute>
5
+ <text rngui:label='Script that is executed'/>
6
+ </element>
@@ -0,0 +1,3 @@
1
+ <manipulate id="a1">
2
+ data.x += "a1,"
3
+ </manipulate>
@@ -0,0 +1,59 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui is distributed in the hope that it will be useful, but WITHOUT ANY
10
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License along with
14
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 3</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
27
+ <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
28
+ <script type="text/javascript" src="/js_libs/util.js"></script>
29
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
30
+
31
+ <!-- custom stuff, play arround -->
32
+
33
+ <script type="text/javascript">
34
+ $("body").ready(function(){
35
+ $.ajax({
36
+ type: "GET",
37
+ url: "rngtest3.rng",
38
+ success: function(rng){
39
+ $.ajax({
40
+ type: "GET",
41
+ url: "rngtest3.xml",
42
+ success: function(data){
43
+ var rngui = new RelaxNGui(rng,$('#show'));
44
+ rngui.content(data);
45
+ $('#saveall').on('click',function(){
46
+ console.log($(rngui.save()).serializePrettyXML());
47
+ });
48
+ }
49
+ });
50
+ }
51
+ });
52
+ });
53
+ </script>
54
+ </head>
55
+ <body>
56
+ <div id="show"></div>
57
+ <button id='saveall'>save it all to console</button>
58
+ </body>
59
+ </html>
@@ -0,0 +1,23 @@
1
+ <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <element name="arguments" rngui:header="Arguments">
3
+ <zeroOrMore rngui:label="Create Argument Pair">
4
+ <element rngui:label='Name'>
5
+ <anyName/>
6
+ <data type="string" rngui:label="Value"/>
7
+ </element>
8
+ </zeroOrMore>
9
+ </element>
10
+ <element name="_attachments">
11
+ <zeroOrMore rngui:label="Create Attachment">
12
+ <element name='_attachment' rngui:label='Attachment'>
13
+ <attribute name="label" rngui:label="Note">
14
+ <data type="string"/>
15
+ </attribute>
16
+ <attribute name="xxx" rngui:label="XXX">
17
+ <data type="string"/>
18
+ </attribute>
19
+ <data type="string" rngui:label="Url"/>
20
+ </element>
21
+ </zeroOrMore>
22
+ </element>
23
+ </element>
@@ -0,0 +1,9 @@
1
+ <call>
2
+ <arguments>
3
+ <timeout>2</timeout>
4
+ </arguments>
5
+ <_attachments>
6
+ <_attachment label="a" xxx="1">b</_attachment>
7
+ <_attachment label="c" xxx="2">d</_attachment>
8
+ </_attachments>
9
+ </call>
@@ -0,0 +1,59 @@
1
+ <!--
2
+ This file is part of RelaxNGui.
3
+
4
+ RelaxNGui is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU General Public License as published by the Free Software
6
+ Foundation, either version 3 of the License, or (at your option) any later
7
+ version.
8
+
9
+ RelaxNGui is distributed in the hope that it will be useful, but WITHOUT ANY
10
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+
13
+ You should have received a copy of the GNU General Public License along with
14
+ RelaxNGui (file COPYING in the main directory). If not, see
15
+ <http://www.gnu.org/licenses/>.
16
+ -->
17
+
18
+ <!DOCTYPE html>
19
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
20
+ <head>
21
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
22
+ <title>RelaxNGui Test 4</title>
23
+
24
+ <!-- libs, do not modify -->
25
+ <script type="text/javascript" src="/js_libs/jquery.min.js"></script>
26
+ <script type="text/javascript" src="/js_libs/relaxngui.js"></script>
27
+ <link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
28
+ <script type="text/javascript" src="/js_libs/util.js"></script>
29
+ <script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
30
+
31
+ <!-- custom stuff, play arround -->
32
+
33
+ <script type="text/javascript">
34
+ $("body").ready(function(){
35
+ $.ajax({
36
+ type: "GET",
37
+ url: "rngtest4.rng",
38
+ success: function(rng){
39
+ $.ajax({
40
+ type: "GET",
41
+ url: "rngtest4.xml",
42
+ success: function(data){
43
+ var rngui = new RelaxNGui(rng,$('#show'));
44
+ rngui.content(data);
45
+ $('#saveall').on('click',function(){
46
+ console.log($(rngui.save()).serializePrettyXML());
47
+ });
48
+ }
49
+ });
50
+ }
51
+ });
52
+ });
53
+ </script>
54
+ </head>
55
+ <body>
56
+ <div id="show"></div>
57
+ <button id='saveall'>save it all to console</button>
58
+ </body>
59
+ </html>
@@ -0,0 +1,19 @@
1
+ <element rngui:version="1.2" name="call" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:rngui="http://rngui.org">
2
+ <element name="_workorders">
3
+ <zeroOrMore rngui:label="Create Work Order">
4
+ <element name='_workorder'>
5
+ <attribute name="label" rngui:label="Note">
6
+ <data type="string"/>
7
+ </attribute>
8
+ <attribute name="duration" rngui:label="Duration">
9
+ <data type="string"/>
10
+ </attribute>
11
+ <zeroOrMore rngui:label="Add Attachment">
12
+ <element name='_attachment' rngui:label='Attachment'>
13
+ <data type="string"/>
14
+ </element>
15
+ </zeroOrMore>
16
+ </element>
17
+ </zeroOrMore>
18
+ </element>
19
+ </element>