Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.
This repository was archived by the owner on May 30, 2019. It is now read-only.

cts:highlight not working as expected #711

Description

@lakshmananTechM

below code not working as expected...
cts_entity_highlight

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions