You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2006/02/14 17:36:29 UTC
bug in html2xdoc
It seems ther's a bug in maven1.x html2xdoc plugin :
On my debian nightly build system, accentuated (french) characters are
losts in resulting HTML (replaced by "?")
Source HTML uses html entities, like é for "é"
>From my experiments, html2xdoc produces a XML file that uses invalid
encoding for accentuated characters. Doing a "cat" on the generated XML
show me invalid ascii for those chars. I've tried to change the LANG to
fr_FR.ISO-8859-1 with no effect.
I expected generated Xdoc to use entities, as described in maven xdoc DTD
Is this a known issue ?
Nico.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Lukas Theussl <lt...@apache.org>.
I forgot to mention: if you want to read something about upgrading
dom4j, here are a few links to begin with:
http://jira.codehaus.org/browse/MAVEN-1345
http://jira.codehaus.org/browse/JAXEN-67
http://issues.apache.org/jira/browse/JELLY-226
Have fun!
-Lukas
Nicolas De Loof wrote:
>
> I've set maven.docs.outputencoding = ISO-8859-1
> I've tried to set LANG to fr_FR.ISO-8859-1 or fr_FR.UTF-8 without any
> result.
>
> http://jira.codehaus.org/browse/MPXDOC-184 seems to be similar, but the
> xml and html generated by xdoc plugin from POM are fine in my site.
>
> I attach the generated index.xml. I don't know the encoding that it uses
> and that produces this issue.
> When I open it using "vi" it is well displayed with a "[converted]" ont
> bottom line.
> When I use "cat" to dump the file I can't read the expected accents
> (replaced with a square on console).
> Other POM generated xdoc can be well displayed on my console.
>
> I've noticed html2xdoc produces a org.jdom.Document from original HTML.
> I don't understand how non ascii characters or HTML entities are copied
> to this new XML, that has default encoding (UTF-8 ?).
> As maven 1.1b2 uses dom4j-1.4 it cannot use the new setXMLEncoding
> method introduced in dom4j-1.6. Is there any plan to upgrade this
> dependency ?
>
> I've also noticed xdoc plugin source that it's DTD is expected to
> include html entities. Generated xdocs don't have reference to any DTD
> or schema and so cannot include HTML entities. Is this only expected for
> xdoc plugin 1.10 ? If this is the case, will html2xdoc be upgraded to
> convert non ascii chars to html entities ?
>
> Thanks for any help.
>
> Nico.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Lukas Theussl <lt...@apache.org>.
merci, mais c'est pas moi qui l'ai ecrit... ;)
Stephane Nicoll wrote:
> Un p à aperçu ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Stephane Nicoll <st...@gmail.com>.
Un p à aperçu ;)
On 2/15/06, Lukas Theussl <lt...@apache.org> wrote:
> Nicolas,
>
> Here is the page that I generated from your index.xml:
>
> http://people.apache.org/~ltheussl/maven-stage-site/maven-1.x/reference/plugins/examples/
>
> It looks ok to me, or am I missing something?
>
> -Lukas
>
>
> Nicolas De Loof wrote:
> >
> > I've set maven.docs.outputencoding = ISO-8859-1
> > I've tried to set LANG to fr_FR.ISO-8859-1 or fr_FR.UTF-8 without any
> > result.
> >
> > http://jira.codehaus.org/browse/MPXDOC-184 seems to be similar, but the
> > xml and html generated by xdoc plugin from POM are fine in my site.
> >
> > I attach the generated index.xml. I don't know the encoding that it uses
> > and that produces this issue.
> > When I open it using "vi" it is well displayed with a "[converted]" ont
> > bottom line.
> > When I use "cat" to dump the file I can't read the expected accents
> > (replaced with a square on console).
> > Other POM generated xdoc can be well displayed on my console.
> >
> > I've noticed html2xdoc produces a org.jdom.Document from original HTML.
> > I don't understand how non ascii characters or HTML entities are copied
> > to this new XML, that has default encoding (UTF-8 ?).
> > As maven 1.1b2 uses dom4j-1.4 it cannot use the new setXMLEncoding
> > method introduced in dom4j-1.6. Is there any plan to upgrade this
> > dependency ?
> >
> > I've also noticed xdoc plugin source that it's DTD is expected to
> > include html entities. Generated xdocs don't have reference to any DTD
> > or schema and so cannot include HTML entities. Is this only expected for
> > xdoc plugin 1.10 ? If this is the case, will html2xdoc be upgraded to
> > convert non ascii chars to html entities ?
> >
> > Thanks for any help.
> >
> > Nico.
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
--
.::You're welcome ::.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Arnaud HERITIER <ah...@gmail.com>.
Can't it be a problem of encoding (UTF-8 I suppose) in the xml file ?
Arnaud
PS: Arrêtez de parler Français sur la ML ;-)
On 2/15/06, Lukas Theussl <lt...@apache.org> wrote:
> Right, but those are already missing in the index.xml file. So I would
> need the original html file for generating the xml to see why they are
> missing...
>
> -Lukas
>
>
> Stephane Nicoll wrote:
> > On 2/15/06, Lukas Theussl <lt...@apache.org> wrote:
> >
> >>Nicolas,
> >>
> >>Here is the page that I generated from your index.xml:
> >>
> >>http://people.apache.org/~ltheussl/maven-stage-site/maven-1.x/reference/plugins/examples/
> >>
> >>It looks ok to me, or am I missing something?
> >
> >
> > There's still missing characters at the bottom of the page.
> >
> > Stéphane
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Lukas Theussl <lt...@apache.org>.
Right, but those are already missing in the index.xml file. So I would
need the original html file for generating the xml to see why they are
missing...
-Lukas
Stephane Nicoll wrote:
> On 2/15/06, Lukas Theussl <lt...@apache.org> wrote:
>
>>Nicolas,
>>
>>Here is the page that I generated from your index.xml:
>>
>>http://people.apache.org/~ltheussl/maven-stage-site/maven-1.x/reference/plugins/examples/
>>
>>It looks ok to me, or am I missing something?
>
>
> There's still missing characters at the bottom of the page.
>
> Stéphane
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Stephane Nicoll <st...@gmail.com>.
On 2/15/06, Lukas Theussl <lt...@apache.org> wrote:
> Nicolas,
>
> Here is the page that I generated from your index.xml:
>
> http://people.apache.org/~ltheussl/maven-stage-site/maven-1.x/reference/plugins/examples/
>
> It looks ok to me, or am I missing something?
There's still missing characters at the bottom of the page.
Stéphane
>
> -Lukas
>
>
> Nicolas De Loof wrote:
> >
> > I've set maven.docs.outputencoding = ISO-8859-1
> > I've tried to set LANG to fr_FR.ISO-8859-1 or fr_FR.UTF-8 without any
> > result.
> >
> > http://jira.codehaus.org/browse/MPXDOC-184 seems to be similar, but the
> > xml and html generated by xdoc plugin from POM are fine in my site.
> >
> > I attach the generated index.xml. I don't know the encoding that it uses
> > and that produces this issue.
> > When I open it using "vi" it is well displayed with a "[converted]" ont
> > bottom line.
> > When I use "cat" to dump the file I can't read the expected accents
> > (replaced with a square on console).
> > Other POM generated xdoc can be well displayed on my console.
> >
> > I've noticed html2xdoc produces a org.jdom.Document from original HTML.
> > I don't understand how non ascii characters or HTML entities are copied
> > to this new XML, that has default encoding (UTF-8 ?).
> > As maven 1.1b2 uses dom4j-1.4 it cannot use the new setXMLEncoding
> > method introduced in dom4j-1.6. Is there any plan to upgrade this
> > dependency ?
> >
> > I've also noticed xdoc plugin source that it's DTD is expected to
> > include html entities. Generated xdocs don't have reference to any DTD
> > or schema and so cannot include HTML entities. Is this only expected for
> > xdoc plugin 1.10 ? If this is the case, will html2xdoc be upgraded to
> > convert non ascii chars to html entities ?
> >
> > Thanks for any help.
> >
> > Nico.
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
--
.::You're welcome ::.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Lukas Theussl <lt...@apache.org>.
Nicolas,
Here is the page that I generated from your index.xml:
http://people.apache.org/~ltheussl/maven-stage-site/maven-1.x/reference/plugins/examples/
It looks ok to me, or am I missing something?
-Lukas
Nicolas De Loof wrote:
>
> I've set maven.docs.outputencoding = ISO-8859-1
> I've tried to set LANG to fr_FR.ISO-8859-1 or fr_FR.UTF-8 without any
> result.
>
> http://jira.codehaus.org/browse/MPXDOC-184 seems to be similar, but the
> xml and html generated by xdoc plugin from POM are fine in my site.
>
> I attach the generated index.xml. I don't know the encoding that it uses
> and that produces this issue.
> When I open it using "vi" it is well displayed with a "[converted]" ont
> bottom line.
> When I use "cat" to dump the file I can't read the expected accents
> (replaced with a square on console).
> Other POM generated xdoc can be well displayed on my console.
>
> I've noticed html2xdoc produces a org.jdom.Document from original HTML.
> I don't understand how non ascii characters or HTML entities are copied
> to this new XML, that has default encoding (UTF-8 ?).
> As maven 1.1b2 uses dom4j-1.4 it cannot use the new setXMLEncoding
> method introduced in dom4j-1.6. Is there any plan to upgrade this
> dependency ?
>
> I've also noticed xdoc plugin source that it's DTD is expected to
> include html entities. Generated xdocs don't have reference to any DTD
> or schema and so cannot include HTML entities. Is this only expected for
> xdoc plugin 1.10 ? If this is the case, will html2xdoc be upgraded to
> convert non ascii chars to html entities ?
>
> Thanks for any help.
>
> Nico.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: bug in html2xdoc
Posted by Nicolas De Loof <ni...@capgemini.com>.
I've set maven.docs.outputencoding = ISO-8859-1
I've tried to set LANG to fr_FR.ISO-8859-1 or fr_FR.UTF-8 without any
result.
http://jira.codehaus.org/browse/MPXDOC-184 seems to be similar, but the
xml and html generated by xdoc plugin from POM are fine in my site.
I attach the generated index.xml. I don't know the encoding that it uses
and that produces this issue.
When I open it using "vi" it is well displayed with a "[converted]" ont
bottom line.
When I use "cat" to dump the file I can't read the expected accents
(replaced with a square on console).
Other POM generated xdoc can be well displayed on my console.
I've noticed html2xdoc produces a org.jdom.Document from original HTML.
I don't understand how non ascii characters or HTML entities are copied
to this new XML, that has default encoding (UTF-8 ?).
As maven 1.1b2 uses dom4j-1.4 it cannot use the new setXMLEncoding
method introduced in dom4j-1.6. Is there any plan to upgrade this
dependency ?
I've also noticed xdoc plugin source that it's DTD is expected to
include html entities. Generated xdocs don't have reference to any DTD
or schema and so cannot include HTML entities. Is this only expected for
xdoc plugin 1.10 ? If this is the case, will html2xdoc be upgraded to
convert non ascii chars to html entities ?
Thanks for any help.
Nico.
Lukas Theussl a écrit :
> Nicolas,
>
> Have you played around with the maven.docs.outputencoding property?
> You might also have a look here for some tips on a similar problem:
>
> http://jira.codehaus.org/browse/MPXDOC-184
>
> If you can't get it to work, please open an issue in JIRA with a small
> reproducible test case. Thanks!
>
> -Lukas
>
>
> Nicolas De Loof wrote:
>
>>
>> It seems ther's a bug in maven1.x html2xdoc plugin :
>>
>> On my debian nightly build system, accentuated (french) characters
>> are losts in resulting HTML (replaced by "?")
>>
>> Source HTML uses html entities, like é for "é"
>>
>> >From my experiments, html2xdoc produces a XML file that uses
>> invalid encoding for accentuated characters. Doing a "cat" on the
>> generated XML show me invalid ascii for those chars. I've tried to
>> change the LANG to fr_FR.ISO-8859-1 with no effect.
>>
>> I expected generated Xdoc to use entities, as described in maven xdoc
>> DTD
>>
>> Is this a known issue ?
>>
>> Nico.
>>
>>
>>
>> This message contains information that may be privileged or
>> confidential and is the property of the Capgemini Group. It is
>> intended only for the person to whom it is addressed. If you are not
>> the intended recipient, you are not authorized to read, print,
>> retain, copy, disseminate, distribute, or use this message or any
>> part thereof. If you receive this message in error, please notify
>> the sender immediately and delete all copies of this message.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: bug in html2xdoc
Posted by Lukas Theussl <lt...@apache.org>.
Nicolas,
Have you played around with the maven.docs.outputencoding property? You
might also have a look here for some tips on a similar problem:
http://jira.codehaus.org/browse/MPXDOC-184
If you can't get it to work, please open an issue in JIRA with a small
reproducible test case. Thanks!
-Lukas
Nicolas De Loof wrote:
>
> It seems ther's a bug in maven1.x html2xdoc plugin :
>
> On my debian nightly build system, accentuated (french) characters are
> losts in resulting HTML (replaced by "?")
>
> Source HTML uses html entities, like é for "é"
>
> >From my experiments, html2xdoc produces a XML file that uses invalid
> encoding for accentuated characters. Doing a "cat" on the generated XML
> show me invalid ascii for those chars. I've tried to change the LANG to
> fr_FR.ISO-8859-1 with no effect.
>
> I expected generated Xdoc to use entities, as described in maven xdoc DTD
>
> Is this a known issue ?
>
> Nico.
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,
> you are not authorized to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive
> this message in error, please notify the sender immediately and delete
> all copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org