<?xml version="1.0" encoding="us-ascii"?>
<test-set xmlns="http://www.w3.org/2010/09/qt-fots-catalog" name="prod-EQName" covers-30="eqnames">
   <description>Tests for the EQName production</description>
   <link type="spec" document="http://www.w3.org/TR/xquery-30/"
         idref="doc-xquery30-EQName"/>
   <link type="spec" document="XQuery" section-number="2" idref="doc-xquery30-EQName"/>

   <test-case name="eqname-001">
      <description> Use EQName in a path expression </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<my:a xmlns:my="http://www.example.com/ns/my"><my:b>42</my:b></my:a>) / Q{http://www.example.com/ns/my}b }</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out><my:b xmlns:my="http://www.example.com/ns/my">42</my:b></out>]]></assert-xml>
       </result>
   </test-case>

   <test-case name="eqname-002">
      <description> Use EQName in a variable name </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[
            declare variable $Q{http://www.example.com/ns/my}var := 12; 
            <out>{$Q{http://www.example.com/ns/my}var}</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out>12</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-003">
      <description> Use EQName in a function name </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[
        declare function Q{http://www.example.com/ns/my}fn ($a as xs:integer) as xs:integer { $a + 2 }; 
        <out>{Q{http://www.example.com/ns/my}fn(12)}</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out>14</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-004">
      <description> Use EQName in a type name </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[declare function local:fn ($a as Q{http://www.w3.org/2001/XMLSchema}integer) as element(Q{http://www.example.com/ns/my}e) { <e xmlns="http://www.example.com/ns/my">{$a}</e> }; <out>{local:fn(12)}</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out><e xmlns="http://www.example.com/ns/my">12</e></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-005">
      <description> Use EQName in declare option </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[declare option Q{http://www.example.com/ns}option "ignore me"; <a/>]]></test>
      <result>
         <assert-xml><![CDATA[<a/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-006">
      <description> Use EQName in a pragma </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[(# Q{http://www.example.com/ns}pragma ignore me #) {<a/>}]]></test>
      <result>
         <assert-xml><![CDATA[<a/>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-007" covers-30="decimal-decl">
      <description> Use EQName in a decimal format </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[
        declare decimal-format Q{http://www.example.com/ns}format grouping-separator="'"; 
        <a xmlns:ex="http://www.example.com/ns">{format-number(1e9, "#'###'###'##0.00", 'ex:format')}</a>
      ]]></test>
      <result>
         <assert-xml><![CDATA[<a xmlns:ex="http://www.example.com/ns">1'000'000'000.00</a>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-008">
      <description> Use character references in an EQName </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<a xmlns:ex="http://www.example.com/ns"><ex:b>93.7</ex:b></a>) /Q{http://www&#x2e;example&#x2E;com/ns}b }</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out><ex:b xmlns:ex="http://www.example.com/ns">93.7</ex:b></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-009">
      <description> Use whitespace in an EQName </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<a xmlns:ex="http://www.example.com/ ns"><ex:b>93.7</ex:b></a>) /Q{ http://www.example.com/ ns }b/namespace-uri() }</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out>http://www.example.com/ ns</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-010">
      <description> Use quotes in an EQName </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<a xmlns:ex="http://www.example.com/ns?p='23'"><ex:b>93.7</ex:b></a>) /Q{http://www.example.com/ns?p='23'}b }</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out><ex:b xmlns:ex="http://www.example.com/ns?p='23'">93.7</ex:b></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-011">
      <description> Use quotes in an EQName </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<a xmlns:ex="http://www.example.com/ns?p='23'"><ex:b>93.7</ex:b></a>) /Q{http://www.example.com/ns?p='23'}b }</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out><ex:b xmlns:ex="http://www.example.com/ns?p='23'">93.7</ex:b></out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-012" covers-30="wildcard-uri-literals">
      <description> Use EQName-style wildcard </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<my:a xmlns:my="http://www.example.com/ns/my"><my:b>42</my:b></my:a>) / Q{http://www.example.com/ns/my}* + 5 }</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out>47</out>]]></assert-xml>
      </result>
   </test-case>

   <test-case name="eqname-013" covers-30="wildcard-uri-literals">
      <description> Use EQName-style wildcard (no namespace) </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out xmlns="http://www.example.com/one">{ (<my:a xmlns:my="http://www.example.com/ns/my"><my:b>42</my:b><b xmlns="">93</b></my:a>) / Q{}* + 5 }</out>]]></test>
      <result>
         <assert-xml><![CDATA[<out xmlns="http://www.example.com/one">98</out>]]></assert-xml>
      </result>
   </test-case>
   
   <test-case name="eqname-014">
      <description> EQName in XPath element name</description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>string((//Q{http://www.example.com/AuctionWatch}Start)[1])</test>
      <result>
         <assert-string-value>3.00</assert-string-value>
      </result>
   </test-case>
   
   <test-case name="eqname-015">
      <description> EQName in XPath variable name</description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>for $Q{http://example.com/ns}x in 1 to 10 return $Q{http://example.com/ns}x + 1</test>
      <result>
         <assert-string-value>2 3 4 5 6 7 8 9 10 11</assert-string-value>
      </result>
   </test-case>
   
   <test-case name="eqname-016" covers-30="wildcard-uri-literals">
      <description> Use EQName-style wildcard (no namespace) to select attribute nodes </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <modified by="Michael Kay" on="2013-01-15" change="Avoid unintended error as per bug 20661"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[string-join(<a foo="3" bar="5" xml:space="preserve"/> / @Q{}*, '.')]]></test>
      <result>
         <any-of>
           <assert-eq>"3.5"</assert-eq>
           <assert-eq>"5.3"</assert-eq>
         </any-of>  
      </result>
   </test-case>
   
   <test-case name="eqname-017" covers-30="wildcard-uri-literals">
      <description> Use EQName-style wildcard (XML namespace) to select attribute nodes </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <modified by="Michael Kay" on="2013-01-15" change="Avoid unintended error as per bug 20661"/>
      <modified by="Michael Kay" on="2013-01-17" change="Correct the previous fix"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[string-join(<a foo="3" bar="5" xml:space="preserve"/> / @Q{http://www.w3.org/XML/1998/namespace}*, '.')]]></test>
      <result>
         <assert-eq>"preserve"</assert-eq>
      </result>
   </test-case>
   
   <test-case name="eqname-018" covers-30="wildcard-uri-literals">
      <description> Use EQName-style wildcard (no namespace URI) to select namespace nodes </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+"/>
      <dependency type="feature" value="namespace-axis"/>
      <test>(//Q{http://www.example.com/AuctionWatch}Start)[1]/namespace::Q{}*/string()</test>
      <result>
         <assert-permutation>
            "http://www.example.com/AuctionWatch",
            "http://www.w3.org/1999/xlink",
            "http://www.example.com/auctioneers#anyzone",
            "http://www.example.com/auctioneers#eachbay",
            "http://www.example.com/auctioneers#yabadoo",
            "http://www.w3.org/XML/1998/namespace"
         </assert-permutation>
      </result>
   </test-case>
   
   <test-case name="eqname-019" covers-30="wildcard-uri-literals">
      <description> Use EQName-style wildcard (no namespace URI) to select PI nodes: not allowed </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[(<?alpha?>, <?beta?>, <?gamma?>)/processing-instruction(Q{}alpha)]]></test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>
   
   <test-case name="eqname-020">
      <description> EQName - allowed spaces in EQName, leading spaces are collapsed, Bug 29708</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>Q{  http://www.w3.org/2005/xpath-functions/math}pi()</test>
      <result>
         <assert-eq>pi()</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-021">
      <description> EQName - allowed spaces in EQName, trailing spaces are collapsed, Bug 29708</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>Q{http://www.w3.org/2005/xpath-functions/math   }pi()</test>
      <result>
         <assert-eq>pi()</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-022">
      <description> EQName - allowed spaces in EQName, leading and trailing spaces are collapsed, Bug 29708</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>Q{  
         http://www.w3.org/2005/xpath-functions/math
         }pi()</test>
      <result>
         <assert-eq>pi()</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-023" covers-30="wildcard-uri-literals">
      <description> Variant of eqname-023, tests whitespace collapse, Bug 29708, use EQName-style wildcard (no namespace URI) to select namespace nodes </description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <dependency type="feature" value="namespace-axis"/>
      <test>(//Q{http://www.example.com/AuctionWatch}Start)[1]/namespace::Q{  
         
         }*/string()</test>
      <result>
         <assert-permutation>
            "http://www.example.com/AuctionWatch",
            "http://www.w3.org/1999/xlink",
            "http://www.example.com/auctioneers#anyzone",
            "http://www.example.com/auctioneers#eachbay",
            "http://www.example.com/auctioneers#yabadoo",
            "http://www.w3.org/XML/1998/namespace"
         </assert-permutation>
      </result>
   </test-case>
   
   <test-case name="eqname-024">
      <description>Tests that the whitespace is properly collapsed by comparing single-ws with multi-ws URIs</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>for $Q{ urn:foo bar }x in 1 to 5 return $Q{urn:foo   bar}x + $Q{urn:foo bar}x</test>
      <result>
         <assert-string-value>2 4 6 8 10</assert-string-value>
      </result>
   </test-case>

   <test-case name="eqname-025">
      <description>Tests that the whitespace is properly collapsed for no-namespace variables</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>for $Q{}T in 1 to 5 return $Q{  }T + $T</test>
      <result>
         <assert-string-value>2 4 6 8 10</assert-string-value>
      </result>
   </test-case>
   
   <test-case name="eqname-026">
      <description> EQName in XPath element name, variant of eqname-014, tests Bug 29708</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>string((//Q{  http://www.example.com/AuctionWatch  }Start)[1])</test>
      <result>
         <assert-string-value>3.00</assert-string-value>
      </result>
   </test-case>

   <test-case name="eqname-027">
      <description>Finding a namespaces attribute using EQName syntax</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      
      <test>string(
         /Q{  http://www.example.com/AuctionWatch}AuctionWatchList/
         Q{   http://www.example.com/AuctionWatch}Auction[2]/
         @Q{  http://www.example.com/auctioneers#yabadoo}ID')</test>
      <result>
         <assert-string-value>13143816</assert-string-value>
      </result>
   </test-case>

   <test-case name="eqname-028">
      <description>Using whitespace inside URI means it is a different URI, not an error, Bug 29708</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      
      <test>string(
         /Q{  http://www.example.com/AuctionWatch}AuctionWatchList/
         Q{   http://www.example.com/AuctionWatch}Auction[2]/
         @Q{  http://www.example.com/auctioneers
         #yabadoo}ID')</test>
      <result>
         <assert-empty />
      </result>
   </test-case>
   
   <test-case name="eqname-029">
      <description> EQName - using entity references in valid URI, using function call syntax with EQName</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test><![CDATA[Q{http:&#x2F;&#x2F;www.w3.org&#x2F;2005&#x2F;xpath-functions&#x2F;math}pi()]]></test>
      <result>
         <assert-eq>pi()</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-030">
      <description> EQName - inline function with BracedURILiteral parameters</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>
         let $f := function($Q{''}a, $Q{http:}a) { $Q{''}a + $Q{http:}a }
         return $f(15, 27)
      </test>
      <result>
         <assert-eq>42</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-031">
      <description> EQName - inline function reference with BracedURILiteral parameters </description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>
         let $Q{t:e:s:t}f := function($Q{''}a, $Q{http:}a) { $Q{''}a + $Q{http:}a }
         return $Q{t:e:s:t}f(15, 27)
      </test>
      <result>
         <assert-eq>42</assert-eq>
      </result>
   </test-case>
   
   <test-case name="eqname-032">
      <description> EQName - it is legal, but discouraged, to use URI escapes, even if this is an escape for a curly brace</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>
         let $Q{%7D}a := 12, $Q{}b := 13
         return $Q{%7D}a + $b
      </test>
      <result>
         <assert-eq>25</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-033">
      <description> EQName - it is legal, but discouraged, to use URI escapes, testing they are different from non-escaped chars</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>
         let $Q{foo%20bar}a := 12, $Q{foo bar}a := 13
         return $Q{foo%20bar}a + $Q{  foo   bar  }a
      </test>
      <result>
         <assert-eq>25</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-033">
      <description> EQName - using other reserved XPath characters in BracedURILiteral</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>
         let $Q{$Q}a := 12, $Q{//}a := 13, $Q{*}a := 14
         return $Q{$Q}a + $Q{//}a + $Q{*}a
      </test>
      <result>
         <assert-eq>25</assert-eq>
      </result>
   </test-case>

   <test-case name="eqname-901">
      <description> Invalid EQName - superfluous colon </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<a xmlns:ex="http://www.example.com/ns?p='23'"><ex:b>93.7</ex:b></a>) /Q{http://www.example.com/ns?p='23'}:b }</out>]]></test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>

   <test-case name="eqname-902">
      <description> Invalid EQName - mismatched braces </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ (<a xmlns:ex="http://www.example.com/ns?p='23'"><ex:b>93.7</ex:b></a>) /Q{http://www.example.com/ns?p='23'}}b }</out>]]></test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>

   <test-case name="eqname-903">
      <description> EQName - not allowed in element constructor </description>
      <created by="Michael Kay" on="2010-03-16"/>
      <modified by="Michael Kay" on="2012-03-02" change="Revised syntax as per bug 15399"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[<out>{ <Q{http://www.example.com/ns}/> }</out>]]></test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>


   <test-case name="eqname-904">
      <description> Invalid EQName - superfluous colon, XP3 </description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test><![CDATA[<out>{ (<a xmlns:ex="http://www.example.com/ns?p='23'"><ex:b>93.7</ex:b></a>) /Q{http://www.example.com/ns?p='23'}:b }</out>]]></test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>

   <test-case name="eqname-905">
      <description> Invalid EQName - mismatched braces, XP3 </description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>Q{http://www.w3.org/2005/xpath-functions/math}}pi()</test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>

   <test-case name="eqname-906">
      <description> EQName - invalid extra opening brace </description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>Q{{http://www.w3.org/2005/xpath-functions/math}pi()</test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>

   <test-case name="eqname-907">
      <description> EQName - missing closing brace</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>Q{http://www.w3.org/2005/xpath-functions/math pi()</test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>

   <test-case name="eqname-908">
      <description> EQName - allowed spaces in EQName, results in function not found</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>Q{http://www.w3.org/2005/ xpath-functions/math}pi()</test>
      <result>
         <error code="XPST0017"/>
      </result>
   </test-case>
   
   <test-case name="eqname-909">
      <description> EQName - braces cannot be escaped by using entity references</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test><![CDATA[Q{&#x7D;http://www.w3.org/2005/xpath-functions/math}pi()]]></test>
      <result>
         <error code="XPST0003"/>
      </result>
   </test-case>

   <test-case name="eqname-910">
      <description>It is illegal to use the namespace URI http://www.w3.org/2000/xmlns/ as part of an EQName (regardless of the leading whitespace)</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>/Q{ http://www.w3.org/2000/xmlns/}AuctionWatchList/</test>
      <result>
         <error code="XPST0133"/>
      </result>
   </test-case>

   <test-case name="eqname-911">
      <description>A processor MAY raise an error on an invalid URI</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>/Q{###}SomeElement/</test>
      <result>
         <any-of>
            <assert-empty />
            <error code="XQST0046"/>
         </any-of>         
      </result>
   </test-case>

   <test-case name="eqname-912">
      <description>A processor MAY raise an error on an invalid URI</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <environment ref="auction"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>/Q{%00}SomeElement/</test>
      <result>
         <any-of>
            <assert-empty />
            <error code="XQST0046"/>
         </any-of>         
      </result>
   </test-case>

   <test-case name="eqname-913">
      <description> EQName - inline function with BracedURILiteral parameters compared with normal params, they are equal, should throw syntax error</description>
      <created by="Abel Braaksma" on="2016-06-27"/>
      <dependency type="spec" value="XP30+ XQ30+"/>
      <test>
         let $f := function($Q{ }a, $a) { 15 }
         return $f(1, 2)
      </test>
      <result>
         <error code="XQST0039"/>
      </result>
   </test-case>
</test-set>