-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
angelozerr
added
bug
Something isn't working
completion
This issue or enhancement is related to completion support
RelaxNG
labels
Feb 21, 2023
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 22, 2023
namespace is not declared Fixes eclipse#1489 Signed-off-by: azerr <[email protected]>
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 22, 2023
namespace is not declared Fixes eclipse#1489 Signed-off-by: azerr <[email protected]>
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 22, 2023
namespace is not declared Fixes eclipse#1489 Signed-off-by: azerr <[email protected]>
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 22, 2023
namespace is not declared Fixes eclipse#1489 Signed-off-by: azerr <[email protected]>
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 22, 2023
namespace is not declared Fixes eclipse#1489 Signed-off-by: azerr <[email protected]>
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 22, 2023
namespace is not declared Fixes eclipse#1489 Signed-off-by: azerr <[email protected]>
JessicaJHee
pushed a commit
that referenced
this issue
Feb 22, 2023
namespace is not declared Fixes #1489 Signed-off-by: azerr <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
completion
This issue or enhancement is related to completion support
RelaxNG
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: