很多项目维护一个常见问题(FAQ)页面。Example 15.6, “FAQ标记语言文档”展示了一个FML文档的例子:
Example 15.6. FAQ标记语言文档
<?xml version="1.0" encoding="UTF-8"?> <faqs title="Frequently Asked Questions"> <part id="General"> <faq id="sample-project-sucks"> <question>Sample project doesn't work. Why does sample project suck?</question> <answer> <p> We resent that question. Sample wasn't designed to work, it was designed to show you how to use Maven. Is you really think this project sucks, then keep it to yourself. We're not interested in your pestering questions. </p> </answer> </faq> <faq id="sample-project-source"> <question>I want to put some code in Sample Project, how do I do this?</question> <answer> <p> If you want to add code to this project, just start putting Java source in src/main/java. If you want to put some source code in this FAQ, use the source element: </p> <source> for( int i = 0; i < 1234; i++ ) { // do something brilliant } </source> </answer> </faq> </part> </faqs>