<project name="faq" default="main" basedir="."> | |
<target name="main" depends="validate, faq" description="Builds WTP FAQ."/> | |
<!-- Builds the WTP FAQ pages --> | |
<target name="faq" description="Transforms FAQ XML to HTML"> | |
<xslt in="main.xml" out="main.html" style="stylesheets/faq.xsl" /> | |
<xslt in="CommitterFAQ.xml" out="CommitterFAQ.html" style="stylesheets/faq.xsl" /> | |
</target> | |
<target name="validate" description="Validate XML files"> | |
<xmlvalidate failonerror="yes" lenient="true" warn="yes"> | |
<fileset dir="." includes="*.xml, *.xsl, *.xsd, *.data" excludes="build.xml" /> | |
<attribute name="http://xml.org/sax/features/namespaces" value="true" /> | |
<!-- | |
<attribute name="http://xml.org/sax/features/validation" value="true" /> | |
<attribute name="http://apache.org/xml/features/validation/schema" value="true" /> | |
<attribute name="http://apache.org/xml/features/validation/schema-full-checking" value="true" /> | |
--> | |
</xmlvalidate> | |
</target> | |
</project> |