]> granicus.if.org Git - apache/commitdiff
Add validate target to validate XML files.
authorYoshiki Hayashi <yoshiki@apache.org>
Wed, 31 Jul 2002 05:37:13 +0000 (05:37 +0000)
committerYoshiki Hayashi <yoshiki@apache.org>
Wed, 31 Jul 2002 05:37:13 +0000 (05:37 +0000)
Submitted by: Vincent de Lau <vincent@delau.nl>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96250 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/build.xml

index e094214b62a7f1ba2db17e3eb37824dcaa7dd8fd..abe507b2325dd9656a0e46e5f2b64803c63b99a7 100644 (file)
@@ -18,7 +18,8 @@
              destdir="../mod/"
            extension=".html"
                style="./manual.en.xsl"
-            includes="*.xml">
+            includes="*.xml"
+            excludes="allmodules.xml">
       <mapper type="glob" from="*.xml" to="*.html.en"/>
       <param name="relative-path" expression="."/>
     </style>
@@ -26,7 +27,8 @@
              destdir="../mod/"
            extension=".html"
                style="./manual.ja.xsl"
-            includes="*.xml.ja">
+            includes="*.xml.ja"
+            excludes="allmodules.xml.ja">
       <mapper type="glob" from="*.xml.ja" to="*.html.ja.jis"/>
       <param name="relative-path" expression="."/>
     </style>
     </style>
 
   </target>
+  <target name="validate"
+      description="Validate the XML source files">
+      <!-- Validate almost all XML files in all languages -->
+      <xmlvalidate lenient="false" failonerror="false" warn="true">
+          <fileset dir="../"
+                   includes="**/*.xml **/*.xml.*"
+                   excludes="mod/allmodules.xml mod/allmodules.xml.* style/**"/>
+      </xmlvalidate>
+  </target>
 </project>