Maven XSLT: Limiting the Scope

Using the maven xml plugin, how does one limit the scope of the files to be transformed? The site documentation for the plugin only shows being able to set the input directory for a transformation set.   However, you can also narrow the scope by using the include option.

<transformationSet>
    <dir>STAR/Rev/WSDL</dir>
    <includes>
          <include>WSDLScenarios.xml</include>
     </includes>
     <stylesheet>STAR/Utilities/bin/STARWSDL.xsl</stylesheet>
</transformationSet>

The include option allows you to specify only specific files to be used as input to the transformation process.  With out this, the directory option will apply the transformation to every file in the directory.

About these ads
This entry was posted in maven, release engineering, wsdl, xml, xsl, xslt. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s