tests/fn/json-to-xml/json-to-xml-E.xsl
author Michael Kay <mike@saxonica.com>
Wed, 12 Aug 2015 14:23:07 +0100
changeset 1034 412d4f6bb7bf
parent 938 48070b20cd79
permissions -rw-r--r--
json-to-xml - reflect spec changes
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     2
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     3
    <xsl:template name="json-to-xml-error-001">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     4
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     5
            <description>Empty string</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     6
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     7
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     8
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
     9
        <xsl:variable name="json" select="''"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    10
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    11
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    12
    <xsl:template name="json-to-xml-error-002">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    13
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    14
            <description>Unknown token</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    15
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    16
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    17
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    18
        <xsl:variable name="json">{error}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    19
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    20
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    21
    <xsl:template name="json-to-xml-error-003">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    22
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    23
            <description>Unknown token</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    24
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    25
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    26
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    27
        <xsl:variable name="json">{terriblyWrong}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    28
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    29
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    30
    <xsl:template name="json-to-xml-error-004">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    31
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    32
            <description>Extra token</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    33
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    34
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    35
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    36
        <xsl:variable name="json">{}"extra token"</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    37
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    38
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    39
    <xsl:template name="json-to-xml-error-005">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    40
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    41
            <description>Non-string key</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    42
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    43
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    44
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    45
        <xsl:variable name="json">{1:1}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    46
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    47
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    48
    <xsl:template name="json-to-xml-error-006">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    49
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    50
            <description>Non-string key</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    51
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    52
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    53
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    54
        <xsl:variable name="json">{true:1}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    55
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    56
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    57
    <xsl:template name="json-to-xml-error-007">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    58
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    59
            <description>Missing colon after key</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    60
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    61
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    62
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    63
        <xsl:variable name="json">{"key" 1}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    64
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    65
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    66
    <xsl:template name="json-to-xml-error-008">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    67
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    68
            <description>Extra token after map value</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    69
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    70
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    71
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    72
        <xsl:variable name="json">{"key":1 2}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    73
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    74
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    75
    <xsl:template name="json-to-xml-error-009">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    76
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    77
            <description>Extra token after array value</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    78
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    79
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    80
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    81
        <xsl:variable name="json">["key",1 2]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    82
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    83
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    84
    <xsl:template name="json-to-xml-error-010">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    85
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    86
            <description>Leading + on number</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    87
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    88
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    89
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    90
        <xsl:variable name="json">[+1]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    91
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    92
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    93
    <xsl:template name="json-to-xml-error-011">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    94
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    95
            <description>Redundant leading 0 on number</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    96
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    97
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    98
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
    99
        <xsl:variable name="json">[01]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   100
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   101
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   102
    <xsl:template name="json-to-xml-error-012">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   103
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   104
            <description>Hex number</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   105
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   106
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   107
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   108
        <xsl:variable name="json">[1234A]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   109
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   110
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   111
    <xsl:template name="json-to-xml-error-013">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   112
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   113
            <description>Trailing backslash</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   114
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   115
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   116
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   117
        <xsl:variable name="json">["123\"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   118
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   119
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   120
    <xsl:template name="json-to-xml-error-014">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   121
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   122
            <description>Short unicode</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   123
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   124
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   125
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   126
        <xsl:variable name="json">["123\u234"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   127
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   128
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   129
    <xsl:template name="json-to-xml-error-015">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   130
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   131
            <description>Unicode null</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   132
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   133
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   134
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   135
        <xsl:variable name="json">["String with \u0000 backspace"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   136
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   137
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   138
    <xsl:template name="json-to-xml-error-016">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   139
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   140
            <description>Trailing comma in object</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   141
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   142
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   143
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   144
        <xsl:variable name="json">{"key":123,}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   145
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   146
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   147
    <xsl:template name="json-to-xml-error-017">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   148
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   149
            <description>Trailing comma in object - liberal spec</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   150
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   151
            <modified by="John Lumley" on="2014-07-22"
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   152
                change="option 'spec':'liberal' altered to 'liberal':true()"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   153
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   154
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   155
        <xsl:variable name="json">{"key":123 ,}</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   156
        <xsl:copy-of select="json-to-xml($json,map{'liberal':true()})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   157
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   158
    <xsl:template name="json-to-xml-error-018">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   159
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   160
            <description>Trailing comma in array</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   161
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   162
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   163
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   164
        <xsl:variable name="json">["key",123,]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   165
        <xsl:copy-of select="json-to-xml($json)"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   166
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   167
    <xsl:template name="json-to-xml-error-019">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   168
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   169
            <description>Trailing comma in array - liberal spec</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   170
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   171
            <modified by="John Lumley" on="2014-07-22"
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   172
                change="option 'spec':'liberal' altered to 'liberal':true()"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   173
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   174
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   175
        <xsl:variable name="json">["key",123,]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   176
        <xsl:copy-of select="json-to-xml($json,map{'liberal':true()})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   177
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   178
    <xsl:template name="json-to-xml-error-020">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   179
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   180
            <description>Liberal option error</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   181
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   182
            <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   183
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   184
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   185
        <xsl:variable name="json">["String"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   186
        <xsl:copy-of select="json-to-xml($json,map{'liberal':()})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   187
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   188
    <xsl:template name="json-to-xml-error-021">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   189
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   190
            <description>Liberal option error</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   191
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   192
            <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   193
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   194
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   195
        <xsl:variable name="json">["String"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   196
        <xsl:copy-of select="json-to-xml($json,map{'liberal':'some string'})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   197
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   198
    <xsl:template name="json-to-xml-error-022">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   199
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   200
            <description>Validate option error</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   201
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   202
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   203
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   204
        <xsl:variable name="json">["String"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   205
        <xsl:copy-of select="json-to-xml($json, map{'validate':()})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   206
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   207
    <xsl:template name="json-to-xml-error-023">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   208
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   209
            <description>Validate option error</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   210
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   211
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   212
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   213
        <xsl:variable name="json">["String"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   214
        <xsl:copy-of select="json-to-xml($json, map{'validate':(true(),true())})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   215
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   216
    <xsl:template name="json-to-xml-error-024">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   217
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   218
            <description>Validate option error</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   219
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   220
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   221
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   222
        <xsl:variable name="json">["String"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   223
        <xsl:copy-of select="json-to-xml($json, map{'validate':'EMCA-262'})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   224
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   225
    <xsl:template name="json-to-xml-error-025">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   226
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   227
            <description>Unescape option error</description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   228
            <created by="John Lumley" on="2013-10-01"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   229
            <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape"/>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   230
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   231
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   232
        <xsl:variable name="json">["String"]</xsl:variable>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   233
        <xsl:copy-of select="json-to-xml($json, map{'escape':()})"/>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   234
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   235
    <xsl:template name="json-to-xml-error-026">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   236
        <xsl:variable name="metadata">
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   237
            <description>Escape option error</description>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   238
            <created by="John Lumley" on="2013-10-01"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   239
            <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape"/>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   240
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   241
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   242
        <xsl:variable name="json">["String"]</xsl:variable>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   243
        <xsl:copy-of select="json-to-xml($json,map{'escape':(true(),true())})"/>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   244
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   245
    <xsl:template name="json-to-xml-error-027">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   246
        <xsl:variable name="metadata">
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   247
            <description>Escape option error</description>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   248
            <created by="John Lumley" on="2013-10-01"/>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   249
            <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape"/>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   250
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   251
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   252
        <xsl:variable name="json">["String"]</xsl:variable>
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 938
diff changeset
   253
        <xsl:copy-of select="json-to-xml($json, map{'escape':'EMCA-262'})"/>
938
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   254
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   255
    <xsl:template name="json-to-xml-error-028">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   256
        <xsl:variable name="metadata">
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   257
            <description>Fallback option not function </description>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   258
            <created by="John Lumley" on="2013-10-01"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   259
            <modified by="Abel Braaksma" on="2014-10-21" change="':=' for maps is replaced by ':'" />
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   260
            <environment ref="JSON-XML"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   261
        </xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   262
        <xsl:variable name="json">["String"]</xsl:variable>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   263
        <xsl:copy-of select="json-to-xml($json,map{'fallback':'dummy'})"/>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   264
    </xsl:template>
48070b20cd79 Reverting json-to-xml tests (they were partially deleted)
abraaksm
parents:
diff changeset
   265
</xsl:stylesheet>