@type - Fluid Topics - 3.5 - Technical Notes

Upload FTML Content to Fluid Topics

Product
Fluid Topics
FT_Version
3.5
Category
Technical Notes
language
English
audience
public

The @type attribute is used within the ft:node element to declare the type of the node.

The @type element is optional. It can have two different values:

  • topic (value by default)

The following lines show an example of the @type attribute set to topic:

<?xml version="1.0" encoding="UTF-8"?>
<ft:map ...>
...
<ft:toc>
<ft:node ft:originID="192fe" ft:title="Introduction" href="intro/introduction.html"
type="topic">
<ft:metas>
<ft:meta key="product">myProduct</ft:meta>
<ft:meta key="audience">beginner</ft:meta>
</ft:metas>
<ft:node href="front.html"/>
</ft:node>
<ft:node ft:title="Copyrights" href="copyrights.html"/>
...
</ft:toc>
</ft:map>

  • topics

Pre-requisites for an ft:node with the attribute type="topics":

  • It must contain an @href attribute targeting a HTML or Markdown file.
  • It must not have ft:node children.

Example

If we have the following HTML file:

<html>
<body>
<p><a name="Animals">Animals</a></p>
<h1><a name="_animal_classification">Animal Classification</a></h1>
<p>Animals are multicellular eukaryotic organisms that form the biological kingdom Animalia. In modern times, the biological classification of animals relies on advanced techniques, such as molecular phylogenetics, which are effective at demonstrating the evolutionary relationships between animal taxa.<p>
<h2>Etymology</h2>
<p>The word “animal” comes from the Latin animalis, meaning having breath, having soul or living being. The biological definition includes all members of the kingdom Animalia. In colloquial usage, as a consequence of anthropocentrism, the term animal is sometimes used non-scientifically to refer only to non-human animals.</p>
<h1>Beast Poetry</h1>
<p>Beast poetry, in the context of European literature and Medieval studies, refers to a corpus of poems written in Latin from the 8th to the 11th century.</p>
<p>These poems draw upon an ancient literary tradition of anthropomorphic animals dating back into antiquity and exemplified by Aesop. They are the immediate foundation for the flowering of Reynard literature that occurred in the 12th century. Elements from beast poetry have been adapted into subsequent works ranging from the Canterbury Tales to contemporary movies made with computer animation.</p>
</body>
</html>

It is transformed in a topic group in the following way:

TOPIC Animals
├── title – Animals
├── content - <p><a name="Animals>Animals</a></p>
├── TOPIC Animals_Animal_classification
│ ├── title – Animal Classification
│ ├── content - <p>Animals are multicellular eukaryotic organisms...relationships between animal taxa.</p>
│ └── TOPIC Animals_Animal_classification_Etymology
│ ├── title - Etymology
│ └── content - <p> The word “animal” comes from the Latin animalis...only to non-human animals.</p>
└── TOPIC Animals_Beast_Poetry
├── title – Beast Poetry
└── content – <p> Beast poetry, in the context of...to contemporary movies made with computer animation.</p>