O'Reilly logo

XML Topic Maps: Creating and Using Topic Maps for the Web by Jack Park, Sam Hunting

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

Appetizer

Topic map documents are very simple: there are only 19 XTM elements. So, when you finish this section, you will know 50 percent of what you need to know to start topic mapping. In this section, you'll learn about the following elements (listed alphabetically):

<baseName>
<baseNameString>
<occurrence>
<resourceRef>
<scope>
<subjectIdentity>
<subjectIndicatorRef>
<topic>
<topicRef>

Introducing <topic>, <baseName>, <scope>, <baseNameString>, and <occurrence>

Let's create a topic element and give it an ID in case we need to identify it later:

<topic id="myTomato">

(I lied about what you need to know about XML. XML elements also have attributes, like the -id- attribute in the example above.)

PITFALL: An ID must be a string that is unique ...

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