This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In fn-indexof-mix-args-018: As written, I believe the test should return the empty sequence. fn:index-of(($input-context/bib/book/publisher), "Addison-Wesley") This uses eq for comparison. However, <publisher>Addison-Wesley</publisher> eq "Addison-Wesley" returns false() since fn:data(<publisher>Addison-Wesley</publisher>) returns xdt:untypedAtomic("Addison-Wesley") and xdt:untypedAtomic("Addison-Wesley") eq "Addison-Wesley" returns false() - Jerome
doesn't eq return true() ? http://www.w3.org/TR/xquery/#id-value-comparisons says (step 4) that If the atomized operand is of type xdt:untypedAtomic, it is cast to xs:string. so the underlying operator gets passed two strings (which are equal) David
Yes. Agreed. I'm just wrong on this. - Jerome