xslt-generator:many-to-dynamic

Full name:

net.sf.xsltmp:xslt-generator-maven-plugin:1.8:many-to-dynamic

Description:

Perform XSL transformation of multiple source files into destination files created dynamically by the template.

For each source file, the template is supposed to create destination files dynamically using the xsl:result-document command.

The default output of the template is directed to a file which is deleted after processing.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
srcDir File - The source directory. The source files are read from here.
xslTemplate String - The XSL template to use.

Optional Parameters

Name Type Since Description
addDestDirTo String - Where should the destination directory be added. Valid values are: sources, resources, test-sources, test-resources.

This is a shortcut to avoid configuring the build-helper-maven-plugin.

When adding to resources or test-resources, all .java files are excluded by default.


destDir File - The destination directory. The output files are written based on this directory.
filter String - Type of filter to use on input files (XSL templates and source files). Must implement Filter.
filterParameters Map - Map of parameters to be passed to the filter.

See the particular filter for its parameters.


force boolean - Force generation. When set, the timestamp of the last build is ignored and the XSLT generation is always performed.
Default value is: false.
parameters Map - A Map of parameters to be passed into the style.
sourceEncoding String - Read the source files (XSL templates and XML transformation sources) using this encoding.
srcExcludes String - Which files from the source directory tree should be excluded in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.


srcIncludes String - Which files from the source directory tree should be included in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.


Default value is: **/*.xml.

Parameter Details

addDestDirTo:

Where should the destination directory be added. Valid values are: sources, resources, test-sources, test-resources.

This is a shortcut to avoid configuring the build-helper-maven-plugin.

When adding to resources or test-resources, all .java files are excluded by default.

  • Type: java.lang.String
  • Required: No

destDir:

The destination directory. The output files are written based on this directory.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/generated-xml/xslt-generator/

filter:

Type of filter to use on input files (XSL templates and source files). Must implement Filter.
  • Type: java.lang.String
  • Required: No

filterParameters:

Map of parameters to be passed to the filter.

See the particular filter for its parameters.

  • Type: java.util.Map
  • Required: No

force:

Force generation. When set, the timestamp of the last build is ignored and the XSLT generation is always performed.
  • Type: boolean
  • Required: No
  • Expression: ${xsltmp.force}
  • Default: false

parameters:

A Map of parameters to be passed into the style.
  • Type: java.util.Map
  • Required: No

sourceEncoding:

Read the source files (XSL templates and XML transformation sources) using this encoding.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.sourceEncoding}

srcDir:

The source directory. The source files are read from here.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.sourceDirectory}

srcExcludes:

Which files from the source directory tree should be excluded in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.

  • Type: java.lang.String
  • Required: No

srcIncludes:

Which files from the source directory tree should be included in the transformation.

Specifies a fileset of source files in the comma- or space-separated list of patterns of files.

  • Type: java.lang.String
  • Required: No
  • Default: **/*.xml

xslTemplate:

The XSL template to use.
  • Type: java.lang.String
  • Required: Yes