General

What goals does the XML Maven Plugin offer?

The plugin offers the xml:validate goal for validating XML files and the xml:transform goal for transforming XML files.

[top]

How do I use snapshot versions of the plugin?

The use of snapshot versions is described in the Usage document.

[top]

How do I tell the plugin to use my proxy server?

Use the standard Maven proxy settings. See the Mini guide on proxy configuration for details.

[top]

I have a stylesheet (a schema, another resource), which should be loaded through the class loader.

For example, to load a stylesheet from org/foo/stylesheet.xsl, use the URI "resource:org/foo/stylesheet.xsl".

[top]

Transformation

How do I use an XSLT stylesheet for transforming files?

See this example.

[top]

How do I transform the names of the generated files?

Use a File Mapper. See this example.

[top]

How can I use XSLT 2.0 in my stylesheets?

You need to use an XSLT 2.0 complicant stylesheet processor like Saxon. See this example.

[top]

How do I use another XSLT processor, for example Saxon?

You need to specify your favorite XSLT processor as a dependency. See this example.

[top]

How do I set a transformers output properties?

Use the element outputProperties in the transformation set. See this example for details.

[top]

How do I set stylesheet parameters?

Use the element parameters in the transformation set. See this example for details.

[top]