1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 Copyright 2002-2004 The Apache Software Foundation or its licensors,
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
21 <title>Embedded HTML demonstration page</title>
25 <h1><a name="intro" />Embedded HTML demonstration page</h1>
27 <p>An HTML document is used as the source for this page, and translated
28 to the intermediate Apache Forrest xdocs document structure. The sitemap then
29 does the normal aggregation with the navigation content and application of
34 The html is being interpreted by Forrest and transformed to the
35 intermediate Apache xdocs document structure. That stylesheet cannot deal
36 with every possibility in unstructured html, so it tries to guess how to
37 build <section> elements and such.
38 It needs <h1> (<h2> etc.) headings in the source html
39 in order to identify sections. Patches are welcome to enhance
44 You can still take advantage of Forrest's
45 <a href="http://forrest.apache.org/docs/linking.html">"<b>site:<b>"
46 method of linking</a>, for example:
47 <a href="site:index"><a href="site:index"></a>
51 <note>XHTML can also be used, but it is just treated as interpreted
52 html. Future versions of Forrest will take much more advantage of XHTML.
56 <h1><a name="examples" />Some example uses of HTML</h1>
58 There are situations when the Apache Forrest xdocs DTD is not sufficient.
59 The use of embedded HTML enables you to use HTML code in these situations.
62 <h2><a name="js" />Embedded applets and Javascript</h2>
66 <a href="javascript:alert('Opened with Javascript via the body of the source html.')">Javascript alert pop-up</a>
69 <h2><a name="forms" />HTML forms for user interaction</h2>
71 Search the Forrest website via Google:
72 <!-- Search Google -->
73 <form target="_blank" action="http://www.google.com/search" method="get">
74 <input value="forrest.apache.org" name="as_sitesearch" type="hidden">
75 <input type=hidden name=ie value=UTF-8>
76 <input type=hidden name=oe value=UTF-8>
77 <a href="http://www.google.com/">
78 <img src="http://www.google.com/logos/Logo_40wht.gif"
79 border="0" alt="Google Search" align="middle" width="150" height="55"></a>
80 <input type="text" name="as_q" size="25" maxlength="255" value="HTML">
82 <input type="submit" name="btnG" value="Google Search">
84 <!-- Search Google -->
88 See a demonstration of "html" and "html forms" with our
89 <a href="http://forrest.apache.org/mirrors.cgi">Forrest download mirror</a>
91 <a href="http://forrest.apache.org/howto/howto-asf-mirror.html">explanation</a> howto document.
94 <h2><a name="invalid" />Invalid HTML</h2>
96 This paragraph has a missing closing tag for the <p> element. If you look
97 at the <a href="embedded_html.xml">XML created by Forrest</a> you'll notice that
98 Forrest has fixed this.
100 <h2>Potentially Invalid XDocs</h2>
102 <warning>However, it should also be noted that the resultant XML is not a valid document
103 since it contains the additional HTML elements. If you are intending to use
104 the intermediate XDocs for any purpose be aware of this fact.</warning>
106 <h2><a name="blink" />Other non-standard html-type abilities</h2>
108 Use other HTML <blink>delights (???) and tricks</blink>.