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

Linking with Xlink to "#link"?

In HTML if i want to do a link, i write: ... To do an anchor i write: ... And to do a link i write: ... But with SVG (and so with XLINK,…
Borja
  • 3,359
  • 7
  • 33
  • 66
0
votes
1 answer

Selecting subelements of an External SVG template via CSS

In Chrome (not FF, Safari), I’m unable to style an externally linked (xlink:href) SVG template's sub-elements by class/ID/element reference. I’d like to know if I’m doing anything incorrectly? Has anyone else encountered this issue? HTML:
monopineu
  • 13
  • 3
0
votes
1 answer

smooth scrolling with link inside svg, or rescaling text, what should I try?

I'm creating a website using an SVG as header/nav. At first I created the hyperlink text inside the svg, like this:
Roger That
  • 95
  • 1
  • 12
0
votes
1 answer

Adding a -tag with javascript

I am trying to add a use-svg-tag with Javascript. Jakob Jenkov has an excellent intro to use here: http://tutorials.jenkov.com/svg/use-element.html I just tried to do the same thing with JavaScript: var useit =…
Leo
  • 4,136
  • 6
  • 48
  • 72
0
votes
1 answer

Hyperlinks not working in joint.js in user draggable elements

I am using joint.js to generate a services flowchart. And I use the below code snippet to create my custom element. // Create a custom element. // ------------------------ joint.shapes.custom = {}; // The following custom shape creates a link out…
0
votes
1 answer

How to declare the xlink namespace to validate a Docbook 5 link?

Might I use xl:
...
or do I have to use xlink:
taringamberini
  • 2,719
  • 21
  • 29
0
votes
1 answer

Simplest way to find and link repeating strings in an XML with Python

I have to parse an XML file with a large number of string values. For example: Foo Bar Baz Foo Some of them are equal. There are multiple recurring strings, not just one as in the example…
528
  • 55
  • 4
0
votes
0 answers

Link node tree among different documents

There seems like there should be an obvious solution to this unless I have the wrong approach. So I have some complex data I am trying to store in a native XML db and retrieve using XQuery example:
user2509710
  • 79
  • 1
  • 7
0
votes
2 answers

Access a node of external SVG font within an existing SVG through

I have a SVG container inside of my HTML page. Also I have bunch of svg fonts which are available in 'fonts' folder beside of my page. My svg fonts are like this: . . .
borna
  • 283
  • 2
  • 16
0
votes
1 answer

How to create XML document with multiple schemas in Java?

I have XSD which describes custom schema and which imports XLink (another schema). Import is made with the following declaration ix main XSD: xlink.xsd file is…
Dims
  • 47,675
  • 117
  • 331
  • 600
0
votes
2 answers

Unable to get XLink to work in SVG file

I have to convert some SVG text to a working hyperlink. I have the following code (I've added the anchor tag):
Nathan Power
  • 630
  • 1
  • 6
  • 14
0
votes
1 answer

Using XML links in JQGrid that uses xmlstring as data

I am new to JQgrid and I am using xml string as data. i create the xml string on the backend and them pass it to the jqgrid. I want to have some hyperlinks in my xml document but the problem is the jqgrid does not seem to recognize anything inside…
AbtPst
  • 7,778
  • 17
  • 91
  • 172
0
votes
2 answers

Linq query not matching hrefs

I'm trying to write out all matches found using a regex with the code below: var source = "Read more
Ibrar Hussain
  • 1,791
  • 2
  • 15
  • 19
0
votes
1 answer

SVG XLink Issue - Not working

0
votes
1 answer

Why doesn't xlink link?

When a SVG file that has xlinks are loaded and appended from another source the xlinks don't link. I had the problem with loading both a local file and a file from the server. The files load and all the SVG is in the DOM. Everything works great…
VectorVortec
  • 667
  • 7
  • 10
1 2 3
10
11