This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
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