Olivier Van Acker wrote:

So I thought I could use maven profiles with
different properties, insert the variable name in the transformation
stylesheet and voila.

I am not familar with this plugin but two possible ways popped from my mind:

You could use global XSLT parameters in your stylesheet and configure the XSLT plugin to populate these parameters from its configuration [0] in the POM where you can use the Maven property from your current profile.

Alternatively, you could use the Maven AntRun Plugin [1] to filter/interpolate your stylesheets before processing by the XSLT Plugin.


Benjamin


[0] http://mojo.codehaus.org/xslt-maven-plugin/transform-mojo.html#parameters
[1] http://maven.apache.org/plugins/maven-antrun-plugin/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to