| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| |
| Ant build script for WTP Web Site presentations folder. |
| |
| Change Log: |
| |
| 2007-11-05: David Williams. Originally Copied from general build.xml, to make specific to |
| presentations only |
| |
| --> |
| |
| <project name="community" default="main" basedir="."> |
| |
| <target name="main" depends="validate, community" description="Builds WTP Web presentations folder." /> |
| |
| <target name="community" description="Transforms presentations XML to HTML" depends="presentations"> |
| |
| <xslt in="presentations.xml" out="presentations.html" style="stylesheets/wtp.xsl" force="true" /> |
| </target> |
| |
| <target name="presentations" description="Transforms presentations data to XML page."> |
| <xslt in="presentations-data.xml" out="presentations.xml" style="stylesheets/presentations.xsl" /> |
| </target> |
| |
| <target name="validate" description="Validate XML files"> |
| <xmlvalidate failonerror="yes" lenient="true" warn="yes"> |
| <fileset dir="." includes="*.xml, *.xsl, *.xsd" excludes="build*.xml" /> |
| <attribute name="http://xml.org/sax/features/namespaces" value="true" /> |
| </xmlvalidate> |
| </target> |
| |
| </project> |