blob: 0781154f11cdf4e57d852ac42743a4a6b2bc9635 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<?xml-stylesheet type="text/css"
href="document.css"
?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN"
"document-v10.dtd">
<document>
<header>
<title>Fast guide to XDoc Writing</title>
<subtitle>A comprehensive intro to the xdoc DTD</subtitle>
<version>1.0</version>
<type>sample document</type>
<authors>
<person name="Fabien TREGAN"
email="sorry@this_is_not_mail_supported.arg" />
<person name="Sylvain Wallez"
email="sylvain@apache.org" />
</authors>
<notice>This document should not be included in the docs !</notice>
<abstract>This document is an example of <em>all</em> constucts in the DTD
to test the CSS2 stylesheet.</abstract>
</header>
<body>
<s1 title="Introduction">
<p>This is a typical example : a &#39;P&#39; into a &#39;S1&#39;.<br />
After this line break we have some <strong>strong text</strong>and a bit
of <em>emphasis</em> to let you see how it looks.</p>
<p>This second paragraph <sub>is subscripted a</sub>n<sup>d supscripted</sup>.</p>
<p>Now that we have shown normal text, lets add figure and anchor :</p>
<anchor id="ID_of_the_anchor" />
<figure alt="This is my picture."
src="file:C:\mypicture.gif" />
</s1>
<s1 title="Linking">
<p>We have several types of links :</p>
<ul>
<li><link href="file:">Link</link>is hard replacing link (equivalent
of <code>&#60;a ...&#62;</code>)</li>
<li><jump href="file:">Jump</jump>is hard window replacing link
(equivalent of <code>&#60;a ... target=&#34;_top&#34;&#62;</code>)</li>
<li><fork href="file:">Fork</fork>is hard window forking link
(equivalent of <code>&#60;a ... target=&#34;_new&#34;&#62;</code>)</li>
<li><connect href="put_your_href_here">Connect</connect>is Soft link
between processed pages (no equivalent in HTML)</li>
</ul>
<fixme author="FT">Does someone have an example for Connect ?</fixme>
</s1>
<s1 title="Hierarchy">
<s2 title="First S2">
<p>This is the first S2</p>
<s3 title="First S3">
<s4 title="And first S4">
<p>but do we really need S4 ? :)</p>
</s4>
</s3>
<s3 title="Second S3">
<p>Mmmh... I hope you have a CSS 2 enabled editor :)</p>
<p>If not, follow this <link
href="http://www.xmlmind.com/xmleditor/">link</link></p>
</s3>
</s2>
<s2 title="Second S2">
<ol>
<li>This is first Li in an OL</li>
<li>This is the second one</li>
</ol>
<sl>
<li>This is first LI in a SL</li>
<li>This is the second one</li>
</sl>
<ul>
<li>This is first LI in a UL</li>
<li>This is the second one.</li>
</ul>
<dl>
<dt>DL</dt>
<dd>Definition List : contains a DT (Title) and a DD (Definition).</dd>
</dl>
</s2>
</s1>
<s1 title="Notes&#39;n&#39;notices">
<p>Here they are :</p>
<fixme author="Fabien TREGAN">Did I forget something important like a
FIXME ?</fixme>
<note>I should not forget to include an example of NOTE.</note>
</s1>
<s1 title="What about tables ?">
<table>
<tr>
<th>This is a TH one of TR one</th>
<td>This is a TD one of TR one</td>
</tr>
<tr>
<td>This is a TD one of TR two</td>
<td>This is a TD two of TR two.</td>
</tr>
</table>
</s1>
<s1 title="Let&#39;s finish with some code...">
<p>You must be aware of that here is a difference between <code>code</code>
wich is an inline element representing the name of a method or a
property such as <code>java.lang.String</code>, or a small quotation
from a source file, and source, wich contains much more code (usually a
whole method or file) :</p>
<source>public class Source {
Source() {
System.out.println(&#34;Hello World!&#34;);
}
}</source>
</s1>
</body>
<footer>
<legal>(c) 2003 The Apache Software Foundation.</legal>
</footer>
</document>