tests/fn/json-to-xml/_json-to-xml-test-set.xml
author Michael Kay <mike@saxonica.com>
Wed, 12 Aug 2015 14:23:07 +0100
changeset 1034 412d4f6bb7bf
parent 990 32ad9ac3c0e5
child 1091 5d753a892982
permissions -rw-r--r--
json-to-xml - reflect spec changes
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     2
<test-set xmlns:xs="http://www.w3.org/2001/XMLSchema"
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
     3
    xmlns="http://www.w3.org/2012/10/xslt-test-catalog" xmlns:j="http://www.w3.org/2005/xpath-functions"
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
     4
    name="json-to-xml">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
     5
    <description>json-to-xml() function</description>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
     6
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
     7
    <!-- Tests for type validation required - these need some machanism for storing a schema -->
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
     9
    <environment name="json-to-xml-A">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    10
        <stylesheet file="json-to-xml-A.xsl"/>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    11
    </environment>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    12
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    13
    <environment name="json-to-xml-E">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    14
        <stylesheet file="json-to-xml-E.xsl"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    15
    </environment>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    16
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    17
    <!-- It would be helpful to assert schema-awareness on the stylesheet in a shared environment
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    18
    Sadly 'dependencies' aren't appropriate and just adding 'schema' doesn't mean the same thing -->
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    19
    <environment name="json-to-xml-typed">
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    20
        <!--<namespace prefix="j" uri="http://www.w3.org/2005/xpath-functions"/>-->
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    21
        <!-- <schema uri="http://www.w3.org/2005/xpath-functions" file="schema-for-json.xsd">
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    22
            <description>JSON XML representation schema</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    23
            <created by="John Lumley" on="2013-10-03"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    24
        </schema>-->
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    25
        <!--<stylesheet file="json-to-xml-typed.xsl"/>-->
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    26
    </environment>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    27
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    28
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    29
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    30
    <dependencies>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    31
        <spec value="XSLT30+"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    32
        <!--<feature value="schema_aware"/>-->
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    33
    </dependencies>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    34
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    35
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    36
    <test-case name="json-to-xml-001">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    37
        <description>Empty object as document-node</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    38
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    39
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    40
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    41
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    42
            <initial-template name="json-to-xml-001"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    43
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    44
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    45
            <assert-xml ignore-prefixes="true"><![CDATA[<j:map xmlns:j="http://www.w3.org/2005/xpath-functions"/>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    46
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    47
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    48
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    49
    <test-case name="json-to-xml-002">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    50
        <description>Empty object</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    51
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    52
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    53
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    54
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    55
            <initial-template name="json-to-xml-002"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    56
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    57
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    58
            <assert-xml ignore-prefixes="true"><![CDATA[<j:map xmlns:j="http://www.w3.org/2005/xpath-functions"/>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    59
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    60
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    61
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    62
    <test-case name="json-to-xml-003">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    63
        <description>Empty array as document-node</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    64
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    65
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    66
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    67
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    68
            <initial-template name="json-to-xml-003"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    69
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    70
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    71
            <assert-xml ignore-prefixes="true"><![CDATA[<j:array xmlns:j="http://www.w3.org/2005/xpath-functions"/>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    72
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    73
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    74
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    75
    <test-case name="json-to-xml-004">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    76
        <description>Empty array</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    77
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    78
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    79
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    80
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    81
            <initial-template name="json-to-xml-004"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    82
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    83
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    84
            <assert-xml ignore-prefixes="true"><![CDATA[<j:array xmlns:j="http://www.w3.org/2005/xpath-functions"/>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    85
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    86
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    87
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    88
    <test-case name="json-to-xml-005">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    89
        <description>Array Number</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    90
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    91
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    92
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    93
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    94
            <initial-template name="json-to-xml-005"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
    95
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    96
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
    97
            <assert-xml ignore-prefixes="true"><![CDATA[<j:array xmlns:j="http://www.w3.org/2005/xpath-functions"><j:number>1</j:number></j:array>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    98
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
    99
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   100
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   101
    <test-case name="json-to-xml-006">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   102
        <description>Array String</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   103
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   104
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   105
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   106
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   107
            <initial-template name="json-to-xml-006"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   108
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   109
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   110
            <assert-xml ignore-prefixes="true"><![CDATA[<j:array xmlns:j="http://www.w3.org/2005/xpath-functions"><j:string>a</j:string></j:array>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   111
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   112
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   113
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   114
    <test-case name="json-to-xml-007">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   115
        <description>Array True</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   116
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   117
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   118
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   119
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   120
            <initial-template name="json-to-xml-007"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   121
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   122
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   123
            <assert-xml ignore-prefixes="true"><![CDATA[<j:array xmlns:j="http://www.w3.org/2005/xpath-functions"><j:boolean>true</j:boolean></j:array>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   124
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   125
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   126
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   127
    <test-case name="json-to-xml-008">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   128
        <description>Array False</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   129
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   130
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   131
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   132
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   133
            <initial-template name="json-to-xml-008"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   134
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   135
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   136
            <assert-xml ignore-prefixes="true"><![CDATA[<j:array xmlns:j="http://www.w3.org/2005/xpath-functions"><j:boolean>false</j:boolean></j:array>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   137
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   138
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   139
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   140
    <test-case name="json-to-xml-009">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   141
        <description>Array Null</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   142
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   143
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   144
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   145
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   146
            <initial-template name="json-to-xml-009"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   147
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   148
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   149
            <assert-xml ignore-prefixes="true"><![CDATA[<j:array xmlns:j="http://www.w3.org/2005/xpath-functions"><j:null/></j:array>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   150
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   151
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   152
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   153
    <test-case name="json-to-xml-010">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   154
        <description>Larger JSON input</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   155
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   156
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   157
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   158
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   159
            <initial-template name="json-to-xml-010"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   160
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   161
        <result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   162
            <all-of>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   163
                <assert>/j:map/j:map[@key='glossary']/j:string[@key='title']</assert>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   164
                <assert>/j:map/j:map[@key='glossary']/j:map[@key='GlossDiv']</assert>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   165
            </all-of>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   166
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   167
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   168
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   169
    <test-case name="json-to-xml-011">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   170
        <description>Larger JSON input</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   171
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   172
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   173
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   174
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   175
            <initial-template name="json-to-xml-011"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   176
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   177
        <result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   178
            <all-of>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   179
                <assert>/j:map/j:map[@key='menu']/j:string[@key='header'][.='SVG Viewer']</assert>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   180
                <assert>/j:map/j:map[@key='menu']/j:array[@key='items']/j:map[not(@*)]/j:string[@key='id'][.='Open']</assert>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   181
            </all-of>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   182
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   183
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   184
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   185
    <test-case name="json-to-xml-012">
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   186
        <description>Escaped text</description>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   187
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   188
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   189
        <environment ref="json-to-xml-A"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   190
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   191
            <initial-template name="json-to-xml-012"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   192
        </test>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   193
        <result>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   194
            <assert-xml ignore-prefixes="true"><![CDATA[<j:map xmlns:j="http://www.w3.org/2005/xpath-functions"><j:string key="key">Data with " within it</j:string></j:map>]]></assert-xml>
492
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   195
        </result>
30902f537a35 More JSON tests
Michael Kay <mike@saxonica.com>
parents: 491
diff changeset
   196
    </test-case>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   197
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   198
    <!-- Escaping tests -->
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   199
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   200
    <test-case name="json-to-xml-escape-001">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   201
        <description>Escaped quote string</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   202
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   203
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   204
        <environment ref="json-to-xml-A"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   205
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   206
            <initial-template name="json-to-xml-escape-001"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   207
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   208
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   209
            <all-of>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   210
                <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   211
                <assert>. = 'Data with " within it'</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   212
                <any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   213
                    <assert>empty(*/@escaped)</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   214
                    <assert>*/@escaped eq "false"</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   215
                </any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   216
                <any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   217
                    <assert>empty(*/@escaped-key)</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   218
                    <assert>*/@escaped-key eq "false"</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   219
                </any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   220
            </all-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   221
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   222
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   223
    <test-case name="json-to-xml-escape-002">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   224
        <description>Escaped quote and key string</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   225
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   226
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   227
        <environment ref="json-to-xml-A"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   228
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   229
            <initial-template name="json-to-xml-escape-002"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   230
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   231
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   232
            <all-of>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   233
                <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   234
                <assert>. = 'Data with " within it'</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   235
                <assert>*/@key eq 'Key " with quote'</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   236
                <any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   237
                    <assert>empty(*/@escaped)</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   238
                    <assert>*/@escaped eq "false"</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   239
                </any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   240
                <any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   241
                    <assert>empty(*/@escaped-key)</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   242
                    <assert>*/@escaped-key eq "false"</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   243
                </any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   244
            </all-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   245
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   246
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   247
    <test-case name="json-to-xml-escape-003">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   248
        <description>Escaped quote string - remaining escaped</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   249
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   250
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   251
        <modified by="Debbie Lockett" on="2015-08-12" change="Change expected result, quotes not escaped, see bug #28995"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   252
        <environment ref="json-to-xml-A"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   253
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   254
            <initial-template name="json-to-xml-escape-003"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   255
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   256
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   257
            <all-of>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   258
                <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   259
                <assert>. = 'Data with " within it'</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   260
                <!--<assert>*/@escaped eq "true"</assert>-->
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   261
                <any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   262
                    <assert>empty(*/@escaped-key)</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   263
                    <assert>*/@escaped-key eq "false"</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   264
                </any-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   265
            </all-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   266
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   267
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   268
    <test-case name="json-to-xml-escape-004">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   269
        <description>Escaped quote string and key - remaining escaped</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   270
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   271
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   272
        <modified by="Debbie Lockett" on="2015-08-12" change="Change expected result, quotes not escaped, see bug #28995"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   273
        <environment ref="json-to-xml-A"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   274
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   275
            <initial-template name="json-to-xml-escape-004"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   276
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   277
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   278
            <all-of>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   279
                <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   280
                <assert>. = 'Data with " within it'</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   281
                <assert>*/@key eq 'Key " with quote'</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   282
                <!--<assert>*/@escaped eq "true"</assert>-->
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   283
                <!--<assert>*/@escaped-key eq "true"</assert>-->
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   284
            </all-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   285
        </result>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   286
    </test-case>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   287
    <test-case name="json-to-xml-escape-005">
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   288
        <description>Escaped character string - remaining escaped</description>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   289
        <created by="Debbie Lockett" on="2015-08-12"/>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   290
        <environment ref="json-to-xml-A"/>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   291
        <test>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   292
            <initial-template name="json-to-xml-escape-005"/>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   293
        </test>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   294
        <result>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   295
            <all-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   296
                <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   297
                <assert>. = 'Data with \f within it'</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   298
                <assert>*/@escaped eq "true"</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   299
                <any-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   300
                    <assert>empty(*/@escaped-key)</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   301
                    <assert>*/@escaped-key eq "false"</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   302
                </any-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   303
            </all-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   304
        </result>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   305
    </test-case>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   306
    <test-case name="json-to-xml-escape-006">
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   307
        <description>Escaped character string and key - remaining escaped</description>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   308
        <created by="Debbie Lockett" on="2015-08-12"/>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   309
        <environment ref="json-to-xml-A"/>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   310
        <test>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   311
            <initial-template name="json-to-xml-escape-006"/>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   312
        </test>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   313
        <result>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   314
            <all-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   315
                <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   316
                <assert>. = 'Data with \f within it'</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   317
                <assert>*/@key eq 'Key \f with special character'</assert>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   318
                <assert>*/@escaped eq "true"</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   319
                <assert>*/@escaped-key eq "true"</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   320
            </all-of>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   321
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   322
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   323
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   324
    <!-- Validation tests: nodes are given type -->
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   325
    <!-- Note that the type tests are actually carried out in the XSLT transforms,
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   326
    as it doesn't appear possible to associate schemas with result documents in the XSLT test schema. -->
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   327
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   328
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   329
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   330
    <test-case name="json-to-xml-typed-001">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   331
        <description>Basic type</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   332
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   333
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   334
        <environment ref="json-to-xml-typed"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   335
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   336
            <feature value="schema_aware"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   337
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   338
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   339
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   340
            <initial-template name="json-to-xml-typed-001"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   341
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   342
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   343
            <assert>xs:boolean(*) = true()</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   344
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   345
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   346
    <test-case name="json-to-xml-typed-002">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   347
        <description>Basic parsing typed</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   348
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   349
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   350
        <environment ref="json-to-xml-typed"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   351
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   352
            <feature value="schema_aware"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   353
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   354
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   355
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   356
            <initial-template name="json-to-xml-typed-002"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   357
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   358
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   359
            <assert>xs:boolean(*) = true()</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   360
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   361
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   362
    <test-case name="json-to-xml-typed-003">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   363
        <description>Array Number typed</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   364
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   365
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   366
        <environment ref="json-to-xml-typed"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   367
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   368
            <feature value="schema_aware"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   369
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   370
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   371
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   372
            <initial-template name="json-to-xml-typed-004"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   373
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   374
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   375
            <assert>xs:boolean(*) = true()</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   376
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   377
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   378
    <test-case name="json-to-xml-typed-004">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   379
        <description>Array String typed</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   380
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   381
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   382
        <environment ref="json-to-xml-typed"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   383
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   384
            <feature value="schema_aware"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   385
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   386
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   387
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   388
            <initial-template name="json-to-xml-typed-004"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   389
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   390
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   391
            <assert>xs:boolean(*) = true()</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   392
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   393
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   394
    <test-case name="json-to-xml-typed-005">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   395
        <description>Array True typed</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   396
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   397
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   398
        <environment ref="json-to-xml-typed"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   399
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   400
            <feature value="schema_aware"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   401
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   402
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   403
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   404
            <initial-template name="json-to-xml-typed-005"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   405
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   406
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   407
            <assert>xs:boolean(*) = true()</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   408
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   409
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   410
    <test-case name="json-to-xml-typed-006">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   411
        <description>Array False typed</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   412
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   413
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   414
        <environment ref="json-to-xml-typed"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   415
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   416
            <feature value="schema_aware"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   417
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   418
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   419
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   420
            <initial-template name="json-to-xml-typed-006"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   421
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   422
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   423
            <assert>xs:boolean(*) = true()</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   424
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   425
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   426
    <test-case name="json-to-xml-typed-007">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   427
        <description>Array Null typed</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   428
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   429
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   430
        <environment ref="json-to-xml-typed"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   431
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   432
            <feature value="schema_aware"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   433
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   434
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   435
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   436
            <initial-template name="json-to-xml-typed-007"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   437
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   438
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   439
            <assert>xs:boolean(*) = true()</assert>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   440
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   441
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   442
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   443
    <test-case name="json-to-xml-typed-010">
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   444
        <description>Error when requesting type annotation on a non-schema aware
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   445
            processor</description>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   446
        <created by="John Lumley" on="2013-10-08"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   447
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
579
77dc9d71869a Tidied json-to-xml() type checking tests
John Lumley <john@saxonica.com>
parents: 573
diff changeset
   448
        <environment ref="json-to-xml-typed"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   449
        <dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   450
            <feature value="schema_aware" satisfied="false"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   451
        </dependencies>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   452
        <test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   453
            <stylesheet file="json-to-xml-typed.xsl"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   454
            <initial-template name="json-to-xml-typed-001"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   455
        </test>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   456
        <result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   457
            <error code="XTDE3245"/>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   458
        </result>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   459
    </test-case>
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   460
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   461
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   462
    <!-- Error tests -->
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   463
    <test-case name="json-to-xml-error-001">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   464
        <description>Empty string</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   465
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   466
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   467
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   468
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   469
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   470
            <initial-template name="json-to-xml-error-001"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   471
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   472
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   473
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   474
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   475
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   476
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   477
    <test-case name="json-to-xml-error-002">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   478
        <description>Unknown token</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   479
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   480
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   481
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   482
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   483
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   484
            <initial-template name="json-to-xml-error-002"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   485
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   486
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   487
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   488
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   489
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   490
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   491
    <test-case name="json-to-xml-error-003">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   492
        <description>Unknown token</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   493
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   494
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   495
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   496
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   497
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   498
            <initial-template name="json-to-xml-error-003"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   499
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   500
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   501
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   502
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   503
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   504
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   505
    <test-case name="json-to-xml-error-004">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   506
        <description>Extra token</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   507
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   508
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   509
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   510
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   511
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   512
            <initial-template name="json-to-xml-error-004"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   513
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   514
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   515
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   516
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   517
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   518
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   519
    <test-case name="json-to-xml-error-005">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   520
        <description>Non-string key</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   521
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   522
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   523
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   524
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   525
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   526
            <initial-template name="json-to-xml-error-005"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   527
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   528
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   529
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   530
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   531
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   532
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   533
    <test-case name="json-to-xml-error-006">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   534
        <description>Non-string key</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   535
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   536
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   537
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   538
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   539
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   540
            <initial-template name="json-to-xml-error-006"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   541
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   542
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   543
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   544
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   545
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   546
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   547
    <test-case name="json-to-xml-error-007">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   548
        <description>Missing colon after key</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   549
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   550
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   551
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   552
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   553
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   554
            <initial-template name="json-to-xml-error-007"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   555
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   556
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   557
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   558
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   559
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   560
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   561
    <test-case name="json-to-xml-error-008">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   562
        <description>Extra token after map value</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   563
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   564
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   565
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   566
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   567
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   568
            <initial-template name="json-to-xml-error-008"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   569
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   570
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   571
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   572
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   573
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   574
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   575
    <test-case name="json-to-xml-error-009">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   576
        <description>Extra token after array value</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   577
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   578
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   579
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   580
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   581
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   582
            <initial-template name="json-to-xml-error-009"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   583
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   584
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   585
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   586
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   587
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   588
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   589
    <test-case name="json-to-xml-error-010">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   590
        <description>Leading + on number</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   591
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   592
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   593
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   594
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   595
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   596
            <initial-template name="json-to-xml-error-010"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   597
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   598
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   599
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   600
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   601
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   602
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   603
    <test-case name="json-to-xml-error-011">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   604
        <description>Redundant leading 0 on number</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   605
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   606
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   607
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   608
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   609
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   610
            <initial-template name="json-to-xml-error-011"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   611
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   612
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   613
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   614
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   615
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   616
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   617
    <test-case name="json-to-xml-error-012">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   618
        <description>Hex number</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   619
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   620
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   621
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   622
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   623
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   624
            <initial-template name="json-to-xml-error-012"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   625
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   626
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   627
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   628
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   629
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   630
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   631
    <test-case name="json-to-xml-error-013">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   632
        <description>Trailing backslash</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   633
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   634
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   635
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   636
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   637
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   638
            <initial-template name="json-to-xml-error-013"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   639
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   640
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   641
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   642
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   643
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   644
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   645
    <test-case name="json-to-xml-error-014">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   646
        <description>Short unicode</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   647
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   648
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   649
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   650
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   651
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   652
            <initial-template name="json-to-xml-error-014"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   653
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   654
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   655
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   656
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   657
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   658
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   659
    <test-case name="json-to-xml-error-015">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   660
        <description>Short unicode</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   661
        <created by="John Lumley" on="2013-10-01"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   662
        <modified by="John Lumley" on="2014-07-22"
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   663
            change="changed from XTDE3240 to correct error code"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   664
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   665
        <modified by="Debbie Lockett" on="2015-08-12" change="No longer an error, use default escape=false and replacement char"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   666
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   667
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   668
            <initial-template name="json-to-xml-error-015"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   669
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   670
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   671
            <all-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   672
                <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}array)</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   673
                <assert>. = 'String with &#xFFFD; backspace'</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   674
                <assert>empty(*/@escaped)</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   675
                <assert>empty(*/@escaped-key)</assert>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   676
            </all-of>
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   677
            <!--<error code="XTDE3250"/>-->
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   678
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   679
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   680
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   681
    <test-case name="json-to-xml-error-016">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   682
        <description>Trailing comma in object</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   683
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   684
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   685
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   686
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   687
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   688
            <initial-template name="json-to-xml-error-016"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   689
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   690
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   691
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   692
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   693
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   694
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   695
    <test-case name="json-to-xml-error-017">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   696
        <description>Trailing comma in object - liberal spec</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   697
        <created by="John Lumley" on="2013-10-01"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   698
        <modified by="John Lumley" on="2014-07-22"
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   699
            change="option 'spec':'liberal' altered to 'liberal':true()"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   700
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   701
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   702
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   703
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   704
            <initial-template name="json-to-xml-error-017"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   705
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   706
        <result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   707
            <any-of>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   708
                <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   709
                <assert>/*</assert>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   710
            </any-of>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   711
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   712
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   713
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   714
    <test-case name="json-to-xml-error-018">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   715
        <description>Trailing comma in array</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   716
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   717
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   718
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   719
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   720
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   721
            <initial-template name="json-to-xml-error-018"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   722
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   723
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   724
            <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   725
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   726
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   727
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   728
    <test-case name="json-to-xml-error-019">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   729
        <description>Trailing comma in array - liberal spec</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   730
        <created by="John Lumley" on="2013-10-01"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   731
        <modified by="John Lumley" on="2014-07-22"
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   732
            change="option 'spec':'liberal' altered to 'liberal':true()"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   733
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   734
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   735
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   736
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   737
            <initial-template name="json-to-xml-error-019"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   738
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   739
        <result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   740
            <any-of>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   741
                <error code="FOJS0001"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   742
                <assert>/*</assert>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   743
            </any-of>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   744
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   745
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   746
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   747
    <test-case name="json-to-xml-error-020">
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   748
        <description>Liberal option error</description>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   749
        <created by="John Lumley" on="2013-10-01"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   750
        <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   751
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   752
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   753
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   754
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   755
            <initial-template name="json-to-xml-error-020"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   756
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   757
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   758
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   759
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   760
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   761
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   762
    <test-case name="json-to-xml-error-021">
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   763
        <description>Liberal option error</description>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   764
        <created by="John Lumley" on="2013-10-01"/>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   765
        <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   766
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   767
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   768
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   769
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   770
            <initial-template name="json-to-xml-error-021"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   771
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   772
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   773
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   774
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   775
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   776
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   777
    <test-case name="json-to-xml-error-022">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   778
        <description>Validate option error</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   779
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   780
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   781
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   782
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   783
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   784
            <initial-template name="json-to-xml-error-022"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   785
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   786
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   787
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   788
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   789
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   790
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   791
    <test-case name="json-to-xml-error-023">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   792
        <description>Validate option error</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   793
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   794
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   795
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   796
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   797
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   798
            <initial-template name="json-to-xml-error-023"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   799
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   800
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   801
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   802
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   803
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   804
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   805
    <test-case name="json-to-xml-error-024">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   806
        <description>Validate option error</description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   807
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   808
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   809
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   810
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   811
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   812
            <initial-template name="json-to-xml-error-024"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   813
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   814
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   815
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   816
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   817
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   818
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   819
    <test-case name="json-to-xml-error-025">
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   820
        <description>Escape option error</description>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   821
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   822
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   823
        <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape, Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   824
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   825
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   826
            <initial-template name="json-to-xml-error-025"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   827
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   828
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   829
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   830
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   831
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   832
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   833
    <test-case name="json-to-xml-error-026">
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   834
        <description>Escape option error</description>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   835
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   836
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   837
        <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape, Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   838
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   839
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   840
            <initial-template name="json-to-xml-error-026"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   841
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   842
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   843
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   844
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   845
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   846
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   847
    <test-case name="json-to-xml-error-027">
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   848
        <description>Escape option error</description>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   849
        <created by="John Lumley" on="2013-10-01"/>
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   850
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   851
        <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape, Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   852
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   853
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   854
            <initial-template name="json-to-xml-error-027"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   855
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   856
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   857
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   858
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   859
    </test-case>
573
d5641052be1f Result node tytpe tests for jsn-to-xml()
John Lumley <john@saxonica.com>
parents: 492
diff changeset
   860
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   861
    <test-case name="json-to-xml-error-028">
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   862
        <description>Fallback option not function </description>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   863
        <created by="John Lumley" on="2013-10-01"/>
746
04bf7cbf4a13 Related to Bug 27104: wrong syntax for maps in json-to-xml-E.xsl
abraaksm
parents: 590
diff changeset
   864
        <modified by="Abel Braaksma" on="2014-10-21" change="':=' for maps is replaced by ':'" />
990
32ad9ac3c0e5 Namespace change for JSON (spec bug 28174)
Michael Kay <mike@saxonica.com>
parents: 746
diff changeset
   865
        <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   866
        <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   867
        <environment ref="json-to-xml-E"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   868
        <test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   869
            <initial-template name="json-to-xml-error-028"/>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   870
        </test>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   871
        <result>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 990
diff changeset
   872
            <error code="XPTY0004"/>
491
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   873
        </result>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   874
    </test-case>
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   875
2000e3e45e35 Add JSON tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
   876
</test-set>