RNG attribute completion doesn't generate the proper prefix if the namespace is not declared #1489
Labels
bug
Something isn't working
completion
This issue or enhancement is related to completion support
RelaxNG
Milestone
Given this XML file bound to RelaxNG file:
When completion is triggered on
<acknowledgements |>
it show attributes, but it doesn't take care of prefix, if the namespace is not declared correctly. For instance it showsactuate
althoughactuate
should be linked tohttp://www.w3.org/1999/xlink
namespace by usingxlink
prefix.Please note that If you declare the xlink namespace
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" >
The completion shows correctly completion item with
xlink:actuate
.To fix this issue, it should be nice to get xlink prefix from the grammar, and when completion is applied, it should insert in the book element the proper namespace
xmlns:xlink="http://www.w3.org/1999/xlink"
like the follwoing demo:The text was updated successfully, but these errors were encountered: