# HG changeset patch
# User cin
# Date 1523280446 -10800
# Node ID 197a850b1f6f911d63b17431e87ac396f4308c94
# Parent 191b81b2052b890765d8dfd1aad1e2c88f893810
working version of xml2json transformation
diff -r 191b81b2052b -r 197a850b1f6f data/jsondata.xml
--- a/data/jsondata.xml Mon Apr 09 06:43:46 2018 +0300
+++ b/data/jsondata.xml Mon Apr 09 16:27:26 2018 +0300
@@ -4,11 +4,15 @@
Craig
Jackson
49
-
- 1st avenue
-
-
+
+ 1st avenue,
+ new street
+
+
123-23-12
-
+
+
+ 213-55-66
+
false
\ No newline at end of file
diff -r 191b81b2052b -r 197a850b1f6f xslt/json-person.xsl
--- a/xslt/json-person.xsl Mon Apr 09 06:43:46 2018 +0300
+++ b/xslt/json-person.xsl Mon Apr 09 16:27:26 2018 +0300
@@ -6,26 +6,47 @@
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- <_type>
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
\ No newline at end of file
diff -r 191b81b2052b -r 197a850b1f6f xslt/json.xsl
--- a/xslt/json.xsl Mon Apr 09 06:43:46 2018 +0300
+++ b/xslt/json.xsl Mon Apr 09 16:27:26 2018 +0300
@@ -5,52 +5,38 @@
xmlns:exsl="http://exslt.org/common">
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
-
+
:
-
-
- ,
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -63,7 +49,7 @@
-
+
,
@@ -72,21 +58,21 @@
-
+
true
-
false
-
-
+
@@ -104,47 +90,163 @@
-
+
-
+
+
+
+
+
+
+ :
+
+
+
+
:
-
+
+
+
+
+
+
+
+
+
+
+
+ :
+
+
+
+
+
+
+ ,
-
+ "
+
+
+
+ "
{
-
+
}
-
-
+
[
]
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file