Skip to content
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

Incomplete autocompletion for xsl documents #165

Closed
fbricon opened this issue Oct 17, 2018 · 2 comments
Closed

Incomplete autocompletion for xsl documents #165

fbricon opened this issue Oct 17, 2018 · 2 comments
Labels
bug Something isn't working completion This issue or enhancement is related to completion support
Milestone

Comments

@fbricon
Copy link
Contributor

fbricon commented Oct 17, 2018

Given

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:|
</xsl:stylesheet>

There's no autocompletion result for xsl:template, even though some other items are proposed:

screen shot 2018-10-17 at 4 09 20 pm

@fbricon fbricon added bug Something isn't working completion This issue or enhancement is related to completion support labels Oct 17, 2018
@fbricon
Copy link
Contributor Author

fbricon commented Oct 18, 2018

@angelozerr any idea why?

@angelozerr
Copy link
Contributor

@angelozerr any idea why?

Yes I see the problem, xsl:declaration is marked as abstract

<xs:element name="declaration" type="xsl:generic-element-type" abstract="true"/>

and template is marked as substitutionGroup="xsl:declaration"

<xs:element name="template" substitutionGroup="xsl:declaration">

In other words, xsl:declaration must not be returned by completion, but template, and other element marked with substitutionGroup="xsl:declaration" must be returned.

Fix will come soon.

@angelozerr angelozerr added this to the v0.0.2 milestone Oct 30, 2018
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
Projects
None yet
Development

No branches or pull requests

2 participants