Skip to Content
XML in a Nutshell, 3rd Edition
book

XML in a Nutshell, 3rd Edition

by Elliotte Rusty Harold, W. Scott Means
September 2004
Intermediate to advanced
712 pages
24h 45m
English
O'Reilly Media, Inc.
Content preview from XML in a Nutshell, 3rd Edition

Title Elements

As you’ve seen, extended link elements, locator elements, arc elements, and resource elements can all have xlink:title attributes that provide a short blurb of text identifying the link. However, this isn’t always enough. For instance, in a document that was a rather large extended link, you might want to mark up the titles using XHTML or some other vocabulary. To this end, a title can instead (or in addition) be provided as a title type child element, that is, an element whose xlink:type attribute has the value title.

For example, suppose you wanted to provide a more complete description of each edition of The Wonderful Wizard of Oz than simply who published it. Then you would give the edition element a title type element containing any convenient markup, like this:

<edition xlink:type="locator" xlink:href="urn:isbn:0700609857"
         xlink:title="University Press of Kansas"
         xlink:role="http://purl.org/dc/elements/1.1/identifier"
         xlink:label="ISBN0700609857">
  <publisher_info xlink:type="title">
                  <ul>
                  <li>The Kansas Centennial Edition</li>
                  <li>Illustrated by Michael McCurdy</li>
                  <li>Foreword by Ray Bradbury</li>
                  <li>1999</li>
                  <li>216 pages</li>
                  <li>SRP: $24.95</li>
                  </ul>
                  </publisher_info>
</edition>

What markup you use inside the title element is up to you as long as it’s well-formed XML. XLink doesn’t constrain it in any way; how the application interprets that markup is its own business. Here we’ve used basic HTML that a browser might perhaps be able to render. Once again, ...

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: Visual QuickStart Guide, Second Edition

XML: Visual QuickStart Guide, Second Edition

Kevin Howard Goldberg
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0596007647Errata PageSupplemental Content