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 2605 - xqx: missing count function in fn-lang-2.xqx
Summary: xqx: missing count function in fn-lang-2.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:27 UTC by David Carlisle
Modified: 2006-06-13 12:16 UTC (History)
0 users

See Also:


Attachments

Description David Carlisle 2005-12-15 19:27:22 UTC
fn:count(fn:lang((), $input-context1/langs/para[1]))

is encoded as

    <xqx:queryBody>
      <xqx:pathExpr>
        <xqx:stepExpr>
          <xqx:filterExpr>
            <xqx:functionCallExpr>
              <xqx:functionName xqx:prefix="fn">lang</xqx:functionName>

and the top most function call to count() has vanished.

for comparison, xq2xqx encodes this as

      <xqx:queryBody>
         <xqx:functionCallExpr>
            <xqx:functionName xqx:prefix="fn">count</xqx:functionName>
            <xqx:arguments>
               <xqx:functionCallExpr>
                  <xqx:functionName xqx:prefix="fn">lang</xqx:functionName>
                  

David
Comment 1 Maxim Orgiyan 2006-03-03 08:29:12 UTC
Fixed in XQTS 0.8.6 (Feb 15).

> fn:count(fn:lang((), $input-context1/langs/para[1]))
> 
> is encoded as
> 
>     <xqx:queryBody>
>       <xqx:pathExpr>
>         <xqx:stepExpr>
>           <xqx:filterExpr>
>             <xqx:functionCallExpr>
>               <xqx:functionName xqx:prefix="fn">lang</xqx:functionName>
> 
> and the top most function call to count() has vanished.
> 
> for comparison, xq2xqx encodes this as
> 
>       <xqx:queryBody>
>          <xqx:functionCallExpr>
>             <xqx:functionName xqx:prefix="fn">count</xqx:functionName>
>             <xqx:arguments>
>                <xqx:functionCallExpr>
>                   <xqx:functionName xqx:prefix="fn">lang</xqx:functionName>
>                   
> 
> David