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 2455 - xqx: function-declaration-020.xqx missing type declaration
Summary: xqx: function-declaration-020.xqx missing type declaration
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-04 15:09 UTC by David Carlisle
Modified: 2005-12-12 10:55 UTC (History)
0 users

See Also:


Attachments

Description David Carlisle 2005-11-04 15:09:00 UTC
function-declaration-020.xqx 

The first (0-argument) function in this test

declare function foo:price () as xs:integer+
{
  100
};

is encoded as

      <xqx:functionDecl>
        <xqx:functionName xqx:prefix="foo">price</xqx:functionName>
        <xqx:paramList/>
        <xqx:functionBody>
          <xqx:pathExpr>
            <xqx:stepExpr>
              <xqx:filterExpr>
                <xqx:integerConstantExpr>
                  <xqx:value>100</xqx:value>
                </xqx:integerConstantExpr>
              </xqx:filterExpr>
            </xqx:stepExpr>
          </xqx:pathExpr>
        </xqx:functionBody>
      </xqx:functionDecl>

the specified return type of integer+ has been dropped.