The xlink:type Attribute

The xlink:type Attribute

The xlink:type attribute defines the type of XLink you're creating. You can set this attribute to these values:

  • simple Creates a simple link.

  • extended Creates an extended link.

  • locator Creates a locator link that points to a resource.

  • arc Creates an arc with multiple resources and various traversal paths. This attribute sets restrictions on paths where a link goes.

  • resource Creates a resource link, which indicates a specific resource.

  • title Creates a title link. Such elements are useful, for example, when human-readable label information needs further element markup or when multiple titles are necessary for internationalization purposes.

We've already seen how to create simple links:

 <MOVIE_REVIEW xmlns:xlink = "http://www.w3.org/1999/xlink"      xlink:type = "simple"     xlink:show = "new"     xlink:href="http://www.starpowdermovies.com/reviews.xml#xpointer(/child::*[position( graphics/ccc.gif )=126]/child::*[position()=first()])">     Mr. Blandings Builds His Dream House </MOVIE_REVIEW> 

I'll take a look at the various other kinds of links in this chapter.



Real World XML
Real World XML (2nd Edition)
ISBN: 0735712867
EAN: 2147483647
Year: 2005
Pages: 440
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net