1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
|
<html><head>
<title>HTML sample file</title></head>
<body>
<a name="tomjones">
</a><h1><a name="tomjones">Sample text from Henry Fielding's <cite>Tom Jones</cite></a></h1>
<a name="tomjones"> </a><p><a name="tomjones">Here's a short excerpt from a great 18th Century British
novel. Enjoy!</a></p>
<a name="tomjones"> </a><h2><a name="tomjones"><b>Book I.</b> Containing as Much of the Birth of the Foundling
as Is Necessary or Proper to Acquaint the Reader with in the
Beginning of This History</a></h2>
<a name="tomjones"> </a><h3><a name="tomjones"><b>Chapter VII.</b> Containing Such Grave Matter, That the Reader
Cannot Laugh Once Through the Whole Chapter, Unless Peradventure He
Should Laugh at the Author</a></h3>
<a name="tomjones"> </a><p><a name="tomjones">WHEN Jenny appeared, Mr. Allworthy took her into his study, and
spoke to her as follows: "You know, child, it is in my power as a
magistrate, to punish you very rigorously for what you have done;
and you will, perhaps, be the more apt to fear I should execute that
power, because you have in a manner laid your sins at my door.</a></p>
<a name="tomjones"> </a><p><a name="tomjones">"But, perhaps, this is one reason which hath determined me to act
in a milder manner with you: for, as no private resentment should
ever influence a magistrate, I will be so far from considering your
having deposited the infant in my house as an aggravation of your
offence, that I will suppose, in your favour, this to have proceeded
from a natural affection to your child, since you might have some
hopes to see it thus better provided for than was in the power of
yourself, or its wicked father, to provide for it. I should indeed
have been highly offended with you had you exposed the little wretch
in the manner of some inhuman mothers, who seem no less to have
abandoned their humanity, than to have parted with their chastity.
It is the other part of your offence, therefore, upon which I intend
to admonish you, I mean the violation of your chastity; -- a crime,
however lightly it may be treated by debauched persons, very heinous
in itself, and very dreadful in its consequences....</a></p>
<a name="tomjones"> </a><h1><a name="tomjones">Sample text to illustrate HTML elements</a></h1>
<a name="tomjones"> </a><p><a name="tomjones">Here are some HTML elements that should put FOP through its paces.</a></p>
<a name="tomjones"> </a><h2><a name="tomjones">Basic HTML formatting</a></h2>
<a name="tomjones"> </a><p><a name="tomjones"><i>Now</i> is the time for all good <b>men and women</b> to come
to the aid of <u>the party</u>. The <tt>quick brown fox</tt> jumped
over the <strong>lazy dog</strong>. Every <em>good boy</em> deserves
fudge. Jackdaws <strike>love</strike> like my big sphinx of quartz.</a></p>
<a name="tomjones"> </a><h2><a name="tomjones">Lists</a></h2>
<a name="tomjones"> </a><p><a name="tomjones">The previous section featured a number of text effects:</a></p>
<a name="tomjones"> </a><ul>
<a name="tomjones"> <li><b>Bold</b> text</li>
<li><em>Emphasized</em> text</li>
<li><i>Italicized</i> text</li>
<li><strike>Strikethrough</strike> text</li>
<li><strong>Strongly emphasized</strong> text</li>
<li><u>Underlined</u> text</li>
<li><tt>Teletype</tt> text</li>
</a></ul>
<a name="tomjones"> </a><p><a name="tomjones">Here they are again, ranked according to how I like 'em:</a></p>
<a name="tomjones"> </a><ol>
<a name="tomjones"> <li><u>Underlined</u> text</li>
<li><strike>Strikethrough</strike> text</li>
<li><i>Italicized</i> text</li>
<li><b>Bold</b> text</li>
<li><tt>Teletype</tt> text</li>
<li><em>Emphasized</em> text</li>
<li><strong>Strongly emphasized</strong> text</li>
</a></ol>
<a name="tomjones"> </a><p><a name="tomjones">Finally, let's define these things in a definition list, just to
have something else to write about.</a></p>
<a name="tomjones"> </a><dl>
<a name="tomjones"> <dt><b>Bold</b></dt>
<dd>Text written in a <b>thicker font</b>.</dd>
<dt><em>Emphasized</em></dt>
<dd><em>Emphasized text</em>, usually written in an italicized font.</dd>
<dt><i>Italic</i></dt>
<dd>Text written in an <i>italicized font</i>.</dd>
<dt><strike>Strikethrough</strike></dt>
<dd>Text with a <strike>line drawn through it</strike>.</dd>
<dt><strong>Strong</strong></dt>
<dd><strong>Strongly emphasized</strong> text, usually written in
a bold font.</dd>
<dt><tt>Teletype</tt></dt>
<dd>Text written in a <tt>monospaced</tt> font.</dd>
<dt><u>Underlined</u></dt>
<dd>Text with a <u>line drawn under it</u>.</dd>
<dd>Here's a second definition of the term, just to test the stylesheet.
The second and any subsequent definitions under the same term should
appear a half-line below the previous definition.</dd>
</a></dl>
<a name="tomjones"> </a><p><a name="tomjones">This lovely document was produced by the Apache XML Project's FOP:</a></p>
<a name="tomjones"> <img src="fop.jpg" height="50" width="150">
</a><h2><a name="tomjones">More lists</a></h2>
<a name="tomjones"> </a><p><a name="tomjones">Here are some advanced lists. This one uses uppercase Roman numerals:</a></p>
<a name="tomjones"> </a><ol type="I">
<a name="tomjones"> <li><u>Underlined</u> text</li>
<li><strike>Strikethrough</strike> text</li>
<li><i>Italicized</i> text</li>
<li><b>Bold</b> text</li>
<li><tt>Teletype</tt> text</li>
<li><em>Emphasized</em> text</li>
<li><strong>Strongly emphasized</strong> text</li>
</a></ol>
<a name="tomjones"> </a><p><a name="tomjones">This list uses lowercase Roman numerals starting at 17:</a></p>
<a name="tomjones"> </a><ol start="17" type="i">
<a name="tomjones"> <li><u>Underlined</u> text</li>
<li><strike>Strikethrough</strike> text</li>
<li><i>Italicized</i> text</li>
<li><b>Bold</b> text</li>
<li><tt>Teletype</tt> text</li>
<li><em>Emphasized</em> text</li>
<li><strong>Strongly emphasized</strong> text</li>
</a></ol>
<a name="tomjones"> </a><p><a name="tomjones">This one uses lowercase alpha characters and starts at 30:</a></p>
<a name="tomjones"> </a><ol start="30" type="a">
<a name="tomjones"> <li><u>Underlined</u> text</li>
<li><strike>Strikethrough</strike> text</li>
<li><i>Italicized</i> text</li>
<li><b>Bold</b> text</li>
<li><tt>Teletype</tt> text</li>
<li><em>Emphasized</em> text</li>
<li><strong>Strongly emphasized</strong> text</li>
</a></ol>
<a name="tomjones"> </a><p><a name="tomjones">This list uses uppercase alpha characters and starts at 12:</a></p>
<a name="tomjones"> </a><ol start="12" type="A">
<a name="tomjones"> <li><u>Underlined</u> text</li>
<li><strike>Strikethrough</strike> text</li>
<li><i>Italicized</i> text</li>
<li><b>Bold</b> text</li>
<li><tt>Teletype</tt> text and a sublist:
<ol type="a">
<li>An item</li>
<li>Another item
<ul>
<li><ul> item a</li>
<li><ul> item b</li>
<li><ul> list item c, which contains two <hr>s
and an embedded list
<hr>
<ol start="37">
<li>Deeply nested item one</li>
<li>Deeply nested item two</li>
<li><a href="#tomjones">The excerpt from <cite>Tom
Jones</cite></a> is a link to an earlier section of
this document.</li>
</ol>
<hr>
</li>
<li><ul> item d</li>
</ul>
</li>
<li>Yet another item</li>
<li>Notice that these items (and in fact this whole list) are
indented from the start of the other list items. Notice also
that the text wraps the way you'd think it would, using the
settings of the internal list, not the external list.</li>
<li>Our final item</li>
</ol>
</li>
<li><em>Emphasized</em> text</li>
<li><strong>Strongly emphasized</strong> text</li>
</a></ol>
<a name="tomjones"> </a><h1><a name="tomjones">Tables</a></h1>
<a name="tomjones"> </a><p><a name="tomjones">Mapping HTML table tags to XSL-FO tables has some difficulties.
The biggest problems are supporting the <code>cols</code> attribute
of the <code><table></code> element, and supporting the
<code>rowspan</code> and <code>colspan</code> attributes of the
<code><td></code> element. Here's a table that illustrates
all of the things we support:</a></p>
<a name="tomjones"> </a><table border="1" cols="200">
<tbody><tr>
<th>State</th>
<th>Abbr</th>
</tr>
<tr>
<td>North Carolina</td>
<td>NC</td>
</tr>
<tr>
<td>California</td>
<td>CA</td>
</tr>
<tr>
<td>Tennessee</td>
<td>TN</td>
</tr>
<tr>
<td rowspan="2">Texas <br><i>and</i> <br>Connecticut</td>
<td>TX</td>
</tr>
<tr>
<td>CT</td>
</tr>
<tr>
<td colspan="2" align="right">That's all!</td>
</tr>
</tbody></table>
<a name="tomjones"> </a><h1><a name="tomjones">More HTML we support</a></h1>
<a name="tomjones"> </a><p><a name="tomjones">This section goes through more HTML tags **NED: AGAIN** we support.</a></p>
<a name="tomjones"> </a><h2><a name="tomjones">Anchor tags</a></h2>
<a name="tomjones"> </a><a name="anchors"> </a>
<p>Supporting links is very important to us here at
<a href="http://www.ibm.com/developerWorks">developerWorks</a>.
This sample document contains both internal and external links; if
you don't believe me, just read the excerpt from <a href="#tomjones">
<cite>Tom Jones</cite></a> earlier in this document. </p>
<p>This is <em>not</em> my address:</p>
<address>
Mrs. Mary McGoon
<br>
901 Main Street
<br>
Kenosha, WI 38492
</address>
<p>Now for a paragraph with <b>boldfaced text</b>, <big>big text,
<big>bigger text, <big>biggest text,</big></big></big> and
<br>three <br>line <br>breaks.</p>
<blockquote>
When in the Course of human events, it becomes necessary
for one people to dissolve the political bands which have
connected them with another, and to assume among the powers
of the earth, the separate and equal station to which the
Laws of Nature and of Nature's God entitle them, a decent
respect to the opinions of mankind requires that they should
declare the causes which impel them to the separation.
</blockquote>
<center>
<font color="red" face="sans-serif" size="+2">
This text is big and centered <br>
so it will stand out.
</font>
</center>
<h1>An <h1></h1>
<p>Blah blah blah</p>
<h2>An <h2></h2>
<p>Blah blah blah</p>
<h3>An <h3></h3>
<p>Blah blah blah</p>
<h4>An <h4></h4>
<p>Blah blah blah</p>
<h5>An <h5></h5>
<p>Blah blah blah</p>
<h6>An <h6></h6>
<p>Blah blah blah</p>
<p><nobr>Now here's a really, really, really long sentence that's
coded with the <nobr> tag. This should run on and on and
on and on and eventually it should run all the way off the page
and into the void.</nobr> This text appears after the <nobr> tag.</p>
<h1>A short code listing</h1>
<p>Here's a simple Java program, formatted with the <pre> element:</p>
<pre>public class Sample
{
public static void main(String [] args)
{
System.out.println("Hello, World!");
for (int i = 0; i < 5; i++)
{
System.out.print("How");
System.out.print("dy! ");
}
System.out.println();
}
}
</pre>
<h2>More HTML elements</h2>
<p>This paragraph tests out the <samp>sample element
(<samp>)</samp>, <small>small text (<small>)</small>,
<sub>sub</sub>script text, <sup>super</sup>script text, a
<kbd>keyboard</kbd> command, and a <var>variable</var> name.</p>
</body></html>
|