ricksbrown / xslmin

An XSLT minifier
4 stars 0 forks source link

xslmin

An XSLT minifier

The primary goal of this tool is to reduce the size of XSL files used in client side XSLT in web browsers.

xslmin performs the following minification tasks:

Usage

You can download the latest JAR from Maven Central

Executable Jar

java -jar xslmin.jar inputXslPath outputXslPath [-p[reserve]]

Ant Task

The easiest way is to use maven and the maven-antrun-plugin to fetch xslmin and then use it in your ant build like so:

<path id="project.class.path">
    <path path="${maven.plugin.classpath}"/>
</path>

<taskdef name="xslmin"
    classname="com.github.ricksbrown.xslmin.ant.MinifyTask"
    classpathref="https://github.com/ricksbrown/xslmin/blob/master/project.class.path"/>

<xslmin in="${srcdir}/myxsl.xsl" out="${outdir}/myxsl.xsl" preserve="true"/>

Releases

2.3.0

TODO