XLink is a property-based syntax used to add links to XML documents. XLink links can be unidirectional, for example, element A in HTML. It can also be bidirectional. link two documents in two directions, therefore, it can be from A to B or from B to. Each XLink element must have an xlink: type attribute indicating the connection type. Attribute xlink: h XLink is a property-based syntax used to add links to XML documents. XLink links can be unidirectional, for example, element A in HTML. It can also be bidirectional. link two documents in two directions, therefore, it can be from A to B or from B to. Each XLink element must have an xlink: type attribute indicating the connection type. Property xlink: h
XLink is a property-based syntax used to add links to XML documents. XLink links can be unidirectional, for example, element A in HTML. It can also be bidirectional. link two documents in two directions, therefore, it can be from A to B or from B to. Each XLink element must have an xlink: type attribute indicating the connection type. Property xlink: href points to the linked resource URI.
XLink is a property-based syntax used to add links to XML documents. XLink links can be unidirectional, for example, element A in HTML. It can also be bidirectional. link two documents in two directions, therefore, it can be from A to B or from B to. Each XLink element must have an xlink: type attribute indicating the connection type. Property xlink: href points to the linked resource URI. The following is an example of a simple link:
Jims
2005/02/18
There are six types of xlink: type attributes:
simple,extended,locator,arc,title,resource。
The xlink: show attribute tells the browser or application what to do when activating the link. There are five possible actions:
New. the link content is displayed in the new window.
Replace: the link content is displayed in the current window.
Embed: embedded content at the position of the current link element.
Other: the action is uncertain and is specified by the application.
None, no action.
The xlink: actuate attribute tells the browser when to display the link. It has four possible values:
OnLoad. Once a link is found, it is displayed immediately.
OnRequest, which is displayed only when the user initiates a request.
Other is determined by other marks in the document, rather than xlink.
None, not specified.
An example of the same effect as element A in HTML:
Jims
2005/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 can be used to specify the description between resources. xlink: title contains a small amount of text describing remote resources. xlink: role contains the URI, which indicates a long description of the resource.
The above is an XML Getting Started Tutorial: detailed analysis of XLink-XML/XSLT. For more information, see other related articles in the first PHP community!