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

Fixed error range for src-element.3 #420

Closed
NikolasKomonen opened this issue Jun 7, 2019 · 2 comments · Fixed by #441
Closed

Fixed error range for src-element.3 #420

NikolasKomonen opened this issue Jun 7, 2019 · 2 comments · Fixed by #441
Assignees
Labels
bug Something isn't working CM Extension Content Model extension (XML Schema & DTD) validation XSD
Milestone

Comments

@NikolasKomonen
Copy link
Contributor

Given:

<a xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:noNamespaceSchemaLocation="intType.xsd">
	<b></b>
</a>

and the XSD:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="a" type="xs:integer">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="b"></xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

You get errors on both documents:

The XML:
Selection_048

The XSD:
Selection_047

@xorye
Copy link

xorye commented Jun 12, 2019

For the XML, I was thinking the error range should cover the element name "a".

For the XSD, should the error range be at "xs:element"?
Or should it be at "type="xs:integer"" or "xs:complexType"?

@xorye
Copy link

xorye commented Jun 12, 2019

This is what I currently have

xml:
image

xsd:
image

@angelozerr angelozerr added this to the v0.8.0 milestone Jun 17, 2019
@angelozerr angelozerr added validation CM Extension Content Model extension (XML Schema & DTD) labels Jun 17, 2019
@angelozerr angelozerr added bug Something isn't working XSD labels Jul 23, 2019
@angelozerr angelozerr changed the title Fix Error Range for src-element.3 Error range for src-element.3 Jul 23, 2019
@angelozerr angelozerr changed the title Error range for src-element.3 Fixed error range for src-element.3 Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CM Extension Content Model extension (XML Schema & DTD) validation XSD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants