The best XLink examples Tutorial In 2024, In this tutorial you can learn XML instance documents,XLink - depth study,
Let's study an example to learn some basic XLink syntax.
Consider the following XML document, "bookstore.xml", which is used to render Books:
See "bookstore.xml" in your browser bookstore.xml file.
In the above example, XLink namespace document (xmlns: xlink = "http://www.w3.org/1999/xlink") is declared at the top of the document. This means that the document can access the properties and characteristics of the XLink.
xlink: type = "simple" to create a simple HTML-like links. You can also specify more complex links (multi-directional links), but for now, we only use simple links.
xlink: href attribute specifies a link to the URL, and the xlink: show attribute specifies where to open the link. xlink: show = "new" means that the link (in this case, is an image) will open in a new window.
In the above example, we only show a simple link. When we want to access the remote location of the resource, rather than a separate page, XLink is more interesting. In the above example <description> XLINK attribute set of elements is displayed: "new". This means that the link should open in a new window. We can set the value XLINK: Display Properties "embed". This means that the resource should be embedded in the page processing. Do you think this could be another XML document, rather than just an image, you can create an example of an XML document hierarchy.
Use XLink, you can also specify if the resource is displayed. This is handled by the XLink actuate attributes. XLINK: actuate "=" onLoad "specifies the resource files to be loaded and displayed .XLINK: actuate =". OnRequest "can not read or display the resource link is clicked before mean this to set low bandwidth is very convenient.