tests/misc/error/error-3260a.xsl
author Michael Kay <mike@saxonica.com>
Wed, 12 Aug 2015 14:23:07 +0100
changeset 1034 412d4f6bb7bf
parent 635 b23a6b06e1d2
permissions -rw-r--r--
json-to-xml - reflect spec changes
635
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"><!--It is a non-recoverable dynamic
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     3
               error if the value of
1034
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 635
diff changeset
     4
            $options includes an entry whose key is "liberal" and whose value is not
412d4f6bb7bf json-to-xml - reflect spec changes
Michael Kay <mike@saxonica.com>
parents: 635
diff changeset
     5
            a single xs:boolean, or an entry whose key is "escape" and whose value
635
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     6
            is not a single xs:boolean.-->
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     7
   <xsl:template name="main">
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     8
      <out>
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
     9
         <xsl:sequence select="json-to-xml('[1,2,3]', map{'liberal':'yes'})"/>
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    10
      </out>
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    11
   </xsl:template>
b23a6b06e1d2 Reorganised and expanded error code tests
Michael Kay <mike@saxonica.com>
parents:
diff changeset
    12
</xsl:stylesheet>