Questions tagged [xlink]

XLink is a web standard for creating hyperlinks to navigate an XML document.

XLink (XML Linking Language) is a web standard for creating hyperlinks to navigate an XML document.
XLink defines a set of attributes that may be added to elements of other XML namespaces.
XLink provides two kinds of hyperlinking for use in XML documents. Simple links connect only two resources, similar to HTML links. Extended links can link an arbitrary number of resources.

Simple links:

A simple link creates a unidirectional hyperlink from one element to another via a URI. Example:

<?xml version="1.0"?>
<document xmlns="http://example.org/xmlns/2002/document" xmlns:xlink="http://www.w3.org/1999/xlink">
  <heading id="someHeading">Some Document</heading>
  <para>Here is <anchor xlink:type="simple" xlink:href="#someHeading">a link</anchor> to the header.</para>
  <para>It is an anchor that points to the element with the id "someHeading" on the current page.</para>
</document>

Extended links:

Extended links allow multiple resources, either remote or local, to be connected by multiple arcs. An arc is information about the origin, destination and behavior of a link between two resources. The origin and destination resources are defined by labels. By using one or more arcs, an extended link can achieve specific sets of connections between multiple resources.

Useful references:

157 questions
0
votes
0 answers

Triggering a script after loading from an internal link

I am using an SVG element on page A with a href link to page B-- page B has a script that calls the Trianglify api to generate the background. However, if you navigate to page B by clicking this link, the script doesn't trigger. If you refresh the…
rubinca
  • 13
  • 4
0
votes
0 answers

Extract xlink:href attribute from XML

I'm trying to parse an XML but I've got problems when trying to extract a link from the response. My XML looks like:
Pablo Pardo
  • 729
  • 5
  • 12
  • 26
0
votes
0 answers

SVG image xlink:href ignoring page code and styling

When the xlink:href is clicked, it links to the correct page but it ignores the code that it was supposed to run, and the css styling of that page. Background Info: Coding on a mobile app with ionic framework. Codes to display SVG on HTML…
0
votes
1 answer

open link in svg with target _self

I have an svg with links e.g. Any idea why the link opens as an iframe instead of acting like a normal _self target? opening the link in the same window I am at?
George Nicolaou
  • 75
  • 2
  • 13
0
votes
1 answer

SVG doesn't display on Firefox but in Chrome and Edge works fine

I have a little problem, I'm used to use SVG icons by this way: span{ width:30px; height:30px; } span svg{ width: inherit; height: inherit; display:block; fill: red; }
0
votes
2 answers

How to make geometry topology via XML and XSD?

I need to find the way of defining lines using topology representation. Now i have something similar to it: 1 5379847.689
0
votes
1 answer

Putting in a link in XML with XLink but the link address contains entities and operators

I am trying to put a link into my xml. The link directs it to the student handbook. This is part of my XML
Mike Joe
  • 17
  • 4
0
votes
1 answer

Svg map onclick to open related url

I have a svg map of Africa. If I click on a country, I want to be able to open another svg or page that has a map of that country. I have the svg images. I tried the following: