o applying patch for MPFAQ-1

http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPFAQ-1

[process::MPFAQ-1]


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114463 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl 2003-12-09 00:57:58 +00:00
parent 83d3451892
commit ec5499eba5
2 changed files with 24 additions and 10 deletions

View File

@ -69,14 +69,16 @@
<x:set var="root" select="$doc/*"/>
<!-- produce a output xdoc xml file from parsed .fml source -->
<j:file name="${outFile}" encoding="${outputencoding}" outputMode="xml">
<j:file name="${outFile}" encoding="${outputencoding}" outputMode="xml" escapeText="false">
<document>
<properties>
<title><x:expr select="$root/title"/></title>
<x:element name="title"><x:expr select="$root/@title"/></x:element>
</properties>
<body>
<section name="Frequently Asked Questions">
<x:element name="section">
<x:attribute name="name"><x:expr select="$root/@title"/></x:attribute>
<x:forEach select="$root/part">
<p>
<strong><x:expr select="title"/></strong>
@ -92,7 +94,7 @@
</x:forEach>
</ol>
</x:forEach>
</section>
</x:element>
<x:forEach select="$root/part">
<x:element name="section">

View File

@ -9,13 +9,13 @@
<body>
<section name="Maven FAQ Plug-in">
<p>
This plugin generates xdoc documentation from an XML FAQ document.
This plugin generates xdoc documentation from XML FAQ documents.
This automates the creation of an index of questions with hypertext
links to the full question and answers.
</p>
<p>
The plugin uses by default a file called <code>xdocs/faq.fml</code>
to generate the FAQ entry. There is an example of the XML format
The plugin uses the <code>xdocs</code> directory by default
to generate the FAQ files. There is an example of the XML format
<a href="faq.fml">here</a>.
</p>
<p>
@ -26,9 +26,21 @@
To enable FAQ generation add the following to your maven.xml
</p>
<source>
&lt;preGoal name="xdoc:jelly-transform"&gt;
&lt;attainGoal name="faq"/&gt;
&lt;/preGoal&gt;
<![CDATA[
<preGoal name="xdoc:jelly-transform">
<attainGoal name="faq"/>
</preGoal>
]]>
</source>
<p>
You can also add the faq generation to your project.xml likt this :
</p>
<source>
<![CDATA[
<reports>
<report>maven-faq-plugin</report>
<reports>
]]>
</source>
</section>
</body>