Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 61 lines (52 sloc) 1.47 KB
<project name="XSLTJSON" default="examples">
<description>
Simple project to transform arbitrary XML files to JSON format.
</description>
<property name="xsltjson.build" value="output"/>
<property name="xsltjson.lib" value="lib"/>
<property name="xsltjson.config" value="conf"/>
<path id="saxon.classpath">
<fileset dir="${xsltjson.lib}/saxon">
<include name="*.jar"/>
</fileset>
</path>
<path id="xalan.classpath">
<fileset dir="${xsltjson.lib}/xalan">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="${xsltjson.build}"/>
</target>
<target name="examples" depends="init">
<xslt basedir="input/examples" destdir="${xsltjson.build}/examples" extension=".json"
style="${xsltjson.config}/xml-to-json.xsl">
<classpath>
<path refid="saxon.classpath"/>
</classpath>
</xslt>
</target>
<target name="examples-xalan">
<xslt basedir="input/examples" destdir="${xsltjson.build}/examples" extension=".json"
style="${xsltjson.config}/xml-to-jsonml.xsl">
<classpath>
<path refid="xalan.classpath"/>
</classpath>
</xslt>
</target>
<target name="test" depends="init">
<xslt basedir="input/tests" destdir="${xsltjson.build}/tests" extension=".xml"
style="${xsltjson.config}/test.xsl">
<classpath>
<path refid="saxon.classpath"/>
</classpath>
</xslt>
</target>
<!--
<target name="test-xalan" depends="init">
</target>
-->
<target name="clean">
<delete dir="${xsltjson.build}"/>
</target>
</project>