Excellent, thanks for the confirmation! Some people still seem to be sceptical about site-plugin-2.1 and doxia-1.1, so I welcome every positive feedback. :)

cheers,
-Lukas


Bernhard Grünewaldt wrote:
Hello Lukas,

Thanks for the hint.

Now it works. For everyone else who has the same problem, here is the
solution for your pom.xml (You will need maven 2.1 installed!)

....
<pluginRepositories>
  <pluginRepository>
    <id>apache.snapshots</id>
    <url>http://repository.apache.org/snapshots</url>
    <releases>
      <enabled>false</enabled>
     </releases>
  </pluginRepository>
</pluginRepositories>
<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-site-plugin</artifactId>
      <!--  With 2.1 cellpadding for tables, and setting of -->
      <!-- class and style attributes work. -->
      <version>2.1-SNAPSHOT</version>
      <configuration>
      <!--  WITHOUT THAT, UTF-8 chars are not displayed! -->
        <outputEncoding>UTF-8</outputEncoding>
      </configuration>
    </plugin>
  </plugins>
</build>
....

thanks,

Bernhard Grünewaldt

Lukas Theussl schrieb:
site-plugin-2.0 uses doxia 1.0, your link points to the docs for
doxia-1.1. You can try site-plugin-2.1-SNAPSHOT, see if that helps,
otherwise please file an issue [1] with a reproducible test case.

Thanks,
-Lukas

[1] http://jira.codehaus.org/browse/DOXIA


Bernhard Grünewaldt wrote:
Hello,

I am using Doxia and the Xdoc format together with maven-site-plugin
2.0-beta-7.

When I add "style" or "class" attributes to an <img> or <p> tag it gets
removed on the rendered site.

Here is mentioned that it is a valid attribute:
http://maven.apache.org/doxia/doxia/doxia-modules/doxia-module-xdoc/xsddoc/http___maven.apache.org_XDOC_2.0/element/img.html#attr_style


So why does it get removed?

And the <table> <td> tags still don't know the cellpadding attribute.
Is there a way to use another version of maven-site-plugin where that
works, too?

If maven-site-plugin doesn't work, can I use a standalone version of
doxia, that does the same as maven-site-plugin? And if yes, can you tell
me how?

thx

Bernhard


Reply via email to