Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Linking in SVG

You have seen some use of linking in SVG already. Let's take a moment to look in a little more detail at linking in SVG.

XLink in SVG

Linking in SVG is founded on the XML Linking Language, XLink, to which you were introduced in Chapter 13, “Linking Information: XLink, XBase, and XInclude.” In SVG, only simple XLink links are used.

The <a> Element

The <a> element in SVG differs from the <a> element in HTML or XHTML in the detail of how links are expressed. An <a> element in SVG uses an xlink:href attribute to contain the value of the linked Web page or other resource.

We can add a rollover button (like the one we started the chapter with) to an <a> element by nesting the SVG button within it. If we assign the value of "SimpleWebPage.svg" ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book