Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What's the use of XLink?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Editor to share with you what is the use of XLink, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

XLink is an attribute-based syntax for adding links to XML documents. XLink links can be unidirectional, such as element An in HTML, or bidirectional, linking two documents in both directions, so you can go from A to B or from B to A. Each XLink element must have a xlink:type attribute indicating the connection type. Property xlink:h

XLink is an attribute-based syntax for adding links to XML documents. XLink links can be unidirectional, such as element An in HTML, or bidirectional, linking two documents in both directions, so you can go from A to B or from B to A. Each XLink element must have a xlink:type attribute indicating the connection type. The property xlink:href points to the linked resource URI.

XLink is an attribute-based syntax for adding links to XML documents. XLink links can be unidirectional, such as element An in HTML, or bidirectional, linking two documents in both directions, so you can go from A to B or from B to A. Each XLink element must have a xlink:type attribute indicating the connection type. The property xlink:href points to the linked resource URI. Here is an example of a simple link:

Jims2005/02/18

There are six xlink:type attribute types, which are:

Simple,extended,locator,arc,title,resource .

The xlink:show property tells the browser or application what to do when activating the link. It has five possible actions, which are:

New to display the linked content in a new window.

Replace, which displays the linked content in the current window.

Embed, which embeds content at the location of the current linked element.

Other, action indeterminate, specified by the application.

None, no action.

The xlink:actuate property, which tells the browser when to display the link, has four possible values:

OnLoad, as soon as a link is found, it will be displayed.

OnRequest, which is displayed only when the user requests it.

The other, which is determined by other tags in the document, not the xlink, determines when to display.

None, not specified.

An example that works the same as the An element in HTML:

Jims2005/02/18

An example of embedding an image on a page:

Xlink:actuate and xlink:show are optional.

The xlink:title and xlink:role attributes specify a description between resources, xlink:title contains a small amount of text describing remote resources, and xlink:role contains URI, pointing to a longer description of the resource.

The above is all the content of this article "what's the use of XLink?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report