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
4
votes
0 answers

External sprite.svg shadow-root empty icons not showing

I am working with gulp-sprite trying to load svgs into a styleguide. I have created the icon.svg, but when I try to display them in a different HTML file using xlink:href the svgs aren't showing. The shadow-root is empty. I have tried multiple…
hurdler131
  • 41
  • 2
4
votes
2 answers

How i can style SVG elements on hover?

I'm beginner in SVG. I'm trying to change style of multiple elements on hover at a specific element with css, but I can't, because elements using Shadow DOM. I have the following :
Ihor Yanovchyk
  • 768
  • 6
  • 13
4
votes
1 answer

jaxb and xlink - friends or foes?

i want to build a rest service via cxf. this is already done with only two objects "Earthpart" and "Earthquake". when i call localhost/earthpars i get a xml list of the earthparts with the earthquakes. but the earthquakeobject with more information…
nils petersohn
  • 2,317
  • 2
  • 25
  • 27
4
votes
1 answer

Why does the SVG animation stop when using xlink:href for external file

For some reason my spinner.svg is not animating when using xlink:href. Embedding the SVG on the page and using xlink:href seems to work fine, as the snippet below shows. The problem: static (and solid!) spinner instead of animation Why are the…
oligofren
  • 20,744
  • 16
  • 93
  • 180
4
votes
1 answer

How can I get the value of an attribute called xlink:href of an xml node by using php

i just cant do it, dont kno whey. How can I get the value of an attribute called xlink:href of an xml node by using php. Please please someone just give me a nudge. i am new to php This is the XML Document
Zero Cool
  • 459
  • 1
  • 9
  • 23
4
votes
0 answers

Parsing large XML files(Airspace, Point and Route in AIXM 5.1) with xlinks using Jaxb taking long time

I am trying to parse an AIXM5.1 xml file of size >50 MB using JAXB. I am able to unmarshal this xml within a minute itself. But, when I try to iterate through the java object and fetching values of the fields in XML it is taking huge time. After…
shivaram
  • 41
  • 4
4
votes
2 answers

Modify svg xlink:href through knockout attr binding

I can modify xlink:href through javascript and jquery just fine but modifying just the dom's xlink:href through the knockout attr binding does not work. This is my svg definition
nano2nd
  • 333
  • 3
  • 10
4
votes
1 answer

Adding multiple links to an SVG object

I am trying to get an SVG object (map of Europe) with 7 countries selected to be links to specific pages. In my SVG file, I have wrapped each polygon or path that is supposed to be a link with this general syntax:
Ali Samii
  • 1,672
  • 4
  • 28
  • 49
3
votes
1 answer

Using XLink to refer to nodes within same document

The general gist of a simple XLink to another node in the same document seems to be: ... Without using XPointer or XPath, is this as…
Gavin
  • 9,855
  • 7
  • 49
  • 61
3
votes
3 answers

.NET library for use with XBRL or XLINK

Does anyone know of a good .NET library I can use to process XBRL or XLINK documents?
Maurice
  • 27,582
  • 5
  • 49
  • 62
3
votes
1 answer

Why namespaced parameters?

From the "Namespaces Crash Course" by Mozilla: "sometimes it is necessary to define parameters so that they can be reused on many different elements and still be considered to be the same parameter, independently of the element with which they are…
Aaron Bell
  • 852
  • 2
  • 11
  • 26