DITA subject scheme map requirements - Fluid Topics - Latest

Fluid Topics Configuration and Administration Guide

Category
Reference Guides
Audience
public
Version
Latest

When processing DITA subject scheme map vocabularies, each <subjectdef> or <subjectHead> element defines a term. Fluid Topics can use either of the following as the main term:

  • The navtitle attribute of the element.
  • The <navtitle> element inside the <topicmeta> child of a <subjectdef> element, or inside the <subjectHeadMeta> child of a <subjectHead> element.
  • If an element has both a navtitle attribute and a <navtitle> element, Fluid Topics uses the <navtitle> element.
  • If an element has neither a navtitle attribute nor a <navtitle> element, Fluid Topics uses the first value of the keys attribute.
  • If an element has no navtitle attribute, no <navtitle> element, and no keys attribute, Fluid Topics rejects the vocabulary.

The keys attribute of the same element contains the synonyms of the main term. Separate synonyms with a space. A main term can have more specific terms (also known as hyponyms) by having children <subjectdef> or <subjectHead> elements, either directly or wrapped in a <hasInstance> element.

For example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE subjectScheme PUBLIC "-//OASIS//DTD DITA Subject Scheme Map//EN" "subjectScheme.dtd"> 
<subjectScheme>
    <subjectdef id="os" navtitle="Operating Systems" keys="OS platform">
        <subjectdef id="win" navtitle="Windows" keys="win ms"/>
        <subjectdef id="lin" navtitle="Linux" keys="nix Ubuntu"/>
    </subjectdef>
</subjectScheme>

In this example, "Operating Systems" is the main term, and "OS" and "platform" are its synonyms. It has two more specific terms, "Windows" and "Linux", each with its own synonyms: "win" and "ms" for Windows, and "nix" and "Ubuntu" for Linux. Because the Windows and Linux <subjectdef> elements are nested inside the "Operating Systems" element, Fluid Topics treats them as more specific terms of "Operating Systems".

DITA subject scheme maps are universal vocabularies by default. To make them language-specific, set an xml:lang attribute value on the <subjectScheme> element, for example xml:lang="en-US".

Fluid Topics ignores elements other than <subjectdef>, <subjectHead>, and <hasInstance>, including the terms they contain.