You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by drekka <de...@aegeon.com.au> on 2007/01/09 13:36:17 UTC

Re: xdoc paragraphs

Ahhh, I've just encountered this as well. I tried all sorts of things and
could not get <p></p> tags included. It seems it included all <p> tags up
until the first occurance of something else. After that, nothing. For
example I had

<p>a</p>
<p>a</p>
<ol>....</ol>
<p>a</p>

The first two paragraphs got in, the last did not and any p tags in
subsequent sections or subsections also failed to appear. I've switched to
using APT format at the moment, but I'd rather use xdoc.

ciao
Derek


Marcelo Riss wrote:
> 
> Hi!
> 
> I have checked in the archives, but didn't found anything related to this
> problem. Since I updated maven to 2.0.4 the site html files are not
> generated correctly. I put some <p></p> in xdoc source, but in some cases
> the resulting html is without the <p></p>. It happens in some places for
> some documents. The result is html is wrongly shown in the browser. Any
> ideas ?
> 
> Thanks in advance.
> 
> *Marcelo Aita Riss*
> 
> 

-- 
View this message in context: http://www.nabble.com/xdoc-paragraphs-tf1650159s177.html#a8236846
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xdoc paragraphs

Posted by drekka <de...@aegeon.com.au>.
okay, 

Running "mvn clean site" produced the same result. "mvn -v" produced "Maven
version: 2.0.4". The eclipse plugin can be sourced from
https://svn.codehaus.org/m2eclipse, it's rather buggy and most of the
settings it it are not passed to maven. But the jar management side of it
works well.

ciao
Derek


dennisl-2 wrote:
> 
> Hi Derek
> 
> Yea, kinda. So you're running Maven 2 embedded inside Eclipse? Where can 
> I find this plugin?
> 
> The thing is that when I run Maven 2.0.4 with maven-site-plugin 
> 2.0-beta-5 I get the <p> tags that you are missing. Do you think that 
> you could try building the site from the command line using maven 2.0.4?
> 
> -- 
> Dennis Lundberg
> 
> drekka wrote:
>> Hi Dennis,
>> 
>> I'm using the Eclipse 0.9.9 plugin I compiled a week ago from svn. I
>> don't
>> have a ~.m2/plugin-registry.xml file. The version of the plugin sitting
>> in
>> my ~.m2/repository/org/apache/plugins/maven-site-plugin is 2.0-beta-5.
>> 
>> Does that help ?
>> 
>> ciao
>> Derek
>> 
>> 
>> dennisl-2 wrote:
>>> drekka wrote:
>>>> Hi Dennis, See below for results: 
>>> Hi Derek, thanks for your feedback.
>>>
>>> What version of Maven and maven-site-plugin are you using?
>>>
>>> For the plugin version you can check this in the plugin-registry.xml 
>>> file in your %USER_HOME%/.m2 directory.
>>>
>>> -- 
>>> Dennis Lundberg
>>>
>>>> dennisl-2 wrote:
>>>>> Hi
>>>>>
>>>>> This is working for me using both 2.0-beta-5 and 2.0-SNAPSHOT build
>>>>> from 
>>>>> SVN. Here's the xdoc file I used to test it. Can you test with this
>>>>> file 
>>>>> and see if it is working properly for you. If it does please provide a 
>>>>> file that don't work.
>>>>>
>>>>> <?xml version="1.0"?>
>>>>> <document>
>>>>>    <body>
>>>>>      <section name="section 1">
>>>>>        <subsection name="subsection 1">
>>>>>         <p>paragraph 1 in subsection 1</p>
>>>>>         <ul>
>>>>>           <li>list item 1</li>
>>>>>           <li>list item 2</li>
>>>>>         </ul>
>>>>>         <p>paragraph 2 in subsection 1</p>
>>>>>        </subsection>
>>>>>        <subsection name="subsection 2">
>>>>>          <p>paragraph 1 in subsection 2</p>
>>>>>        </subsection>
>>>>>      </section>
>>>>>    </body>
>>>>> </document>
>>>>>
>>>> Here's the code generated from your test code:
>>>>
>>>> <div class="section"><h2>section 1</h2>
>>>>          <div class="section"><h3>subsection 1</h3>
>>>>         <p>paragraph 1 in subsection 1</p>
>>>>         <ul>
>>>>           <li>list item 1</li>
>>>>           <li>list item 2</li>
>>>>         </ul>
>>>>         paragraph 2 in subsection 1
>>>>        </div>
>>>>          <div class="section"><h3>subsection 2</h3>
>>>>          paragraph 1 in subsection 2
>>>>        </div>
>>>>      </div>
>>>>
>>>> Notice that the only <p> tags to survive are the ones before the list.
>>>> I
>>>> then expanded your test code to include more paragraphs:
>>>>
>>>> <?xml version="1.0"?>
>>>> <document>
>>>>    <body>
>>>>      <section name="section 1">
>>>>         <p>paragraph 1 in section 1</p>
>>>>         <p>paragraph 2 in section 1</p>
>>>>        <subsection name="subsection 1">
>>>>         <p>paragraph 1 in subsection 1</p>
>>>>         <p>paragraph 2 in subsection 1</p>
>>>>         <p>paragraph 3 in subsection 1</p>
>>>>         <p>paragraph 4 in subsection 1</p>
>>>>         <ul>
>>>>           <li>list item 1</li>
>>>>           <li>list item 2</li>
>>>>         </ul>
>>>>         <p>paragraph 5 in subsection 1</p>
>>>>        </subsection>
>>>>        <subsection name="subsection 2">
>>>>          <p>paragraph 1 in subsection 2</p>
>>>>        </subsection>
>>>>      </section>
>>>>    </body>
>>>> </document>
>>>>
>>>> And the results:
>>>>
>>>>        <div class="section"><h2>section 1</h2>
>>>>         <p>paragraph 1 in section 1</p>
>>>>         <p>paragraph 2 in section 1</p>
>>>>          <div class="section"><h3>subsection 1</h3>
>>>>         <p>paragraph 1 in subsection 1</p>
>>>>         <p>paragraph 2 in subsection 1</p>
>>>>         <p>paragraph 3 in subsection 1</p>
>>>>         <p>paragraph 4 in subsection 1</p>
>>>>         <ul>
>>>>           <li>list item 1</li>
>>>>           <li>list item 2</li>
>>>>         </ul>
>>>>         paragraph 5 in subsection 1
>>>>        </div>
>>>>          <div class="section"><h3>subsection 2</h3>
>>>>          paragraph 1 in subsection 2
>>>>        </div>
>>>>      </div>
>>>>
>>>> Again no <p> tags after the list. Now lets take the list out:
>>>>
>>>> <?xml version="1.0"?>
>>>> <document>
>>>>    <body>
>>>>      <section name="section 1">
>>>>         <p>paragraph 1 in section 1</p>
>>>>         <p>paragraph 2 in section 1</p>
>>>>        <subsection name="subsection 1">
>>>>         <p>paragraph 1 in subsection 1</p>
>>>>         <p>paragraph 2 in subsection 1</p>
>>>>         <p>paragraph 3 in subsection 1</p>
>>>>         <p>paragraph 4 in subsection 1</p>
>>>>         <p>paragraph 5 in subsection 1</p>
>>>>        </subsection>
>>>>        <subsection name="subsection 2">
>>>>          <p>paragraph 1 in subsection 2</p>
>>>>        </subsection>
>>>>      </section>
>>>>    </body>
>>>> </document>
>>>>
>>>> And the results:
>>>>
>>>>        <div class="section"><h2>section 1</h2>
>>>>         <p>paragraph 1 in section 1</p>
>>>>         <p>paragraph 2 in section 1</p>
>>>>          <div class="section"><h3>subsection 1</h3>
>>>>         <p>paragraph 1 in subsection 1</p>
>>>>         <p>paragraph 2 in subsection 1</p>
>>>>         <p>paragraph 3 in subsection 1</p>
>>>>         <p>paragraph 4 in subsection 1</p>
>>>>         <p>paragraph 5 in subsection 1</p>
>>>>        </div>
>>>>          <div class="section"><h3>subsection 2</h3>
>>>>          <p>paragraph 1 in subsection 2</p>
>>>>        </div>
>>>>      </div>
>>>>
>>>> <p> tags are now back in. My guess is that the code the processes lists
>>>> is
>>>> activating a flag to remove <p> tags so it can format the list
>>>> correctly.
>>>> But is failing to deactivate the flag after processing the list.
>>>> Thereby
>>>> removing all <p> tags after the list.
>>>>
>>>> ciao
>>>> Derek
>>>>
>>>>
>>>>
>>>>  
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/xdoc-paragraphs-tf1650159s177.html#a8249565
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xdoc paragraphs

Posted by Dennis Lundberg <de...@apache.org>.
Hi Derek

Yea, kinda. So you're running Maven 2 embedded inside Eclipse? Where can 
I find this plugin?

The thing is that when I run Maven 2.0.4 with maven-site-plugin 
2.0-beta-5 I get the <p> tags that you are missing. Do you think that 
you could try building the site from the command line using maven 2.0.4?

-- 
Dennis Lundberg

drekka wrote:
> Hi Dennis,
> 
> I'm using the Eclipse 0.9.9 plugin I compiled a week ago from svn. I don't
> have a ~.m2/plugin-registry.xml file. The version of the plugin sitting in
> my ~.m2/repository/org/apache/plugins/maven-site-plugin is 2.0-beta-5.
> 
> Does that help ?
> 
> ciao
> Derek
> 
> 
> dennisl-2 wrote:
>> drekka wrote:
>>> Hi Dennis, See below for results: 
>> Hi Derek, thanks for your feedback.
>>
>> What version of Maven and maven-site-plugin are you using?
>>
>> For the plugin version you can check this in the plugin-registry.xml 
>> file in your %USER_HOME%/.m2 directory.
>>
>> -- 
>> Dennis Lundberg
>>
>>> dennisl-2 wrote:
>>>> Hi
>>>>
>>>> This is working for me using both 2.0-beta-5 and 2.0-SNAPSHOT build from 
>>>> SVN. Here's the xdoc file I used to test it. Can you test with this file 
>>>> and see if it is working properly for you. If it does please provide a 
>>>> file that don't work.
>>>>
>>>> <?xml version="1.0"?>
>>>> <document>
>>>>    <body>
>>>>      <section name="section 1">
>>>>        <subsection name="subsection 1">
>>>>         <p>paragraph 1 in subsection 1</p>
>>>>         <ul>
>>>>           <li>list item 1</li>
>>>>           <li>list item 2</li>
>>>>         </ul>
>>>>         <p>paragraph 2 in subsection 1</p>
>>>>        </subsection>
>>>>        <subsection name="subsection 2">
>>>>          <p>paragraph 1 in subsection 2</p>
>>>>        </subsection>
>>>>      </section>
>>>>    </body>
>>>> </document>
>>>>
>>> Here's the code generated from your test code:
>>>
>>> <div class="section"><h2>section 1</h2>
>>>          <div class="section"><h3>subsection 1</h3>
>>>         <p>paragraph 1 in subsection 1</p>
>>>         <ul>
>>>           <li>list item 1</li>
>>>           <li>list item 2</li>
>>>         </ul>
>>>         paragraph 2 in subsection 1
>>>        </div>
>>>          <div class="section"><h3>subsection 2</h3>
>>>          paragraph 1 in subsection 2
>>>        </div>
>>>      </div>
>>>
>>> Notice that the only <p> tags to survive are the ones before the list. I
>>> then expanded your test code to include more paragraphs:
>>>
>>> <?xml version="1.0"?>
>>> <document>
>>>    <body>
>>>      <section name="section 1">
>>>         <p>paragraph 1 in section 1</p>
>>>         <p>paragraph 2 in section 1</p>
>>>        <subsection name="subsection 1">
>>>         <p>paragraph 1 in subsection 1</p>
>>>         <p>paragraph 2 in subsection 1</p>
>>>         <p>paragraph 3 in subsection 1</p>
>>>         <p>paragraph 4 in subsection 1</p>
>>>         <ul>
>>>           <li>list item 1</li>
>>>           <li>list item 2</li>
>>>         </ul>
>>>         <p>paragraph 5 in subsection 1</p>
>>>        </subsection>
>>>        <subsection name="subsection 2">
>>>          <p>paragraph 1 in subsection 2</p>
>>>        </subsection>
>>>      </section>
>>>    </body>
>>> </document>
>>>
>>> And the results:
>>>
>>>        <div class="section"><h2>section 1</h2>
>>>         <p>paragraph 1 in section 1</p>
>>>         <p>paragraph 2 in section 1</p>
>>>          <div class="section"><h3>subsection 1</h3>
>>>         <p>paragraph 1 in subsection 1</p>
>>>         <p>paragraph 2 in subsection 1</p>
>>>         <p>paragraph 3 in subsection 1</p>
>>>         <p>paragraph 4 in subsection 1</p>
>>>         <ul>
>>>           <li>list item 1</li>
>>>           <li>list item 2</li>
>>>         </ul>
>>>         paragraph 5 in subsection 1
>>>        </div>
>>>          <div class="section"><h3>subsection 2</h3>
>>>          paragraph 1 in subsection 2
>>>        </div>
>>>      </div>
>>>
>>> Again no <p> tags after the list. Now lets take the list out:
>>>
>>> <?xml version="1.0"?>
>>> <document>
>>>    <body>
>>>      <section name="section 1">
>>>         <p>paragraph 1 in section 1</p>
>>>         <p>paragraph 2 in section 1</p>
>>>        <subsection name="subsection 1">
>>>         <p>paragraph 1 in subsection 1</p>
>>>         <p>paragraph 2 in subsection 1</p>
>>>         <p>paragraph 3 in subsection 1</p>
>>>         <p>paragraph 4 in subsection 1</p>
>>>         <p>paragraph 5 in subsection 1</p>
>>>        </subsection>
>>>        <subsection name="subsection 2">
>>>          <p>paragraph 1 in subsection 2</p>
>>>        </subsection>
>>>      </section>
>>>    </body>
>>> </document>
>>>
>>> And the results:
>>>
>>>        <div class="section"><h2>section 1</h2>
>>>         <p>paragraph 1 in section 1</p>
>>>         <p>paragraph 2 in section 1</p>
>>>          <div class="section"><h3>subsection 1</h3>
>>>         <p>paragraph 1 in subsection 1</p>
>>>         <p>paragraph 2 in subsection 1</p>
>>>         <p>paragraph 3 in subsection 1</p>
>>>         <p>paragraph 4 in subsection 1</p>
>>>         <p>paragraph 5 in subsection 1</p>
>>>        </div>
>>>          <div class="section"><h3>subsection 2</h3>
>>>          <p>paragraph 1 in subsection 2</p>
>>>        </div>
>>>      </div>
>>>
>>> <p> tags are now back in. My guess is that the code the processes lists
>>> is
>>> activating a flag to remove <p> tags so it can format the list correctly.
>>> But is failing to deactivate the flag after processing the list. Thereby
>>> removing all <p> tags after the list.
>>>
>>> ciao
>>> Derek
>>>
>>>
>>>
>>>  
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xdoc paragraphs

Posted by drekka <de...@aegeon.com.au>.
Hi Dennis,

I'm using the Eclipse 0.9.9 plugin I compiled a week ago from svn. I don't
have a ~.m2/plugin-registry.xml file. The version of the plugin sitting in
my ~.m2/repository/org/apache/plugins/maven-site-plugin is 2.0-beta-5.

Does that help ?

ciao
Derek


dennisl-2 wrote:
> 
> drekka wrote:
>> Hi Dennis, See below for results: 
> 
> Hi Derek, thanks for your feedback.
> 
> What version of Maven and maven-site-plugin are you using?
> 
> For the plugin version you can check this in the plugin-registry.xml 
> file in your %USER_HOME%/.m2 directory.
> 
> -- 
> Dennis Lundberg
> 
>> 
>> dennisl-2 wrote:
>>> Hi
>>>
>>> This is working for me using both 2.0-beta-5 and 2.0-SNAPSHOT build from 
>>> SVN. Here's the xdoc file I used to test it. Can you test with this file 
>>> and see if it is working properly for you. If it does please provide a 
>>> file that don't work.
>>>
>>> <?xml version="1.0"?>
>>> <document>
>>>    <body>
>>>      <section name="section 1">
>>>        <subsection name="subsection 1">
>>>         <p>paragraph 1 in subsection 1</p>
>>>         <ul>
>>>           <li>list item 1</li>
>>>           <li>list item 2</li>
>>>         </ul>
>>>         <p>paragraph 2 in subsection 1</p>
>>>        </subsection>
>>>        <subsection name="subsection 2">
>>>          <p>paragraph 1 in subsection 2</p>
>>>        </subsection>
>>>      </section>
>>>    </body>
>>> </document>
>>>
>> 
>> Here's the code generated from your test code:
>> 
>> <div class="section"><h2>section 1</h2>
>>          <div class="section"><h3>subsection 1</h3>
>>         <p>paragraph 1 in subsection 1</p>
>>         <ul>
>>           <li>list item 1</li>
>>           <li>list item 2</li>
>>         </ul>
>>         paragraph 2 in subsection 1
>>        </div>
>>          <div class="section"><h3>subsection 2</h3>
>>          paragraph 1 in subsection 2
>>        </div>
>>      </div>
>> 
>> Notice that the only <p> tags to survive are the ones before the list. I
>> then expanded your test code to include more paragraphs:
>> 
>> <?xml version="1.0"?>
>> <document>
>>    <body>
>>      <section name="section 1">
>>         <p>paragraph 1 in section 1</p>
>>         <p>paragraph 2 in section 1</p>
>>        <subsection name="subsection 1">
>>         <p>paragraph 1 in subsection 1</p>
>>         <p>paragraph 2 in subsection 1</p>
>>         <p>paragraph 3 in subsection 1</p>
>>         <p>paragraph 4 in subsection 1</p>
>>         <ul>
>>           <li>list item 1</li>
>>           <li>list item 2</li>
>>         </ul>
>>         <p>paragraph 5 in subsection 1</p>
>>        </subsection>
>>        <subsection name="subsection 2">
>>          <p>paragraph 1 in subsection 2</p>
>>        </subsection>
>>      </section>
>>    </body>
>> </document>
>> 
>> And the results:
>> 
>>        <div class="section"><h2>section 1</h2>
>>         <p>paragraph 1 in section 1</p>
>>         <p>paragraph 2 in section 1</p>
>>          <div class="section"><h3>subsection 1</h3>
>>         <p>paragraph 1 in subsection 1</p>
>>         <p>paragraph 2 in subsection 1</p>
>>         <p>paragraph 3 in subsection 1</p>
>>         <p>paragraph 4 in subsection 1</p>
>>         <ul>
>>           <li>list item 1</li>
>>           <li>list item 2</li>
>>         </ul>
>>         paragraph 5 in subsection 1
>>        </div>
>>          <div class="section"><h3>subsection 2</h3>
>>          paragraph 1 in subsection 2
>>        </div>
>>      </div>
>> 
>> Again no <p> tags after the list. Now lets take the list out:
>> 
>> <?xml version="1.0"?>
>> <document>
>>    <body>
>>      <section name="section 1">
>>         <p>paragraph 1 in section 1</p>
>>         <p>paragraph 2 in section 1</p>
>>        <subsection name="subsection 1">
>>         <p>paragraph 1 in subsection 1</p>
>>         <p>paragraph 2 in subsection 1</p>
>>         <p>paragraph 3 in subsection 1</p>
>>         <p>paragraph 4 in subsection 1</p>
>>         <p>paragraph 5 in subsection 1</p>
>>        </subsection>
>>        <subsection name="subsection 2">
>>          <p>paragraph 1 in subsection 2</p>
>>        </subsection>
>>      </section>
>>    </body>
>> </document>
>> 
>> And the results:
>> 
>>        <div class="section"><h2>section 1</h2>
>>         <p>paragraph 1 in section 1</p>
>>         <p>paragraph 2 in section 1</p>
>>          <div class="section"><h3>subsection 1</h3>
>>         <p>paragraph 1 in subsection 1</p>
>>         <p>paragraph 2 in subsection 1</p>
>>         <p>paragraph 3 in subsection 1</p>
>>         <p>paragraph 4 in subsection 1</p>
>>         <p>paragraph 5 in subsection 1</p>
>>        </div>
>>          <div class="section"><h3>subsection 2</h3>
>>          <p>paragraph 1 in subsection 2</p>
>>        </div>
>>      </div>
>> 
>> <p> tags are now back in. My guess is that the code the processes lists
>> is
>> activating a flag to remove <p> tags so it can format the list correctly.
>> But is failing to deactivate the flag after processing the list. Thereby
>> removing all <p> tags after the list.
>> 
>> ciao
>> Derek
>> 
>> 
>> 
>>  
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/xdoc-paragraphs-tf1650159s177.html#a8249024
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xdoc paragraphs

Posted by Dennis Lundberg <de...@apache.org>.
drekka wrote:
> Hi Dennis, See below for results: 

Hi Derek, thanks for your feedback.

What version of Maven and maven-site-plugin are you using?

For the plugin version you can check this in the plugin-registry.xml 
file in your %USER_HOME%/.m2 directory.

-- 
Dennis Lundberg

> 
> dennisl-2 wrote:
>> Hi
>>
>> This is working for me using both 2.0-beta-5 and 2.0-SNAPSHOT build from 
>> SVN. Here's the xdoc file I used to test it. Can you test with this file 
>> and see if it is working properly for you. If it does please provide a 
>> file that don't work.
>>
>> <?xml version="1.0"?>
>> <document>
>>    <body>
>>      <section name="section 1">
>>        <subsection name="subsection 1">
>>         <p>paragraph 1 in subsection 1</p>
>>         <ul>
>>           <li>list item 1</li>
>>           <li>list item 2</li>
>>         </ul>
>>         <p>paragraph 2 in subsection 1</p>
>>        </subsection>
>>        <subsection name="subsection 2">
>>          <p>paragraph 1 in subsection 2</p>
>>        </subsection>
>>      </section>
>>    </body>
>> </document>
>>
> 
> Here's the code generated from your test code:
> 
> <div class="section"><h2>section 1</h2>
>          <div class="section"><h3>subsection 1</h3>
>         <p>paragraph 1 in subsection 1</p>
>         <ul>
>           <li>list item 1</li>
>           <li>list item 2</li>
>         </ul>
>         paragraph 2 in subsection 1
>        </div>
>          <div class="section"><h3>subsection 2</h3>
>          paragraph 1 in subsection 2
>        </div>
>      </div>
> 
> Notice that the only <p> tags to survive are the ones before the list. I
> then expanded your test code to include more paragraphs:
> 
> <?xml version="1.0"?>
> <document>
>    <body>
>      <section name="section 1">
>         <p>paragraph 1 in section 1</p>
>         <p>paragraph 2 in section 1</p>
>        <subsection name="subsection 1">
>         <p>paragraph 1 in subsection 1</p>
>         <p>paragraph 2 in subsection 1</p>
>         <p>paragraph 3 in subsection 1</p>
>         <p>paragraph 4 in subsection 1</p>
>         <ul>
>           <li>list item 1</li>
>           <li>list item 2</li>
>         </ul>
>         <p>paragraph 5 in subsection 1</p>
>        </subsection>
>        <subsection name="subsection 2">
>          <p>paragraph 1 in subsection 2</p>
>        </subsection>
>      </section>
>    </body>
> </document>
> 
> And the results:
> 
>        <div class="section"><h2>section 1</h2>
>         <p>paragraph 1 in section 1</p>
>         <p>paragraph 2 in section 1</p>
>          <div class="section"><h3>subsection 1</h3>
>         <p>paragraph 1 in subsection 1</p>
>         <p>paragraph 2 in subsection 1</p>
>         <p>paragraph 3 in subsection 1</p>
>         <p>paragraph 4 in subsection 1</p>
>         <ul>
>           <li>list item 1</li>
>           <li>list item 2</li>
>         </ul>
>         paragraph 5 in subsection 1
>        </div>
>          <div class="section"><h3>subsection 2</h3>
>          paragraph 1 in subsection 2
>        </div>
>      </div>
> 
> Again no <p> tags after the list. Now lets take the list out:
> 
> <?xml version="1.0"?>
> <document>
>    <body>
>      <section name="section 1">
>         <p>paragraph 1 in section 1</p>
>         <p>paragraph 2 in section 1</p>
>        <subsection name="subsection 1">
>         <p>paragraph 1 in subsection 1</p>
>         <p>paragraph 2 in subsection 1</p>
>         <p>paragraph 3 in subsection 1</p>
>         <p>paragraph 4 in subsection 1</p>
>         <p>paragraph 5 in subsection 1</p>
>        </subsection>
>        <subsection name="subsection 2">
>          <p>paragraph 1 in subsection 2</p>
>        </subsection>
>      </section>
>    </body>
> </document>
> 
> And the results:
> 
>        <div class="section"><h2>section 1</h2>
>         <p>paragraph 1 in section 1</p>
>         <p>paragraph 2 in section 1</p>
>          <div class="section"><h3>subsection 1</h3>
>         <p>paragraph 1 in subsection 1</p>
>         <p>paragraph 2 in subsection 1</p>
>         <p>paragraph 3 in subsection 1</p>
>         <p>paragraph 4 in subsection 1</p>
>         <p>paragraph 5 in subsection 1</p>
>        </div>
>          <div class="section"><h3>subsection 2</h3>
>          <p>paragraph 1 in subsection 2</p>
>        </div>
>      </div>
> 
> <p> tags are now back in. My guess is that the code the processes lists is
> activating a flag to remove <p> tags so it can format the list correctly.
> But is failing to deactivate the flag after processing the list. Thereby
> removing all <p> tags after the list.
> 
> ciao
> Derek
> 
> 
> 
>  
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xdoc paragraphs

Posted by drekka <de...@aegeon.com.au>.
Hi Dennis, See below for results: 


dennisl-2 wrote:
> 
> Hi
> 
> This is working for me using both 2.0-beta-5 and 2.0-SNAPSHOT build from 
> SVN. Here's the xdoc file I used to test it. Can you test with this file 
> and see if it is working properly for you. If it does please provide a 
> file that don't work.
> 
> <?xml version="1.0"?>
> <document>
>    <body>
>      <section name="section 1">
>        <subsection name="subsection 1">
>         <p>paragraph 1 in subsection 1</p>
>         <ul>
>           <li>list item 1</li>
>           <li>list item 2</li>
>         </ul>
>         <p>paragraph 2 in subsection 1</p>
>        </subsection>
>        <subsection name="subsection 2">
>          <p>paragraph 1 in subsection 2</p>
>        </subsection>
>      </section>
>    </body>
> </document>
> 

Here's the code generated from your test code:

<div class="section"><h2>section 1</h2>
         <div class="section"><h3>subsection 1</h3>
        <p>paragraph 1 in subsection 1</p>
        <ul>
          <li>list item 1</li>
          <li>list item 2</li>
        </ul>
        paragraph 2 in subsection 1
       </div>
         <div class="section"><h3>subsection 2</h3>
         paragraph 1 in subsection 2
       </div>
     </div>

Notice that the only <p> tags to survive are the ones before the list. I
then expanded your test code to include more paragraphs:

<?xml version="1.0"?>
<document>
   <body>
     <section name="section 1">
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
       <subsection name="subsection 1">
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <ul>
          <li>list item 1</li>
          <li>list item 2</li>
        </ul>
        <p>paragraph 5 in subsection 1</p>
       </subsection>
       <subsection name="subsection 2">
         <p>paragraph 1 in subsection 2</p>
       </subsection>
     </section>
   </body>
</document>

And the results:

       <div class="section"><h2>section 1</h2>
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
         <div class="section"><h3>subsection 1</h3>
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <ul>
          <li>list item 1</li>
          <li>list item 2</li>
        </ul>
        paragraph 5 in subsection 1
       </div>
         <div class="section"><h3>subsection 2</h3>
         paragraph 1 in subsection 2
       </div>
     </div>

Again no <p> tags after the list. Now lets take the list out:

<?xml version="1.0"?>
<document>
   <body>
     <section name="section 1">
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
       <subsection name="subsection 1">
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <p>paragraph 5 in subsection 1</p>
       </subsection>
       <subsection name="subsection 2">
         <p>paragraph 1 in subsection 2</p>
       </subsection>
     </section>
   </body>
</document>

And the results:

       <div class="section"><h2>section 1</h2>
        <p>paragraph 1 in section 1</p>
        <p>paragraph 2 in section 1</p>
         <div class="section"><h3>subsection 1</h3>
        <p>paragraph 1 in subsection 1</p>
        <p>paragraph 2 in subsection 1</p>
        <p>paragraph 3 in subsection 1</p>
        <p>paragraph 4 in subsection 1</p>
        <p>paragraph 5 in subsection 1</p>
       </div>
         <div class="section"><h3>subsection 2</h3>
         <p>paragraph 1 in subsection 2</p>
       </div>
     </div>

<p> tags are now back in. My guess is that the code the processes lists is
activating a flag to remove <p> tags so it can format the list correctly.
But is failing to deactivate the flag after processing the list. Thereby
removing all <p> tags after the list.

ciao
Derek



 

-- 
View this message in context: http://www.nabble.com/xdoc-paragraphs-tf1650159s177.html#a8248691
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xdoc paragraphs

Posted by Dennis Lundberg <de...@apache.org>.
Hi

This is working for me using both 2.0-beta-5 and 2.0-SNAPSHOT build from 
SVN. Here's the xdoc file I used to test it. Can you test with this file 
and see if it is working properly for you. If it does please provide a 
file that don't work.

<?xml version="1.0"?>
<document>
   <body>
     <section name="section 1">
       <subsection name="subsection 1">
        <p>paragraph 1 in subsection 1</p>
        <ul>
          <li>list item 1</li>
          <li>list item 2</li>
        </ul>
        <p>paragraph 2 in subsection 1</p>
       </subsection>
       <subsection name="subsection 2">
         <p>paragraph 1 in subsection 2</p>
       </subsection>
     </section>
   </body>
</document>



-- 
Dennis Lundberg

nicolas de loof wrote:
> I have the same issue with a :
> 
> <subsection>
>  <p>...</p>
>  <ul>...</ul>
>  <p>...</p>
> </subsection>
> <subsection>
>   <p>...</p>
> ...
> 
> Second section is rendered in HTML with no <p> tag.
> 
> I added two empty <p></p> in my subsection and it (seems to) fix the issue.
> 
> Nico.
> 
> 2007/1/9, drekka <de...@aegeon.com.au>:
>>
>>
>> Ahhh, I've just encountered this as well. I tried all sorts of things and
>> could not get <p></p> tags included. It seems it included all <p> tags up
>> until the first occurance of something else. After that, nothing. For
>> example I had
>>
>> <p>a</p>
>> <p>a</p>
>> <ol>....</ol>
>> <p>a</p>
>>
>> The first two paragraphs got in, the last did not and any p tags in
>> subsequent sections or subsections also failed to appear. I've 
>> switched to
>> using APT format at the moment, but I'd rather use xdoc.
>>
>> ciao
>> Derek
>>
>>
>> Marcelo Riss wrote:
>> >
>> > Hi!
>> >
>> > I have checked in the archives, but didn't found anything related to
>> this
>> > problem. Since I updated maven to 2.0.4 the site html files are not
>> > generated correctly. I put some <p></p> in xdoc source, but in some
>> cases
>> > the resulting html is without the <p></p>. It happens in some places 
>> for
>> > some documents. The result is html is wrongly shown in the browser. Any
>> > ideas ?
>> >
>> > Thanks in advance.
>> >
>> > *Marcelo Aita Riss*
>> >
>> >
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/xdoc-paragraphs-tf1650159s177.html#a8236846
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: xdoc paragraphs

Posted by nicolas de loof <ni...@gmail.com>.
I have the same issue with a :

<subsection>
  <p>...</p>
  <ul>...</ul>
  <p>...</p>
</subsection>
<subsection>
   <p>...</p>
...

Second section is rendered in HTML with no <p> tag.

I added two empty <p></p> in my subsection and it (seems to) fix the issue.

Nico.

2007/1/9, drekka <de...@aegeon.com.au>:
>
>
> Ahhh, I've just encountered this as well. I tried all sorts of things and
> could not get <p></p> tags included. It seems it included all <p> tags up
> until the first occurance of something else. After that, nothing. For
> example I had
>
> <p>a</p>
> <p>a</p>
> <ol>....</ol>
> <p>a</p>
>
> The first two paragraphs got in, the last did not and any p tags in
> subsequent sections or subsections also failed to appear. I've switched to
> using APT format at the moment, but I'd rather use xdoc.
>
> ciao
> Derek
>
>
> Marcelo Riss wrote:
> >
> > Hi!
> >
> > I have checked in the archives, but didn't found anything related to
> this
> > problem. Since I updated maven to 2.0.4 the site html files are not
> > generated correctly. I put some <p></p> in xdoc source, but in some
> cases
> > the resulting html is without the <p></p>. It happens in some places for
> > some documents. The result is html is wrongly shown in the browser. Any
> > ideas ?
> >
> > Thanks in advance.
> >
> > *Marcelo Aita Riss*
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/xdoc-paragraphs-tf1650159s177.html#a8236846
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>