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

Add support for textDocument/documentLink for xsi:schemaLocation #666

Closed
angelozerr opened this issue Apr 28, 2020 · 1 comment · Fixed by #773 or enxio/lsp4xml#63
Closed

Add support for textDocument/documentLink for xsi:schemaLocation #666

angelozerr opened this issue Apr 28, 2020 · 1 comment · Fixed by #773 or enxio/lsp4xml#63
Assignees
Labels
CM Extension Content Model extension (XML Schema & DTD) good first issue Good for newcomers hyperlink
Milestone

Comments

@angelozerr
Copy link
Contributor

Given this XML Schema:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.w3schools.com"
xmlns="https://www.w3schools.com"
elementFormDefault="qualified">

<xs:element name="note">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="to" type="xs:string"/>
      <xs:element name="from" type="xs:string"/>
      <xs:element name="heading" type="xs:string"/>
      <xs:element name="body" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

</xs:schema>

and this XML:

<note xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	  xmlns="https://www.w3schools.com"
	  xsi:schemaLocation="https://www.w3schools.com note.xsd">
	<to></to>
	<from></from>
	<heading></heading>
	<body></body>
</note>

The note.xsd from xsi:schemaLocation="https://www.w3schools.com note.xsd" must be a documentLink to open it it with Ctrl+Click.

Pay attention that xsi:schemaLocation can contain several xsd .

@angelozerr angelozerr added good first issue Good for newcomers CM Extension Content Model extension (XML Schema & DTD) hyperlink labels Apr 28, 2020
@fbricon fbricon added this to the 0.12.0 milestone May 13, 2020
@datho7561
Copy link
Contributor

I'm interested in working on this issue

@fbricon fbricon modified the milestones: 0.12.0, 0.13.0 Jun 3, 2020
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 9, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 9, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
datho7561 added a commit to datho7561/lemminx that referenced this issue Jun 11, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes eclipse-lemminx#666

Signed-off-by: David Thompson <[email protected]>
xorye pushed a commit that referenced this issue Jun 15, 2020
Every second token for the value of xsi:schemaLocation is turned into a
document link to the referenced schema file.

Closes #666

Signed-off-by: David Thompson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CM Extension Content Model extension (XML Schema & DTD) good first issue Good for newcomers hyperlink
Projects
None yet
3 participants