~zorba-coders/zorba/bugs-912586-912593-912722

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/json/json-jsonml_array-parse-04.xq

  • Committer: Cezar Andrei
  • Date: 2012-03-28 15:42:12 UTC
  • mfrom: (10606.1.129 zorba)
  • Revision ID: cezar.lp@cezarandrei.com-20120328154212-jh2heq49xcqjppce
Merge from trunck and resolve ChangeLog conflict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
 
2
 
 
3
let $json := '["ul",
 
4
  ["li",
 
5
  { "style" : "color:red" },
 
6
  "First Item"
 
7
  ],
 
8
  ["li",
 
9
  {
 
10
  "title" : "Some hover text.",
 
11
  "style" : "color:green"
 
12
  },
 
13
  "Second Item"
 
14
  ],
 
15
  ["li",
 
16
    ["span",
 
17
    { "class" : "code-example-third" },
 
18
    "Third"
 
19
    ],
 
20
  " Item"
 
21
  ]
 
22
]'
 
23
let $options :=
 
24
  <options xmlns="http://www.zorba-xquery.com/modules/converters/json-options">
 
25
    <json-format value="JsonML-array"/>
 
26
  </options>
 
27
return json:parse( $json, $options )