# HG changeset patch # User cin # Date 1523245426 -10800 # Node ID 191b81b2052b890765d8dfd1aad1e2c88f893810 # Parent 14162f9133a159497e639ec22fe62e012a4202c6 first version of the xslt transform from xml to json diff -r 14162f9133a1 -r 191b81b2052b data/jsondata.xml --- a/data/jsondata.xml Sun Apr 08 23:30:11 2018 +0300 +++ b/data/jsondata.xml Mon Apr 09 06:43:46 2018 +0300 @@ -1,12 +1,14 @@ - Harry - Busy - 23 -
+ Peter + Craig + Jackson + 49 +
1st avenue
-
- 2nd avenue -
+ + 123-23-12 + + false \ No newline at end of file diff -r 14162f9133a1 -r 191b81b2052b xslt/json-person.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xslt/json-person.xsl Mon Apr 09 06:43:46 2018 +0300 @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + +
+ <_type> + +
+
+ + + + + + + +
\ No newline at end of file diff -r 14162f9133a1 -r 191b81b2052b xslt/json.xsl --- a/xslt/json.xsl Sun Apr 08 23:30:11 2018 +0300 +++ b/xslt/json.xsl Mon Apr 09 06:43:46 2018 +0300 @@ -1,33 +1,70 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:exsl="http://exslt.org/common"> + + - - - - - - { - - } + + + + + - - + + + + + + + + + + + - - + + - + + + + + + + - + : - + + + , + + + + + + + + + + + + + + + + + + + + , @@ -35,10 +72,6 @@ - - null - - true @@ -54,19 +87,64 @@ - + - - + + + + + + null - + + + + + + + + + + + + + : + + + + + + + + + + { + + } + + + + + + + [ + + ] + + + + + + + + \ No newline at end of file