Setting stylesheet parameters
The following configuration snippet would set the stylesheet parameter MyParam
to true
:
<build> <plugins> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xml-maven-plugin</artifactId> <executions> <execution> <goals> <goal>transform</goal> </goals> </execution> </executions> <configuration> <transformationSets> <transformationSet> <dir>src/main/xml</dir> <stylesheet>src/main/stylesheet.xsl</stylesheet> <parameters> <parameter> <name>MyParam</name> <value>true</value> </parameter> </parameters> </transformationSet> </transformationSets> </configuration> </plugin> ... </plugins> </build>