The FML format

Overview

An 'fml' (FAQ Markup Language) is an XML document conforming to a small and simple set of tags. The format was first used in the Maven 1, version of the FAQ plugin.

The FML format

Below the root element faqs there are one or more part elements. Each part element has a title and contains one or more faq elements. Each faq element has a question and an answer element. The contents of title, question and answer are parsed with the XDoc parser. The full documentation is available at here.

FML Sample

The following is a sample FML document:

<?xml version="1.0" encoding="UTF-8"?>
<faqs xmlns="http://maven.apache.org/FML/1.0.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 http://maven.apache.org/xsd/fml-1.0.1.xsd"
  title="Frequently Asked Questions"
  toplink="false">

  <part id="general">
    <title>General</title>

    <faq id="whats-foo">
      <question>
        What is Foo?
      </question>
      <answer>
        <p>some markup goes here</p>

        <source>some source code</source>

        <p>some markup goes here</p>
      </answer>
    </faq>

    <faq id="whats-bar">
      <question>
        What is Bar?
      </question>
      <answer>
        <p>some markup goes here</p>
      </answer>
    </faq>
  </part>

  <part id="install">

    <title>Installation</title>

    <faq id="how-install">
      <question>
        How do I install Foo?
      </question>
      <answer>
        <p>some markup goes here</p>
      </answer>
    </faq>

  </part>

</faqs>

Validation

Doxia is able to validate your fml files as described here.