O'Reilly logo

Sams Teach Yourself XML in 10 Minutes by Andrew H. Watt

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

XLink Attributes

The XLink specification creates no new elements but does add attributes that are in the XLink namespace to elements in other XML application languages. Typically, the XLink namespace must be declared.

The xlink:href attribute specifies a URI for the remote resource. The type of an XLink—simple or extended—is expressed using the xlink:type attribute. For a simple link that replaces the local resource when the arc is traversed, you need only those two attributes:

<myPrefix:myElement xlink:type="simple" 
xlink:href="someURI" > 

The xlink:show attribute controls where the remote resource is displayed. The default value is replace. To display a resource in a new browser window, the xlink:show attribute has the value new.

The xlink:actuate ...

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