ehatcher 02/01/19 13:19:42
Modified: docs/manual/OptionalTasks xmlvalidate.html
Log:
added <dtd> documentation
Revision Changes Path
1.3 +35 -6 jakarta-ant/docs/manual/OptionalTasks/xmlvalidate.html
Index: xmlvalidate.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/xmlvalidate.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- xmlvalidate.html 10 Jan 2002 08:48:31 -0000 1.2
+++ xmlvalidate.html 19 Jan 2002 21:19:42 -0000 1.3
@@ -53,19 +53,48 @@
<td align="center" valign="top">No</td>
</tr>
</table>
+
+<h3><a name="nested">Nested Elements</a></h3>
+<h4>dtd</h4>
+<dtd> is used to specify different locations for DTD resolution.
+<table border="1" cellpadding="2" cellspacing="0">
+<tr>
+ <td width="12%" valign="top"><b>Attribute</b></td>
+ <td width="78%" valign="top"><b>Description</b></td>
+ <td width="10%" valign="top"><b>Required</b></td>
+</tr>
+ <tr>
+ <td valign="top">publicId</td>
+ <td valign="top">Public ID of the DTD to resolve</td>
+ <td align="center" valign="top">Yes</td>
+ </tr>
+ <tr>
+ <td valign="top">location</td>
+ <td valign="top">Location of the DTD to use, which can be a file,
+ a resource, or a URL</td>
+ <td align="center" valign="top">Yes</td>
+ </tr>
+</table>
+
+
<h3>Examples</h3>
<blockquote><pre>
<xmlvalidate file="toto.xml"/>
- <xmlvalidate failonerror="no" lenient="yes" warn="yes"
- classname="org.apache.xerces.parsers.SAXParser" >
- classpath="lib/xerces.jar">
- <fileset dir="src" includes="style/*.xsl"/>
- </xmlvalidate>
+<xmlvalidate failonerror="no" lenient="yes" warn="yes"
+ classname="org.apache.xerces.parsers.SAXParser" >
+ classpath="lib/xerces.jar">
+ <fileset dir="src" includes="style/*.xsl"/>
+</xmlvalidate>
+
+<xmlvalidate file="struts-config.xml" warn="false">
+ <dtd publicId="-//Apache Software Foundation//DTD Struts Configuration
1.0//EN"
+ location="struts-config_1_0.dtd"/>
+</xmlvalidate>
</pre></blockquote>
<hr>
-<p align="center">Copyright © 2001 Apache Software Foundation. All
rights
+<p align="center">Copyright © 2001-2002 Apache Software Foundation. All
rights
Reserved.</p>
</body>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>