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 ...

Get XML Topic Maps: Creating and Using Topic Maps for the Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.