This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2604 - xqx: missing type declaration in default_namespace-007.xqx
Summary: xqx: missing type declaration in default_namespace-007.xqx
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-15 19:21 UTC by David Carlisle
Modified: 2006-06-13 12:15 UTC (History)
0 users

See Also:


Attachments

Description David Carlisle 2005-12-15 19:21:34 UTC
The Xquery
 
declare function foo($a as xs:integer)

is encoded in the supplied xqueryx as
        <xqx:paramList>
          <xqx:param>
            <xqx:varName>a</xqx:varName>
          </xqx:param>
        </xqx:paramList>

the xs:integer type has been dropped.
For comparison xq2xqx encodes this as

            <xqx:paramList>
               <xqx:param>
                  <xqx:varName>a</xqx:varName>
                  <xqx:typeDeclaration>
                     <xqx:atomicType xqx:prefix="xs">integer</xqx:atomicType>
                  </xqx:typeDeclaration>
               </xqx:param>
            </xqx:paramList>


David
Comment 1 Maxim Orgiyan 2006-03-03 07:53:22 UTC
Fixed in XQTS 0.8.6 (Feb 15).


> The Xquery
>  
> declare function foo($a as xs:integer)
> 
> is encoded in the supplied xqueryx as
>         <xqx:paramList>
>           <xqx:param>
>             <xqx:varName>a</xqx:varName>
>           </xqx:param>
>         </xqx:paramList>
> 
> the xs:integer type has been dropped.
> For comparison xq2xqx encodes this as
> 
>             <xqx:paramList>
>                <xqx:param>
>                   <xqx:varName>a</xqx:varName>
>                   <xqx:typeDeclaration>
>                      <xqx:atomicType xqx:prefix="xs">integer</xqx:atomicType>
>                   </xqx:typeDeclaration>
>                </xqx:param>
>             </xqx:paramList>
> 
> 
> David