Hi Dennis,

You are right it works with the 2.0-beta-6-SNAPSHOT. Thanks for the hint.
I was using the 2.0-beta-5 version.

As the Doxia site has not project summary page (cf.
http://maven.apache.org/doxia/project-info.html), it not possible to know
which version to use. I would be nice to add this information at the Doxia
Macros Guide page (cf.http://maven.apache.org/doxia/macros/index.html).

I give an example how I did it :

mypage.xdoc

<?xml version="1.0" encoding="UTF-8"?>
<document>
  <properties>
    <author email="[EMAIL PROTECTED]">Author</author>
    <title>MyTitle page</title>
  </properties>
  <head>
    <meta/>
  </head>
  <body>
    <section name="TOC">
      <macro name="toc">
        <param name="section" value="2"/>
        <param name="fromDepth" value="0"/>
        <param name="toDepth" value="3"/>
      </macro>
    </section>
    <section name="My First Section">
       [...]
    </section>
  </body>
</document>

and in the pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>

    [...]

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>2.0-beta-6-SNAPSHOT</version>
      </plugin>
    </plugins>
  </build>

    [...]
</project>

Rémy

Reply via email to