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

Fix error range for cvc-elt.3.2.1 #321

Closed
fbricon opened this issue Mar 8, 2019 · 0 comments · Fixed by #325
Closed

Fix error range for cvc-elt.3.2.1 #321

fbricon opened this issue Mar 8, 2019 · 0 comments · Fixed by #325
Labels
bug Something isn't working validation
Milestone

Comments

@fbricon
Copy link
Contributor

fbricon commented Mar 8, 2019

given this schema foo.xsd

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element
            name="root"
            nillable="true">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element
                        name="e1"
                        type="xsd:string"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>

This invalid xml has a wrong diagnostic range:

<root
        xsi:noNamespaceSchemaLocation="foo.xsd"
        xsi:nil="true"
        xmlns=""
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <e1>xxx</e1>
</root>

Screen Shot 2019-03-08 at 3 59 06 PM

@fbricon fbricon added bug Something isn't working validation labels Mar 8, 2019
@NikolasKomonen NikolasKomonen modified the milestone: v0.5.0 Mar 8, 2019
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 14, 2019
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 14, 2019
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 14, 2019
NikolasKomonen added a commit to NikolasKomonen/lsp4xml that referenced this issue Mar 14, 2019
fbricon pushed a commit that referenced this issue Mar 14, 2019
Fixes #321, #318, #317

Signed-off-by: Nikolas <[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 validation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants