below code  not working as expected...

I Run the below code in QueryConsole
xquery version "1.0-ml"; 
let $myxml := <node>Queen Elizabeth celebrated her Diamond Jubilee in London this June. A thanksgiving service at St Paul's Cathedral where the ArchBishop of Canterbury paid tribute to her "lifelong dedication". One thousand boats took part in the Diamond Jubilee Thames River Pageant, the first of its kind for 350 years! </node> 
return cts:entity-highlight($myxml, element { fn:replace($cts:entity-type, ":", "-") }{ $cts:text })
 
i getting below result
<node>Queen Elizabeth celebrated her Diamond Jubilee in London this June. A thanksgiving service at St Paul's Cathedral where the ArchBishop of Canterbury paid tribute to her "lifelong dedication". One thousand boats took part in the Diamond Jubilee Thames River Pageant, the first of its kind for 350 years!
</node>
but expected result is different... i attached expected result...