O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Describing Resources: xlink:role and xlink:title

Two important XLink attributes are xlink:role and xlink:title, which let you describe a remote resource. Both of these attributes are optional. Here's an example that puts both of these attributes to work:

Listing . ch15_05.xml
 
<MOVIE_REVIEW xmlns:xlink = "http://www.w3.org/1999/xlink"
    xlink:type = "simple"
    xlink:show = "new"
    xlink:role = "MOVIE_REVIEW[EN]"
					xlink:title = "Review of 'Mr. Blandings Builds His Dream House'"
    xlink:href = "http://www.starpowdermovies.com/reviews.xml#xpointer(/child::*[position
()=126]/child::*[position()=first()])"> Mr. Blandings Builds His Dream House </MOVIE_REVIEW> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required