tests/fn/json-to-xml/_json-to-xml-test-set.xml
changeset 1034 412d4f6bb7bf
parent 990 32ad9ac3c0e5
child 1091 5d753a892982
equal deleted inserted replaced
1033:82df2f880108 1034:412d4f6bb7bf
   246     </test-case>
   246     </test-case>
   247     <test-case name="json-to-xml-escape-003">
   247     <test-case name="json-to-xml-escape-003">
   248         <description>Escaped quote string - remaining escaped</description>
   248         <description>Escaped quote string - remaining escaped</description>
   249         <created by="John Lumley" on="2013-10-01"/>
   249         <created by="John Lumley" on="2013-10-01"/>
   250         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   250         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   251         <modified by="Debbie Lockett" on="2015-08-12" change="Change expected result, quotes not escaped, see bug #28995"/>
   251         <environment ref="json-to-xml-A"/>
   252         <environment ref="json-to-xml-A"/>
   252         <test>
   253         <test>
   253             <initial-template name="json-to-xml-escape-003"/>
   254             <initial-template name="json-to-xml-escape-003"/>
   254         </test>
   255         </test>
   255         <result>
   256         <result>
   256             <all-of>
   257             <all-of>
   257                 <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
   258                 <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
   258                 <assert>. = 'Data with \" within it'</assert>
   259                 <assert>. = 'Data with " within it'</assert>
       
   260                 <!--<assert>*/@escaped eq "true"</assert>-->
       
   261                 <any-of>
       
   262                     <assert>empty(*/@escaped-key)</assert>
       
   263                     <assert>*/@escaped-key eq "false"</assert>
       
   264                 </any-of>
       
   265             </all-of>
       
   266         </result>
       
   267     </test-case>
       
   268     <test-case name="json-to-xml-escape-004">
       
   269         <description>Escaped quote string and key - remaining escaped</description>
       
   270         <created by="John Lumley" on="2013-10-01"/>
       
   271         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   272         <modified by="Debbie Lockett" on="2015-08-12" change="Change expected result, quotes not escaped, see bug #28995"/>
       
   273         <environment ref="json-to-xml-A"/>
       
   274         <test>
       
   275             <initial-template name="json-to-xml-escape-004"/>
       
   276         </test>
       
   277         <result>
       
   278             <all-of>
       
   279                 <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
       
   280                 <assert>. = 'Data with " within it'</assert>
       
   281                 <assert>*/@key eq 'Key " with quote'</assert>
       
   282                 <!--<assert>*/@escaped eq "true"</assert>-->
       
   283                 <!--<assert>*/@escaped-key eq "true"</assert>-->
       
   284             </all-of>
       
   285         </result>
       
   286     </test-case>
       
   287     <test-case name="json-to-xml-escape-005">
       
   288         <description>Escaped character string - remaining escaped</description>
       
   289         <created by="Debbie Lockett" on="2015-08-12"/>
       
   290         <environment ref="json-to-xml-A"/>
       
   291         <test>
       
   292             <initial-template name="json-to-xml-escape-005"/>
       
   293         </test>
       
   294         <result>
       
   295             <all-of>
       
   296                 <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
       
   297                 <assert>. = 'Data with \f within it'</assert>
   259                 <assert>*/@escaped eq "true"</assert>
   298                 <assert>*/@escaped eq "true"</assert>
   260                 <any-of>
   299                 <any-of>
   261                     <assert>empty(*/@escaped-key)</assert>
   300                     <assert>empty(*/@escaped-key)</assert>
   262                     <assert>*/@escaped-key eq "false"</assert>
   301                     <assert>*/@escaped-key eq "false"</assert>
   263                 </any-of>
   302                 </any-of>
   264             </all-of>
   303             </all-of>
   265         </result>
   304         </result>
   266     </test-case>
   305     </test-case>
   267     <test-case name="json-to-xml-escape-004">
   306     <test-case name="json-to-xml-escape-006">
   268         <description>Escaped quote string and key - remaining escaped</description>
   307         <description>Escaped character string and key - remaining escaped</description>
   269         <created by="John Lumley" on="2013-10-01"/>
   308         <created by="Debbie Lockett" on="2015-08-12"/>
   270         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   309         <environment ref="json-to-xml-A"/>
   271         <environment ref="json-to-xml-A"/>
   310         <test>
   272         <test>
   311             <initial-template name="json-to-xml-escape-006"/>
   273             <initial-template name="json-to-xml-escape-004"/>
       
   274         </test>
   312         </test>
   275         <result>
   313         <result>
   276             <all-of>
   314             <all-of>
   277                 <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
   315                 <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}string)</assert>
   278                 <assert>. = 'Data with \" within it'</assert>
   316                 <assert>. = 'Data with \f within it'</assert>
   279                 <assert>*/@key eq 'Key \" with quote'</assert>
   317                 <assert>*/@key eq 'Key \f with special character'</assert>
   280                 <assert>*/@escaped eq "true"</assert>
   318                 <assert>*/@escaped eq "true"</assert>
   281                 <assert>*/@escaped-key eq "true"</assert>
   319                 <assert>*/@escaped-key eq "true"</assert>
   282             </all-of>
   320             </all-of>
   283         </result>
   321         </result>
   284     </test-case>
   322     </test-case>
   424     <!-- Error tests -->
   462     <!-- Error tests -->
   425     <test-case name="json-to-xml-error-001">
   463     <test-case name="json-to-xml-error-001">
   426         <description>Empty string</description>
   464         <description>Empty string</description>
   427         <created by="John Lumley" on="2013-10-01"/>
   465         <created by="John Lumley" on="2013-10-01"/>
   428         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   466         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   467         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   429         <environment ref="json-to-xml-E"/>
   468         <environment ref="json-to-xml-E"/>
   430         <test>
   469         <test>
   431             <initial-template name="json-to-xml-error-001"/>
   470             <initial-template name="json-to-xml-error-001"/>
   432         </test>
   471         </test>
   433         <result>
   472         <result>
   434             <error code="XTDE3240"/>
   473             <error code="FOJS0001"/>
   435         </result>
   474         </result>
   436     </test-case>
   475     </test-case>
   437 
   476 
   438     <test-case name="json-to-xml-error-002">
   477     <test-case name="json-to-xml-error-002">
   439         <description>Unknown token</description>
   478         <description>Unknown token</description>
   440         <created by="John Lumley" on="2013-10-01"/>
   479         <created by="John Lumley" on="2013-10-01"/>
   441         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   480         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   481         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   442         <environment ref="json-to-xml-E"/>
   482         <environment ref="json-to-xml-E"/>
   443         <test>
   483         <test>
   444             <initial-template name="json-to-xml-error-002"/>
   484             <initial-template name="json-to-xml-error-002"/>
   445         </test>
   485         </test>
   446         <result>
   486         <result>
   447             <error code="XTDE3240"/>
   487             <error code="FOJS0001"/>
   448         </result>
   488         </result>
   449     </test-case>
   489     </test-case>
   450 
   490 
   451     <test-case name="json-to-xml-error-003">
   491     <test-case name="json-to-xml-error-003">
   452         <description>Unknown token</description>
   492         <description>Unknown token</description>
   453         <created by="John Lumley" on="2013-10-01"/>
   493         <created by="John Lumley" on="2013-10-01"/>
   454         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   494         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   495         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   455         <environment ref="json-to-xml-E"/>
   496         <environment ref="json-to-xml-E"/>
   456         <test>
   497         <test>
   457             <initial-template name="json-to-xml-error-003"/>
   498             <initial-template name="json-to-xml-error-003"/>
   458         </test>
   499         </test>
   459         <result>
   500         <result>
   460             <error code="XTDE3240"/>
   501             <error code="FOJS0001"/>
   461         </result>
   502         </result>
   462     </test-case>
   503     </test-case>
   463 
   504 
   464     <test-case name="json-to-xml-error-004">
   505     <test-case name="json-to-xml-error-004">
   465         <description>Extra token</description>
   506         <description>Extra token</description>
   466         <created by="John Lumley" on="2013-10-01"/>
   507         <created by="John Lumley" on="2013-10-01"/>
   467         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   508         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   509         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   468         <environment ref="json-to-xml-E"/>
   510         <environment ref="json-to-xml-E"/>
   469         <test>
   511         <test>
   470             <initial-template name="json-to-xml-error-004"/>
   512             <initial-template name="json-to-xml-error-004"/>
   471         </test>
   513         </test>
   472         <result>
   514         <result>
   473             <error code="XTDE3240"/>
   515             <error code="FOJS0001"/>
   474         </result>
   516         </result>
   475     </test-case>
   517     </test-case>
   476 
   518 
   477     <test-case name="json-to-xml-error-005">
   519     <test-case name="json-to-xml-error-005">
   478         <description>Non-string key</description>
   520         <description>Non-string key</description>
   479         <created by="John Lumley" on="2013-10-01"/>
   521         <created by="John Lumley" on="2013-10-01"/>
   480         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   522         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   523         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   481         <environment ref="json-to-xml-E"/>
   524         <environment ref="json-to-xml-E"/>
   482         <test>
   525         <test>
   483             <initial-template name="json-to-xml-error-005"/>
   526             <initial-template name="json-to-xml-error-005"/>
   484         </test>
   527         </test>
   485         <result>
   528         <result>
   486             <error code="XTDE3240"/>
   529             <error code="FOJS0001"/>
   487         </result>
   530         </result>
   488     </test-case>
   531     </test-case>
   489 
   532 
   490     <test-case name="json-to-xml-error-006">
   533     <test-case name="json-to-xml-error-006">
   491         <description>Non-string key</description>
   534         <description>Non-string key</description>
   492         <created by="John Lumley" on="2013-10-01"/>
   535         <created by="John Lumley" on="2013-10-01"/>
   493         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   536         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   537         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   494         <environment ref="json-to-xml-E"/>
   538         <environment ref="json-to-xml-E"/>
   495         <test>
   539         <test>
   496             <initial-template name="json-to-xml-error-006"/>
   540             <initial-template name="json-to-xml-error-006"/>
   497         </test>
   541         </test>
   498         <result>
   542         <result>
   499             <error code="XTDE3240"/>
   543             <error code="FOJS0001"/>
   500         </result>
   544         </result>
   501     </test-case>
   545     </test-case>
   502 
   546 
   503     <test-case name="json-to-xml-error-007">
   547     <test-case name="json-to-xml-error-007">
   504         <description>Missing colon after key</description>
   548         <description>Missing colon after key</description>
   505         <created by="John Lumley" on="2013-10-01"/>
   549         <created by="John Lumley" on="2013-10-01"/>
   506         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   550         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   551         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   507         <environment ref="json-to-xml-E"/>
   552         <environment ref="json-to-xml-E"/>
   508         <test>
   553         <test>
   509             <initial-template name="json-to-xml-error-007"/>
   554             <initial-template name="json-to-xml-error-007"/>
   510         </test>
   555         </test>
   511         <result>
   556         <result>
   512             <error code="XTDE3240"/>
   557             <error code="FOJS0001"/>
   513         </result>
   558         </result>
   514     </test-case>
   559     </test-case>
   515 
   560 
   516     <test-case name="json-to-xml-error-008">
   561     <test-case name="json-to-xml-error-008">
   517         <description>Extra token after map value</description>
   562         <description>Extra token after map value</description>
   518         <created by="John Lumley" on="2013-10-01"/>
   563         <created by="John Lumley" on="2013-10-01"/>
   519         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   564         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   565         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   520         <environment ref="json-to-xml-E"/>
   566         <environment ref="json-to-xml-E"/>
   521         <test>
   567         <test>
   522             <initial-template name="json-to-xml-error-008"/>
   568             <initial-template name="json-to-xml-error-008"/>
   523         </test>
   569         </test>
   524         <result>
   570         <result>
   525             <error code="XTDE3240"/>
   571             <error code="FOJS0001"/>
   526         </result>
   572         </result>
   527     </test-case>
   573     </test-case>
   528 
   574 
   529     <test-case name="json-to-xml-error-009">
   575     <test-case name="json-to-xml-error-009">
   530         <description>Extra token after array value</description>
   576         <description>Extra token after array value</description>
   531         <created by="John Lumley" on="2013-10-01"/>
   577         <created by="John Lumley" on="2013-10-01"/>
   532         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   578         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   579         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   533         <environment ref="json-to-xml-E"/>
   580         <environment ref="json-to-xml-E"/>
   534         <test>
   581         <test>
   535             <initial-template name="json-to-xml-error-009"/>
   582             <initial-template name="json-to-xml-error-009"/>
   536         </test>
   583         </test>
   537         <result>
   584         <result>
   538             <error code="XTDE3240"/>
   585             <error code="FOJS0001"/>
   539         </result>
   586         </result>
   540     </test-case>
   587     </test-case>
   541 
   588 
   542     <test-case name="json-to-xml-error-010">
   589     <test-case name="json-to-xml-error-010">
   543         <description>Leading + on number</description>
   590         <description>Leading + on number</description>
   544         <created by="John Lumley" on="2013-10-01"/>
   591         <created by="John Lumley" on="2013-10-01"/>
   545         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   592         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   593         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   546         <environment ref="json-to-xml-E"/>
   594         <environment ref="json-to-xml-E"/>
   547         <test>
   595         <test>
   548             <initial-template name="json-to-xml-error-010"/>
   596             <initial-template name="json-to-xml-error-010"/>
   549         </test>
   597         </test>
   550         <result>
   598         <result>
   551             <error code="XTDE3240"/>
   599             <error code="FOJS0001"/>
   552         </result>
   600         </result>
   553     </test-case>
   601     </test-case>
   554 
   602 
   555     <test-case name="json-to-xml-error-011">
   603     <test-case name="json-to-xml-error-011">
   556         <description>Redundant leading 0 on number</description>
   604         <description>Redundant leading 0 on number</description>
   557         <created by="John Lumley" on="2013-10-01"/>
   605         <created by="John Lumley" on="2013-10-01"/>
   558         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   606         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   607         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   559         <environment ref="json-to-xml-E"/>
   608         <environment ref="json-to-xml-E"/>
   560         <test>
   609         <test>
   561             <initial-template name="json-to-xml-error-011"/>
   610             <initial-template name="json-to-xml-error-011"/>
   562         </test>
   611         </test>
   563         <result>
   612         <result>
   564             <error code="XTDE3240"/>
   613             <error code="FOJS0001"/>
   565         </result>
   614         </result>
   566     </test-case>
   615     </test-case>
   567 
   616 
   568     <test-case name="json-to-xml-error-012">
   617     <test-case name="json-to-xml-error-012">
   569         <description>Hex number</description>
   618         <description>Hex number</description>
   570         <created by="John Lumley" on="2013-10-01"/>
   619         <created by="John Lumley" on="2013-10-01"/>
   571         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   620         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   621         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   572         <environment ref="json-to-xml-E"/>
   622         <environment ref="json-to-xml-E"/>
   573         <test>
   623         <test>
   574             <initial-template name="json-to-xml-error-012"/>
   624             <initial-template name="json-to-xml-error-012"/>
   575         </test>
   625         </test>
   576         <result>
   626         <result>
   577             <error code="XTDE3240"/>
   627             <error code="FOJS0001"/>
   578         </result>
   628         </result>
   579     </test-case>
   629     </test-case>
   580 
   630 
   581     <test-case name="json-to-xml-error-013">
   631     <test-case name="json-to-xml-error-013">
   582         <description>Trailing backslash</description>
   632         <description>Trailing backslash</description>
   583         <created by="John Lumley" on="2013-10-01"/>
   633         <created by="John Lumley" on="2013-10-01"/>
   584         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   634         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   635         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   585         <environment ref="json-to-xml-E"/>
   636         <environment ref="json-to-xml-E"/>
   586         <test>
   637         <test>
   587             <initial-template name="json-to-xml-error-013"/>
   638             <initial-template name="json-to-xml-error-013"/>
   588         </test>
   639         </test>
   589         <result>
   640         <result>
   590             <error code="XTDE3240"/>
   641             <error code="FOJS0001"/>
   591         </result>
   642         </result>
   592     </test-case>
   643     </test-case>
   593 
   644 
   594     <test-case name="json-to-xml-error-014">
   645     <test-case name="json-to-xml-error-014">
   595         <description>Short unicode</description>
   646         <description>Short unicode</description>
   596         <created by="John Lumley" on="2013-10-01"/>
   647         <created by="John Lumley" on="2013-10-01"/>
   597         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   648         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   649         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   598         <environment ref="json-to-xml-E"/>
   650         <environment ref="json-to-xml-E"/>
   599         <test>
   651         <test>
   600             <initial-template name="json-to-xml-error-014"/>
   652             <initial-template name="json-to-xml-error-014"/>
   601         </test>
   653         </test>
   602         <result>
   654         <result>
   603             <error code="XTDE3240"/>
   655             <error code="FOJS0001"/>
   604         </result>
   656         </result>
   605     </test-case>
   657     </test-case>
   606 
   658 
   607     <test-case name="json-to-xml-error-015">
   659     <test-case name="json-to-xml-error-015">
   608         <description>Short unicode</description>
   660         <description>Short unicode</description>
   609         <created by="John Lumley" on="2013-10-01"/>
   661         <created by="John Lumley" on="2013-10-01"/>
   610         <modified by="John Lumley" on="2014-07-22"
   662         <modified by="John Lumley" on="2014-07-22"
   611             change="changed from XTDE3240 to correct error code"/>
   663             change="changed from XTDE3240 to correct error code"/>
   612         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   664         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   665         <modified by="Debbie Lockett" on="2015-08-12" change="No longer an error, use default escape=false and replacement char"/>
   613         <environment ref="json-to-xml-E"/>
   666         <environment ref="json-to-xml-E"/>
   614         <test>
   667         <test>
   615             <initial-template name="json-to-xml-error-015"/>
   668             <initial-template name="json-to-xml-error-015"/>
   616         </test>
   669         </test>
   617         <result>
   670         <result>
   618             <error code="XTDE3250"/>
   671             <all-of>
       
   672                 <assert>* instance of element(Q{http://www.w3.org/2005/xpath-functions}array)</assert>
       
   673                 <assert>. = 'String with &#xFFFD; backspace'</assert>
       
   674                 <assert>empty(*/@escaped)</assert>
       
   675                 <assert>empty(*/@escaped-key)</assert>
       
   676             </all-of>
       
   677             <!--<error code="XTDE3250"/>-->
   619         </result>
   678         </result>
   620     </test-case>
   679     </test-case>
   621 
   680 
   622     <test-case name="json-to-xml-error-016">
   681     <test-case name="json-to-xml-error-016">
   623         <description>Trailing comma in object</description>
   682         <description>Trailing comma in object</description>
   624         <created by="John Lumley" on="2013-10-01"/>
   683         <created by="John Lumley" on="2013-10-01"/>
   625         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   684         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   685         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   626         <environment ref="json-to-xml-E"/>
   686         <environment ref="json-to-xml-E"/>
   627         <test>
   687         <test>
   628             <initial-template name="json-to-xml-error-016"/>
   688             <initial-template name="json-to-xml-error-016"/>
   629         </test>
   689         </test>
   630         <result>
   690         <result>
   631             <error code="XTDE3240"/>
   691             <error code="FOJS0001"/>
   632         </result>
   692         </result>
   633     </test-case>
   693     </test-case>
   634 
   694 
   635     <test-case name="json-to-xml-error-017">
   695     <test-case name="json-to-xml-error-017">
   636         <description>Trailing comma in object - liberal spec</description>
   696         <description>Trailing comma in object - liberal spec</description>
   637         <created by="John Lumley" on="2013-10-01"/>
   697         <created by="John Lumley" on="2013-10-01"/>
   638         <modified by="John Lumley" on="2014-07-22"
   698         <modified by="John Lumley" on="2014-07-22"
   639             change="option 'spec':'liberal' altered to 'liberal':true()"/>
   699             change="option 'spec':'liberal' altered to 'liberal':true()"/>
   640         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   700         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   701         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   641         <environment ref="json-to-xml-E"/>
   702         <environment ref="json-to-xml-E"/>
   642         <test>
   703         <test>
   643             <initial-template name="json-to-xml-error-017"/>
   704             <initial-template name="json-to-xml-error-017"/>
   644         </test>
   705         </test>
   645         <result>
   706         <result>
   646             <any-of>
   707             <any-of>
   647                 <error code="XTDE3240"/>
   708                 <error code="FOJS0001"/>
   648                 <assert>/*</assert>
   709                 <assert>/*</assert>
   649             </any-of>
   710             </any-of>
   650         </result>
   711         </result>
   651     </test-case>
   712     </test-case>
   652 
   713 
   653     <test-case name="json-to-xml-error-018">
   714     <test-case name="json-to-xml-error-018">
   654         <description>Trailing comma in array</description>
   715         <description>Trailing comma in array</description>
   655         <created by="John Lumley" on="2013-10-01"/>
   716         <created by="John Lumley" on="2013-10-01"/>
   656         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   717         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   718         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   657         <environment ref="json-to-xml-E"/>
   719         <environment ref="json-to-xml-E"/>
   658         <test>
   720         <test>
   659             <initial-template name="json-to-xml-error-018"/>
   721             <initial-template name="json-to-xml-error-018"/>
   660         </test>
   722         </test>
   661         <result>
   723         <result>
   662             <error code="XTDE3240"/>
   724             <error code="FOJS0001"/>
   663         </result>
   725         </result>
   664     </test-case>
   726     </test-case>
   665 
   727 
   666     <test-case name="json-to-xml-error-019">
   728     <test-case name="json-to-xml-error-019">
   667         <description>Trailing comma in array - liberal spec</description>
   729         <description>Trailing comma in array - liberal spec</description>
   668         <created by="John Lumley" on="2013-10-01"/>
   730         <created by="John Lumley" on="2013-10-01"/>
   669         <modified by="John Lumley" on="2014-07-22"
   731         <modified by="John Lumley" on="2014-07-22"
   670             change="option 'spec':'liberal' altered to 'liberal':true()"/>
   732             change="option 'spec':'liberal' altered to 'liberal':true()"/>
   671         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   733         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   734         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   672         <environment ref="json-to-xml-E"/>
   735         <environment ref="json-to-xml-E"/>
   673         <test>
   736         <test>
   674             <initial-template name="json-to-xml-error-019"/>
   737             <initial-template name="json-to-xml-error-019"/>
   675         </test>
   738         </test>
   676         <result>
   739         <result>
   677             <any-of>
   740             <any-of>
   678                 <error code="XTDE3240"/>
   741                 <error code="FOJS0001"/>
   679                 <assert>/*</assert>
   742                 <assert>/*</assert>
   680             </any-of>
   743             </any-of>
   681         </result>
   744         </result>
   682     </test-case>
   745     </test-case>
   683 
   746 
   684     <test-case name="json-to-xml-error-020">
   747     <test-case name="json-to-xml-error-020">
   685         <description>Liberal option error</description>
   748         <description>Liberal option error</description>
   686         <created by="John Lumley" on="2013-10-01"/>
   749         <created by="John Lumley" on="2013-10-01"/>
   687         <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
   750         <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
   688         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   751         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   752         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   689         <environment ref="json-to-xml-E"/>
   753         <environment ref="json-to-xml-E"/>
   690         <test>
   754         <test>
   691             <initial-template name="json-to-xml-error-020"/>
   755             <initial-template name="json-to-xml-error-020"/>
   692         </test>
   756         </test>
   693         <result>
   757         <result>
   694             <error code="XTDE3260"/>
   758             <error code="XPTY0004"/>
   695         </result>
   759         </result>
   696     </test-case>
   760     </test-case>
   697 
   761 
   698     <test-case name="json-to-xml-error-021">
   762     <test-case name="json-to-xml-error-021">
   699         <description>Liberal option error</description>
   763         <description>Liberal option error</description>
   700         <created by="John Lumley" on="2013-10-01"/>
   764         <created by="John Lumley" on="2013-10-01"/>
   701         <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
   765         <modified by="John Lumley" on="2014-07-22" change="option 'spec' altered to 'liberal'"/>
   702         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   766         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   767         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   703         <environment ref="json-to-xml-E"/>
   768         <environment ref="json-to-xml-E"/>
   704         <test>
   769         <test>
   705             <initial-template name="json-to-xml-error-021"/>
   770             <initial-template name="json-to-xml-error-021"/>
   706         </test>
   771         </test>
   707         <result>
   772         <result>
   708             <error code="XTDE3260"/>
   773             <error code="XPTY0004"/>
   709         </result>
   774         </result>
   710     </test-case>
   775     </test-case>
   711 
   776 
   712     <test-case name="json-to-xml-error-022">
   777     <test-case name="json-to-xml-error-022">
   713         <description>Validate option error</description>
   778         <description>Validate option error</description>
   714         <created by="John Lumley" on="2013-10-01"/>
   779         <created by="John Lumley" on="2013-10-01"/>
   715         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   780         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   781         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   716         <environment ref="json-to-xml-E"/>
   782         <environment ref="json-to-xml-E"/>
   717         <test>
   783         <test>
   718             <initial-template name="json-to-xml-error-022"/>
   784             <initial-template name="json-to-xml-error-022"/>
   719         </test>
   785         </test>
   720         <result>
   786         <result>
   721             <error code="XTDE3260"/>
   787             <error code="XPTY0004"/>
   722         </result>
   788         </result>
   723     </test-case>
   789     </test-case>
   724 
   790 
   725     <test-case name="json-to-xml-error-023">
   791     <test-case name="json-to-xml-error-023">
   726         <description>Validate option error</description>
   792         <description>Validate option error</description>
   727         <created by="John Lumley" on="2013-10-01"/>
   793         <created by="John Lumley" on="2013-10-01"/>
   728         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   794         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   795         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   729         <environment ref="json-to-xml-E"/>
   796         <environment ref="json-to-xml-E"/>
   730         <test>
   797         <test>
   731             <initial-template name="json-to-xml-error-023"/>
   798             <initial-template name="json-to-xml-error-023"/>
   732         </test>
   799         </test>
   733         <result>
   800         <result>
   734             <error code="XTDE3260"/>
   801             <error code="XPTY0004"/>
   735         </result>
   802         </result>
   736     </test-case>
   803     </test-case>
   737 
   804 
   738     <test-case name="json-to-xml-error-024">
   805     <test-case name="json-to-xml-error-024">
   739         <description>Validate option error</description>
   806         <description>Validate option error</description>
   740         <created by="John Lumley" on="2013-10-01"/>
   807         <created by="John Lumley" on="2013-10-01"/>
   741         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   808         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   809         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   742         <environment ref="json-to-xml-E"/>
   810         <environment ref="json-to-xml-E"/>
   743         <test>
   811         <test>
   744             <initial-template name="json-to-xml-error-024"/>
   812             <initial-template name="json-to-xml-error-024"/>
   745         </test>
   813         </test>
   746         <result>
   814         <result>
   747             <error code="XTDE3260"/>
   815             <error code="XPTY0004"/>
   748         </result>
   816         </result>
   749     </test-case>
   817     </test-case>
   750 
   818 
   751     <test-case name="json-to-xml-error-025">
   819     <test-case name="json-to-xml-error-025">
   752         <description>Unescape option error</description>
   820         <description>Escape option error</description>
   753         <created by="John Lumley" on="2013-10-01"/>
   821         <created by="John Lumley" on="2013-10-01"/>
   754         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   822         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   823         <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape, Error code change"/>
   755         <environment ref="json-to-xml-E"/>
   824         <environment ref="json-to-xml-E"/>
   756         <test>
   825         <test>
   757             <initial-template name="json-to-xml-error-025"/>
   826             <initial-template name="json-to-xml-error-025"/>
   758         </test>
   827         </test>
   759         <result>
   828         <result>
   760             <error code="XTDE3260"/>
   829             <error code="XPTY0004"/>
   761         </result>
   830         </result>
   762     </test-case>
   831     </test-case>
   763 
   832 
   764     <test-case name="json-to-xml-error-026">
   833     <test-case name="json-to-xml-error-026">
   765         <description>Unescape option error</description>
   834         <description>Escape option error</description>
   766         <created by="John Lumley" on="2013-10-01"/>
   835         <created by="John Lumley" on="2013-10-01"/>
   767         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   836         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   837         <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape, Error code change"/>
   768         <environment ref="json-to-xml-E"/>
   838         <environment ref="json-to-xml-E"/>
   769         <test>
   839         <test>
   770             <initial-template name="json-to-xml-error-026"/>
   840             <initial-template name="json-to-xml-error-026"/>
   771         </test>
   841         </test>
   772         <result>
   842         <result>
   773             <error code="XTDE3260"/>
   843             <error code="XPTY0004"/>
   774         </result>
   844         </result>
   775     </test-case>
   845     </test-case>
   776 
   846 
   777     <test-case name="json-to-xml-error-027">
   847     <test-case name="json-to-xml-error-027">
   778         <description>Unescape option error</description>
   848         <description>Escape option error</description>
   779         <created by="John Lumley" on="2013-10-01"/>
   849         <created by="John Lumley" on="2013-10-01"/>
   780         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   850         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   851         <modified by="Debbie Lockett" on="2015-08-12" change="Change keyword unescape->escape, Error code change"/>
   781         <environment ref="json-to-xml-E"/>
   852         <environment ref="json-to-xml-E"/>
   782         <test>
   853         <test>
   783             <initial-template name="json-to-xml-error-027"/>
   854             <initial-template name="json-to-xml-error-027"/>
   784         </test>
   855         </test>
   785         <result>
   856         <result>
   786             <error code="XTDE3260"/>
   857             <error code="XPTY0004"/>
   787         </result>
   858         </result>
   788     </test-case>
   859     </test-case>
   789 
   860 
   790     <test-case name="json-to-xml-error-028">
   861     <test-case name="json-to-xml-error-028">
   791         <description>Fallback option not function </description>
   862         <description>Fallback option not function </description>
   792         <created by="John Lumley" on="2013-10-01"/>
   863         <created by="John Lumley" on="2013-10-01"/>
   793         <modified by="Abel Braaksma" on="2014-10-21" change="':=' for maps is replaced by ':'" />
   864         <modified by="Abel Braaksma" on="2014-10-21" change="':=' for maps is replaced by ':'" />
   794         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
   865         <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
   866         <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
   795         <environment ref="json-to-xml-E"/>
   867         <environment ref="json-to-xml-E"/>
   796         <test>
   868         <test>
   797             <initial-template name="json-to-xml-error-028"/>
   869             <initial-template name="json-to-xml-error-028"/>
   798         </test>
   870         </test>
   799         <result>
   871         <result>
   800             <error code="XTDE3260"/>
   872             <error code="XPTY0004"/>
   801         </result>
   873         </result>
   802     </test-case>
   874     </test-case>
   803 
   875 
   804 </test-set>
   876 </test-set>