Xlinks
Download
1 / 35

XLinks - PowerPoint PPT Presentation


  • 103 Views
  • Uploaded on

XLinks. Praveen Polishetty. Contents :. XLink Capabilities XLink Concepts XLink Core Properties XLink Semantic Properties XLink Behavior Properties XLink Traversal Properties Types of XLinks Summary References.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' XLinks' - miranda-roach


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Xlinks

XLinks

Praveen Polishetty


Contents
Contents :

  • XLink Capabilities

  • XLink Concepts

  • XLink Core Properties

  • XLink Semantic Properties

  • XLink Behavior Properties

  • XLink Traversal Properties

  • Types of XLinks

  • Summary

  • References



Capabilities of xlinks
Capabilities of XLinks: be inserted into XML documents in order to create and describe links between resources.

  • Assert linking relationships among more than two resources.

  • Associate metadata with a link.

  • Express links that reside in a location separate from the linked resources.


Xlink concepts
XLink Concepts: be inserted into XML documents in order to create and describe links between resources.

  • Links and Resources

  • Arcs Traversal and Behavior

  • Resources in relation to the physical location of a linking element.


Links and resources
Links and Resources: be inserted into XML documents in order to create and describe links between resources.

  • LINK : It is an explicit relationship between resources or portions of resources.

  • Resource : It is any addressable unit of information or service.


Arcs traversal and behavior
Arcs Traversal and Behavior be inserted into XML documents in order to create and describe links between resources.:

  • Arc : Information about how to traverse a pair of resources, including the direction of traversal and possibly application behavior information.

  • Traversal : Using or following a link for any purpose


Resources in relation to the physical location of a linking element
Resources in relation to the physical location of a linking element:

  • Local Resource : It is an XML element that participates in a link by virtue of having as its parent, or being itself, a linking element

  • Remote Resource : Any resource or resource portion that participates in a link by virtue of being addressed with a URI reference


Xlink core properties
XLink Core Properties: element:

  • XLink element Type attribute(type)

  • XLink element Locator attribute(href)


Xlink element type attribute type
XLink element Type attribute (type): element:

  • XLink:type attribute indicates the type of the link:

  • value simplesimple link

  • value extended extended link


Xlink element locator attribute href
XLink element Locator attribute (href): element:

  • XLink:href this is the only locator attribute, and its value is an URI Reference.


Xlink semantic properties
XLink Semantic Properties: element:

Those are placeholders for application semantic:

  • XLink:title is designed to provide human-readable text describing the links, simple links must use an attribute while extended links must use an element.

  • XLink:role is an attribute containing a qualified name used to describe the function of the link's or locator's content.


Xlink behavior properties
XLink Behavior Properties: element:

  • Attributes are

    • show

    • actuate


Show attribute
Show Attribute: element:

  • XLink:show indicate expected behaviour on traversal effect:

  • valueembed the link target should be included like <IMG>

  • value new the link target should create a new rendering, like opening a new window.

  • value replace the link target should replace the resource containing the link, like <A> in most cases.


Actuate attribute
Actuate attribute: element:

  • XLink:actuate indicate expected triggering of link:

  • valueauto indicate at link detection time, like <IMG> if auto loading of images is turned on.

  • value onRequest indicate activation at user's request, like <A>


Xlink traversal properties
XLink Traversal Properties: element:

Attributes:

  • Label

  • From

  • To


Types of links
Types of Links: element:

  • Simple

    • An outbound link with exactly two participating resources

  • Extended

    • Links that have arbitrary numbers of participating resources


  • Extended links
    Extended Links: element:

    View:


    Advanced features
    Advanced Features: element:

    • Multiple sources and targets using XLink:locator elements

    • Multiple actuation possible using XLink:arc elements

    • Multiple XLink:title elements.


    Xlink extended
    XLink :Extended element:

    • xlink:extended element

      <?xml version="1.0"?>

      <WEBSITE>

      <xlink:extended xmlns:xlink="http://www.w3.org/XML/XLink/0.9">

      <!-- Locators go here -->

      </xlink:extended>

      </WEBSITE>

    • An element of arbitrary type like COMPOSER or TEAM that has xlink:type attribute with the value extended

      <?xml version="1.0"?>

      <WEBSITE

      xmlns:xlink="http://www.w3.org/XML/XLink/0.9"

      xlink:type="extended">

      <!-- Locators go here -->

      </WEBSITE>


    Examples of extended links
    Examples of Extended Links: element:

    Locator to

    Remote

    resource

    Locator to

    Remote

    resource

    Locator to

    Remote

    resource

    Extended

    Locator to

    Remote

    resource

    Locator to

    Remote

    resource


    Contd
    Contd… element:

    Locator to

    Remote

    resource

    Locator to

    Remote

    resource

    Locator to

    Remote

    resource

    Extended

    Local

    Resource

    Local

    resource

    Locator to

    Remote

    resource

    Locator to

    Remote

    resource


    Extended links1
    Extended Links: element:

    The extended type element may contain any of the following:

    • Locator

    • Arc

    • Title

    • Resource


    Extended links2
    Extended Links: element:

    • Local Resources (resource type element)

    • Remote Resources (Locator type element)

    • Traversal Rules (Arc type Element)


    Local resources
    Local Resources: element:

    An extended link indicates its participating local resources by means of special sub elements that appear inside the extended link. An entire sub element, together with all of its contents, makes up a local resource.


    Remote resources
    Remote Resources: element:

    An extended link indicates remote resources that participate in it by means of locator elements.


    Traversal rules
    Traversal Rules: element:

    An extended link may indicate rules for traversing among its participating resources by means of a series of optional arc elements.


    Simple links
    Simple links: element:

    View:

    Source

    Link

    Target


    Xlink simple
    Xlink:Simple element:

    • <xlink:simple

      xmlns:xlink= “http://www.w3.org/XML/Xlink/0.9”

      href="footnote7.xml">

      <FOOTNOTE>7</FOOTNOTE>

      </xlink:simple>

    • <xlink:simple

      xmlns:xlink=“http://www.w3.org/XML/Xlink/0.9”

      href="http://www.interport.net/~beand/">

      <COMPOSER>Beth Anderson</COMPOSER>

      </xlink:simple>

    • <IMAGE>

      <xlink:simple

      xmlns:xlink="http://www.w3.org/XML/XLink/0.9" href="logo.gif"/>

      </IMAGE>

      If used in a valid document, xlink:simple must be declared

      <!ELEMENT xlink:simple ANY>

      <!ATTLIST xlink:simple

      xmlns:xlink CDATA #FIXED "http://www.w3.org/XML/XLink/0.9"

      href CDATA #REQUIRED >


    Example of simple link
    Example of Simple Link: element:

    Locator to

    Remote

    resource

    Simple

    Local

    resource

    Local

    resource


    Limitations of simple links
    Limitations of Simple Links: element:

    • Supplying arbitrary numbers of local and remote resources

    • Specifying an arc from its remote resource to its local resource

    • Associating a title with the single hardwired arc

    • Associating a role or title with the local resource

    • Associating a role or title with the link as a whole


    Summary
    Summary: element:

    • Simple links behave much like HTML links, but they are not restricted to a single <A> tag.

    • Link elements are identified by xlink:type attributes.

    • Simple link elements are identified by xlink:type attributes with the value simple. The xlink:simple element is also a simple link.

    • Link elements can describe the resource they're linking to with title and role attributes.

    • Link elements can use the show attribute to tell the application how the content should be displayed when the link is activated, for example, by opening a new window.

    • Link elements can use the actuate attribute to tell the application whether the link should be traversed without a specific user request.

    • Extended link elements are identified by xlink:type attributes with the value extended. The xlink:extended element is also an extended link.

    • Extended links can contain multiple locators and arcs. Currently, it's left to the application to decide how to choose between different alternatives


    Contd1
    Contd…. element:

    • Locator elements are identified by xlink:type attributes with the value locator. The xlink:locator element is also a locator element.

    • A locator element has an href or xlink:href attribute whose value is the URI of the resource it locates.

    • Arc elements are identified by xlink:type attributes with the value arc. The xlink:arc element is also an arc element.

    • Arc elements have from and to attributes of IDREF type that identify to the locator elements they connect.

    • Arc elements may have show and actuate attributes to determine when and how traversal of the link occurs.

    • An extended link group element contains a list of links that connect a particular group of documents.

    • An extended link group element is identified by an xlink:type attribute with the value group. An xlink:group element is also an extended link group element.

    • An out of line link is an XLink (most commonly an extended XLink) that is not part of any of the documents it connects. Instead, the links are stored in a separate linking document.

    • An extended link document element is identified by an xlink:type attribute with the value document. An xlink:document element is also an extended link document element.


    References
    References: element:

    • www.w3.org

    • www.unc.edu

    • www.ibiblio.org/xml/

    • www.Xml.com



    ad