Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 60 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>