XML Getting Started Tutorial: XLink-XML/XSLT analysis

Source: Internet
Author: User
Tags xslt
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.