-
Notifications
You must be signed in to change notification settings - Fork 93
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
Completion for xsi attributes #163
Comments
@angelozerr Think I can work on this? |
yes sure! |
@angelozerr Would you recommend I create a new IXMLExtension implementation for this issue. Or should I put it into an existing class like ContentModelPlugin or XMLReferencesPlugin? |
ContentModelCompletionParticipant is good I think. |
@angelozerr Should the completion items be static or read from https://www.w3.org/2001/XMLSchema-instance ? |
You mean using an XML Schema? If it exists an XML Schema for XMLSchema-instance it should be cool to use it, otherwise we need to hard coded that (I think we should do that, but please check that it exists a XMLSchema-instance XML Schema). |
@angelozerr I found that https://www.w3.org/2001/XMLSchema-instance == https://www.w3.org/2001/XMLSchema-instance.xsd . If you use a web browser to view the page source it has the xsd. Im trying to use the loader here with one of the above URI's but it doesnt seem to work. Is this right place to be doing this, do you think it will take a lot more work to get it working? |
An interesting topic about this XMLSchema is https://stackoverflow.com/questions/17094247/where-is-the-xsd-file-for-http-www-w3-org-2001-xmlschema-instance You can view source of this XML Schema with Chrome:
So I think we shouldhard coding this completion and perhaps validation too? |
@angelozerr I agree, hard coding should be good. I'll work on completion for now. |
Very cool! Thanks! |
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Fixes eclipse-lemminx#163 Signed-off-by: Nikolas Komonen <nikolaskomonen@gmail.com>
Add completion for xsi attributes:
schemaLocation
noNamespaceSchemaLocation
nil
?See https://www.w3.org/TR/xmlschema-1/#d0e3067
The text was updated successfully, but these errors were encountered: