Hi folks,

I think I discovered a glitch in generating FAQs using
fml. I tried nabble and could not find anything that 
points to the glitch I found. I also tried to find the 
sources of the plugin that transforms .fml files into
proper html, but unfortunately I could not find them.
All I found was the maven1 faq plugin. But I am using
maven2.

Here is a snippet of my fml.
  ...
  <part id="Set up">
    <title>General</title>
    <faq id="a1">
      <question>Q1?</question>
      <answer><p>a1</p></answer>
    </faq>
  </part>
  <part id="Config">
    <title>Configuration</title>
    <faq id="a2">
      <question>Q2?</question>
      <answer><p>a2</p></answer>
    </faq>
    <faq id="a3">
  ...

This resulted in the following html.
          ...
          <h2>
             Frequently Asked Questions 
          </h2>
          <p>
            General   #### NOTE THIS ONE
          </p>
          <ol type="1">
            <li>
               #a1 Q1? 
            </li>
          </ol>
          Configuration  #### NOTE THIS ONE
          <ol type="1">
            <li>
               #a2 Q2? 
          ...

It seems like only the first fml <part> in my fml file gets transformed 
into an hmtl <p> tag. All subsequent fml <part>'s lack the html <p>
tag.

Can anyone point me out where I can find the maven2 faq plugin 
sourcecode. I already had a look at the maven1 sources but that
one does not seems to have the problem. It also seems like the
maven1 code is not used (see [PS1] for more info). 

Please help me out, otherwise I have to repair the glitch in my
custom site.css. But that ofcourse is not the right place.

Kind regards,

Minto van der Sluis

PS1: Why maven1 code is not used.

Have a look at the 
http://svn.apache.org/viewvc/maven/maven-1/plugins/trunk/faq/src/plugin-resources/faq.jsl?revision=425162&view=markup
faq.jsl  in maven1. It has the following part for 
rendering the troubled section. It show not only the <p> tag
for every fml <part> tag, but an additional <strong> tag as well.
Also the <ol> tag does not show the type="1" I got in my 
rendered faq.
          ...
          <x:forEach select="part">
            <p>
              <strong><x:expr select="title"/></strong>
            </p>
            <ol>
          ...

-- 
View this message in context: 
http://www.nabble.com/Error-is-FAQ-generation.-tf2490860.html#a6944281
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to