Thanks for your help.

On Tue, Feb 07, 2006 at 10:10:22AM +0100, Peschier J. (Jeroen) wrote:
> - Make sure your DTD matches the root element name of your docbook file.
> If memory serves me, it should be 'document' for xdoc. So it should read
> <!DOCTYPE document [ 
>   <!ENTITY mytest SYSTEM "relative/path/to/MyTest.java">
> ]>

Changing the doctype to 'document' did not change anything. I even tried
to specify an absolute path to be sure I was not mistaken with my
relative one.

After some research on the web, it seems like Maven 2 may not support
entities at all...
 
> - You say your XML file is encoded ISO-8859-1. Did you also specify the
> encoding like <?xml encoding="ISO-8859-1"?> on the first line in your
> XML file? If not, the XML parser will assume UTF-8 like the XML spec
> mandates.

Yes, my file was already tagged with <?xml encoding="ISO-8859-1"?> on
the first line.

Anyway, I found out the source of the problem. The outputEncoding is
also set to ISO-8859-1, and the resulting file contains:

  content="text/html; charset=ISO-8859-1"

Anyway, accents from the page are encoded in UTF-8. I edited the page to
change its encoding to UTF-8 and the page was displaying accents
correctly in my browser. So maybe it is a bug afterall.

However, I changed the outputEncoding setting to UTF-8 in pom.xml and
the resulting page correctly displays accents so I will use this
workaround for now.


Now I definitively need entities to work (or some mechanism to include a
file into another)...

Herve

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

Reply via email to