tests/misc/error/_error-test-set.xml
changeset 1034 412d4f6bb7bf
parent 1031 2ec657f16920
child 1048 0b0273d86345
equal deleted inserted replaced
1033:82df2f880108 1034:412d4f6bb7bf
 10051 
 10051 
 10052    <test-case name="error-3240a">
 10052    <test-case name="error-3240a">
 10053       <description>Error: It is a non-recoverable dynamic error if the value of
 10053       <description>Error: It is a non-recoverable dynamic error if the value of
 10054                $input does not conform to the JSON grammar.</description>
 10054                $input does not conform to the JSON grammar.</description>
 10055       <created by="Michael Kay" on="2014-08-25"/>
 10055       <created by="Michael Kay" on="2014-08-25"/>
       
 10056       <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
 10056       <dependencies>
 10057       <dependencies>
 10057          <spec value="XSLT30+"/>
 10058          <spec value="XSLT30+"/>
 10058       </dependencies>
 10059       </dependencies>
 10059       <test>
 10060       <test>
 10060          <stylesheet file="error-3240a.xsl"/>
 10061          <stylesheet file="error-3240a.xsl"/>
 10061          <initial-template name="main"/>
 10062          <initial-template name="main"/>
 10062       </test>
 10063       </test>
 10063       <result>
 10064       <result>
 10064          <error code="XTDE3240"/>
 10065          <error code="FOJS0001"/>
 10065       </result>
 10066       </result>
 10066    </test-case>
 10067    </test-case>
 10067 
 10068 
 10068    <test-case name="error-3245a">
 10069    <test-case name="error-3245a">
 10069       <description>
 10070       <description>
 10070          Error: It is a dynamic error if the value of the validate option is true 
 10071          Error: It is a dynamic error if the value of the validate option is true 
 10071          and the processor is not schema-aware.
 10072          and the processor is not schema-aware.
 10072       </description>
 10073       </description>
 10073       <created by="Michael Kay" on="2014-08-25"/>
 10074       <created by="Michael Kay" on="2014-08-25"/>
 10074       <modified by="Abel Braaksma" on="2015-04-07" change="Expected error was XTDE3240, but should be XTDE3245 (as in descr of test)" />
 10075       <modified by="Abel Braaksma" on="2015-04-07" change="Expected error was XTDE3240, but should be XTDE3245 (as in descr of test)" />
       
 10076       <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
 10075       <dependencies>
 10077       <dependencies>
 10076          <spec value="XSLT30+"/>
 10078          <spec value="XSLT30+"/>
 10077          <feature value="schema_aware" satisfied="false"/>
 10079          <feature value="schema_aware" satisfied="false"/>
 10078       </dependencies>
 10080       </dependencies>
 10079       <test>
 10081       <test>
 10080          <stylesheet file="error-3245a.xsl"/>
 10082          <stylesheet file="error-3245a.xsl"/>
 10081          <initial-template name="main"/>
 10083          <initial-template name="main"/>
 10082       </test>
 10084       </test>
 10083       <result>
 10085       <result>
 10084          <error code="XTDE3245"/>
 10086          <error code="FOJS0004"/>
 10085       </result>
 10087       </result>
 10086    </test-case>
 10088    </test-case>
 10087 
 10089 
 10088    <test-case name="error-3250a">
 10090    <test-case name="error-3250a">
 10089       <description>Error: It is a non-recoverable dynamic
 10091       <description>Use of the replacement character when $input contains an escaped character
       
 10092          which is not valid in the version of XML supported by the implementation, escape=false
       
 10093          (by default), and no fallback function is given.
       
 10094          
       
 10095          Previously:
       
 10096          Error: It is a non-recoverable dynamic
 10090                error if the value of
 10097                error if the value of
 10091                $input contains an escaped representation of a character (or codepoint)
 10098                $input contains an escaped representation of a character (or codepoint)
 10092             that is not a valid character in the version of XML supported by the implementation,
 10099             that is not a valid character in the version of XML supported by the implementation,
 10093             unless the unescape option is set to false.</description>
 10100             unless the unescape option is set to false.
       
 10101       </description>
 10094       <created by="Michael Kay" on="2014-08-25"/>
 10102       <created by="Michael Kay" on="2014-08-25"/>
       
 10103       <modified by="Debbie Lockett" on="2015-08-12" change="No longer an error, use default escape=false and replacement char"/>
 10095       <dependencies>
 10104       <dependencies>
 10096          <spec value="XSLT30+"/>
 10105          <spec value="XSLT30+"/>
 10097       </dependencies>
 10106       </dependencies>
 10098       <test>
 10107       <test>
 10099          <stylesheet file="error-3250a.xsl"/>
 10108          <stylesheet file="error-3250a.xsl"/>
 10100          <initial-template name="main"/>
 10109          <initial-template name="main"/>
 10101       </test>
 10110       </test>
 10102       <result>
 10111       <result>
 10103          <error code="XTDE3250"/>
 10112          <all-of>
       
 10113             <assert>out/* instance of element(Q{http://www.w3.org/2005/xpath-functions}array)</assert>
       
 10114             <assert>out//Q{http://www.w3.org/2005/xpath-functions}string = 'xx&#xFFFD;xx'</assert>
       
 10115          </all-of>
       
 10116          <!--<error code="XTDE3250"/>-->
 10104       </result>
 10117       </result>
 10105    </test-case>
 10118    </test-case>
 10106 
 10119 
 10107    <test-case name="error-3255a">
 10120    <test-case name="error-3255a">
 10108       <description>Error: It is a dynamic error if the value of
 10121       <description>Error: It is a dynamic error if the value of
 10109                   $options includes an entry whose key is indent, 
 10122                   $options includes an entry whose key is indent, 
 10110                      validate, unescape, or fallback,
 10123                      validate, escape, or fallback,
 10111                      and whose value is not a permitted value for that key.</description>
 10124                      and whose value is not a permitted value for that key.</description>
 10112       <created by="Michael Kay" on="2014-08-25"/>
 10125       <created by="Michael Kay" on="2014-08-25"/>
 10113       <modified by="Abel Braaksma" on="2015-04-07" change="Fixed typo, as='element' into as='element()'"/>
 10126       <modified by="Abel Braaksma" on="2015-04-07" change="Fixed typo, as='element' into as='element()'"/>
 10114       <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
 10127       <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
 10128       <modified by="Debbie Lockett" on="2015-08-12" change="Error code change - the value is the wrong type"/>
 10115       <dependencies>
 10129       <dependencies>
 10116          <spec value="XSLT30+"/>
 10130          <spec value="XSLT30+"/>
 10117       </dependencies>
 10131       </dependencies>
 10118       <test>
 10132       <test>
 10119          <stylesheet file="error-3255a.xsl"/>
 10133          <stylesheet file="error-3255a.xsl"/>
 10120          <initial-template name="main"/>
 10134          <initial-template name="main"/>
 10121       </test>
 10135       </test>
 10122       <result>
 10136       <result>
 10123          <error code="XTDE3255"/>
 10137          <error code="XPTY0004"/>
 10124       </result>
 10138       </result>
 10125    </test-case>
 10139    </test-case>
 10126 
 10140 
 10127    <test-case name="error-3260a">
 10141    <test-case name="error-3260a">
 10128       <description>Error: It is a non-recoverable dynamic
 10142       <description>Error: It is a non-recoverable dynamic
 10129                error if the value of
 10143                error if the value of
 10130             $options includes an entry whose key is "spec" and whose value is not
 10144                $options includes an entry whose key is "liberal" and whose value is not
 10131             a single xs:string, or an entry whose key is "unescape" and whose value
 10145                a single xs:boolean, or an entry whose key is "escape" and whose value
 10132             is not a single xs:boolean.</description>
 10146             is not a single xs:boolean.</description>
 10133       <created by="Michael Kay" on="2014-08-25"/>
 10147       <created by="Michael Kay" on="2014-08-25"/>
       
 10148       <modified by="Debbie Lockett" on="2015-08-12" change="Error code change; change keywords unescape->escape, spec->liberal"/>
 10134       <dependencies>
 10149       <dependencies>
 10135          <spec value="XSLT30+"/>
 10150          <spec value="XSLT30+"/>
 10136       </dependencies>
 10151       </dependencies>
 10137       <test>
 10152       <test>
 10138          <stylesheet file="error-3260a.xsl"/>
 10153          <stylesheet file="error-3260a.xsl"/>
 10139          <initial-template name="main"/>
 10154          <initial-template name="main"/>
 10140       </test>
 10155       </test>
 10141       <result>
 10156       <result>
 10142          <error code="XTDE3260"/>
 10157          <error code="XPTY0004"/>
 10143       </result>
 10158       </result>
 10144    </test-case>
 10159    </test-case>
 10145 
 10160 
 10146    <test-case name="error-3265a">
 10161    <test-case name="error-3265a">
 10147       <description>Error: It is a dynamic error if the value of
 10162       <description>Error: It is a dynamic error if the value of
 10148                   $input is not valid according to the schema for the XML representation of
 10163                   $input is not valid according to the schema for the XML representation of
 10149                   JSON.</description>
 10164                   JSON.</description>
 10150       <created by="Michael Kay" on="2014-08-25"/>
 10165       <created by="Michael Kay" on="2014-08-25"/>
 10151       <modified by="Abel Braaksma" on="2015-04-07" change="Fixed typo, as='element' into as='element()'"/>
 10166       <modified by="Abel Braaksma" on="2015-04-07" change="Fixed typo, as='element' into as='element()'"/>
 10152       <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
 10167       <modified by="Michael Kay" on="2015-06-23" change="Namespace change resulting from bug 28174"/>
       
 10168       <modified by="Debbie Lockett" on="2015-08-12" change="Error code change"/>
 10153       <dependencies>
 10169       <dependencies>
 10154          <spec value="XSLT30+"/>
 10170          <spec value="XSLT30+"/>
 10155       </dependencies>
 10171       </dependencies>
 10156       <test>
 10172       <test>
 10157          <stylesheet file="error-3265a.xsl"/>
 10173          <stylesheet file="error-3265a.xsl"/>
 10158          <initial-template name="main"/>
 10174          <initial-template name="main"/>
 10159       </test>
 10175       </test>
 10160       <result>
 10176       <result>
 10161          <error code="XTDE3265"/>
 10177          <error code="FOJS0006"/>
 10162       </result>
 10178       </result>
 10163    </test-case>
 10179    </test-case>
 10164 
 10180 
 10165    <test-case name="error-3280a">
 10181    <test-case name="error-3280a">
 10166       <description>Error: It is a static error if the
 10182       <description>Error: It is a static error if the