Browse Source

fix example xml. BZ 40975.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475291 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
de968b4891
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      docs/manual/CoreTasks/antstructure.html

+ 4
- 7
docs/manual/CoreTasks/antstructure.html View File

@@ -69,7 +69,7 @@ element of this task - see the example below.</code>
</table> </table>
<h3>Examples</h3> <h3>Examples</h3>
<blockquote><pre> <blockquote><pre>
&lt;antstructure output=&quot;project.dtd&quot;/&gt;
&lt;antstructure output=&quot;project.dtd&quot; /&gt;
</pre></blockquote> </pre></blockquote>


<p><b>Emitting your own structure instead of a DTD</b></p> <p><b>Emitting your own structure instead of a DTD</b></p>
@@ -87,17 +87,14 @@ public class MyPrinter implements AntStructure.StructurePrinter {
<p>and then use it via typedef</p> <p>and then use it via typedef</p>


<pre> <pre>
&lt;typedef name="myprinter" classname="org.example.MyPrinter"/&gt;
&lt;typedef name="myprinter" classname="org.example.MyPrinter" /&gt;
&lt;antstructure output="project.my"&gt; &lt;antstructure output="project.my"&gt;
&lt;myprinter/&gt;
&lt;antstructure&gt;
&lt;myprinter /&gt;
&lt;/antstructure&gt;
</pre> </pre>


<p>Your own StructurePrinter can accept attributes and nested elements <p>Your own StructurePrinter can accept attributes and nested elements
just like any other Ant type or task.</p> just like any other Ant type or task.</p>




</body> </body>
</html> </html>


Loading…
Cancel
Save