-
Create the following HTML file, and name it
mytopic.html
.It contains multiple sections separated by headings (
<h1>
and<h2>
).<html> <body> <h1>First topic</h1> <p>This is an example sentence.<p> <h2>Second topic</h2> <p>This is an example sentence.<p> <h1>Third topic</h1> <p>This is an example sentence.<p> </body> </html>
-
Create the following
.ftmap
file, and name itdoc_example.ftml
.It references
mytopic.html
, with atype
attribute with a value oftopics
.<?xml version="1.0" encoding="UTF-8"?> <ft:map ft:title="The title of the document" ft:lang="en-US" xmlns:ft="http://ref.fluidtopics.com/v3/ft#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ftmap.xsd"> <ft:toc> <ft:node ft:title="Example" href="mytopic.html" type="topics"/> </ft:toc> </ft:map>
-
Compress the two files, and publish them.
With type="topics"
, the sections of mytopic.html
are independent topics:
With type="topic"
, the sections of mytopic.html
are not independent topics: