1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>RelaxNGui Dataelements</title>
-
- <script type="text/javascript" src="http://localhost/js_libs/jquery.min.js"></script>
- <script type="text/javascript" src="http://localhost/js_libs/relaxngui.js"></script>
- <link rel="stylesheet" href="http://localhost/js_libs/relaxngui.css" type="text/css"/>
- <script type="text/javascript" src="http://localhost/js_libs/util.js"></script>
- <script type="text/javascript" src="http://localhost/js_libs/vkbeautify.js"></script>
-
- <script type="text/javascript">
- $("body").ready(function(){
- $.ajax({
- type: "GET",
- url: "dataelements.rng",
- success: function(rng){
- $.ajax({
- type: "GET",
- url: "dataelements.xml",
- success: function(data){
- var rngui = new RelaxNGui(rng,$('#show'));
- rngui.content(data);
- $('#saveall').on('click',function(){
- console.log($(rngui.save()).serializePrettyXML());
- });
- }
- });
- }
- });
- });
- </script>
- </head>
- <body>
- <div id="show"></div>
- <button id='saveall'>save it all to console</button>
- </body>
- </html>
|