Return-Path: Delivered-To: apmail-forrest-site-svn-archive@locus.apache.org Received: (qmail 12296 invoked from network); 7 Apr 2007 08:27:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Apr 2007 08:27:23 -0000 Received: (qmail 84555 invoked by uid 500); 7 Apr 2007 08:27:30 -0000 Delivered-To: apmail-forrest-site-svn-archive@forrest.apache.org Received: (qmail 84521 invoked by uid 500); 7 Apr 2007 08:27:30 -0000 Mailing-List: contact site-svn-help@forrest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@forrest.apache.org Delivered-To: mailing list site-svn@forrest.apache.org Received: (qmail 84512 invoked by uid 99); 7 Apr 2007 08:27:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Apr 2007 01:27:29 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Apr 2007 01:27:22 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id BD25F1A9838; Sat, 7 Apr 2007 01:27:01 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r526404 - in /forrest/site/dtdx: document-v20.html document-v20.pdf document-v20.pod document-v20.xml Date: Sat, 07 Apr 2007 08:27:01 -0000 To: site-svn@forrest.apache.org From: crossley@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070407082701.BD25F1A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: crossley Date: Sat Apr 7 01:27:00 2007 New Revision: 526404 URL: http://svn.apache.org/viewvc?view=rev&rev=526404 Log: Automatic publish from forrestbot Modified: forrest/site/dtdx/document-v20.html forrest/site/dtdx/document-v20.pdf forrest/site/dtdx/document-v20.pod forrest/site/dtdx/document-v20.xml Modified: forrest/site/dtdx/document-v20.html URL: http://svn.apache.org/viewvc/forrest/site/dtdx/document-v20.html?view=diff&rev=526404&r1=526403&r2=526404 ============================================================================== --- forrest/site/dtdx/document-v20.html (original) +++ forrest/site/dtdx/document-v20.html Sat Apr 7 01:27:00 2007 @@ -5,7 +5,7 @@ - +The Apache Forrest xdocs document-v2.0 DTD @@ -300,6 +300,570 @@ +
+ +
Font size: +   +   +   +
+

The Apache Forrest xdocs document-v2.0 DTD

+
This is a demonstration document using all possible elements in + the current Apache Forrest xdocs document-v20.dtd +
+ + +
+
Note
+
+ This is a demonstration document using all possible elements in the + current Apache Forrest xdocs document-v20.dtd + (See the DTD changes section at the bottom.) +
+
+ + +

Sample Content

+
+

+Hint: See the xml source to see how the various + elements are used and see the + DTD reference documentation. +

+ +

Block and inline elements

+

This is a simple paragraph. Most documents contain a fair amount of + paragraphs. Paragraphs are called <p>.

+
With the <p xml:space="preserve"> attribute, you can declare + that whitespace should be preserved, without implying it is in any other + way special.
+

+ This next paragraph has a class attribute of 'quote'. CSS can + be used to present this <p class='quote'> in + a different style than the other paragraphs. The handling of + this quoted paragraph is defined in the <extra-css> + element in the skinconf.xml. +

+

+ Anyway, like I was sayin', shrimp is the fruit of the sea. You can + barbecue it, boil it, broil it, bake it, sautee it. Dey's uh, + shrimp-kabobs, shrimp creole, shrimp gumbo. Pan fried, deep fried, + stir-fried. There's pineapple shrimp, lemon shrimp, coconut shrimp, + pepper shrimp, shrimp soup, shrimp stew, shrimp salad, shrimp and + potatoes, shrimp burger, shrimp sandwich. That- that's about it. +

+

A number of in-line elements are available in the DTD, we will show them + inside an unordered list (<ul>):

+
    + +
  • Here is a simple list item (<li>).
  • + +
  • Have you seen the use of the <code> element in the + previous item?
  • + +
  • Also, we have <sub> and <sup> + elements to show content above or below the text + baseline.
  • + +
  • There is a facility to emphasize certain words using the + <em> <strong> + elements.
  • + +
  • We can use + feather + <icon>s too.
  • + +
  • Another possibility is the <img> element: + another feather, + which offers the ability to refer to an image map.
  • + +
  • We have elements for hyperlinking: +
    + +
    +<a href="../index.html"> +
    + +
    Use this to + link + to another document. As per normal, this will open the new document + in the same browser window.
    + + +
    +<a href="#section"> +
    + +
    Use this to + link + to the named anchor in the current document. +
    + + +
    +<a href="../index.html#status"> +
    + +
    Use this to + link + to another document and go to the named anchor. This will open + the new document in the same browser window. +
    + +
    Targetted window control with jump and fork.
    + +
    See demonstration + using class attribute on links. +
    + +
    +
  • + + +
  • Oh, by the way, a definition list <dl> was used inside + the previous list item. We could put another +
      + +
    • unordered list
    • + +
    • inside the list item
    • + +
    + + + + + + + + + + + + + +
    A sample nested table
    Or even tables.. + + + + + +
    inside tables..
    + +
    or inside lists, but I believe this liberty gets quickly quite + hairy as you see.
    + +
  • + +
+

So far for the in-line elements, let's look at some paragraph-level + elements.

+
+
Fixme (SN)
+
The <fixme> element is used for stuff + which still needs work. Mind the author attribute!
+
+
+
Note
+
Use the <note> element to draw attention to something, e.g. ...The <code> element is used when the author can't + express himself clearly using normal sentences ;-)
+
+
+
Warning
+
Sleep deprivation can be the result of being involved in an open + source project. (a.k.a. the <warning> element). +
+
+
+
Important
+
If you want your own labels for notes and + warnings, specify them using the label attribute. +
+
+

Apart from unordered lists, we have ordered lists too, of course.

+
    + +
  1. Item 1
  2. + +
  3. Item 2
  4. + +
  5. This should be 3 if my math is still OK.
  6. + +
+ +

Various presentation formats

+

This sample document, written in document-v20 XML can be presented + via Forrest in a number of different formats. The links in the + following list show this document in each of the currently available + formats.

+

Each of the formats can be made available as a link near the top of + the page. Actual placement of those links depends on the skin + currently in use. Those links are enabled in the skinconf.xml via the + <disable-XXX-link> elements in the skinconf.xml

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Presentation FormatDescriptionskinconf.xml Element
HTMLThis document in HTML format. Always generated by default. Cannot be turned off.
XMLThis document in its raw XML format.<disable-xml-link>. By default, set to true, meaning + that this link will not be shown.
PDFThis document as Adobe PDF<disable-pdf-link>. By default, set to false, meaning + that this link will be shown.
Text +

This document as straight text.

+ +

For additional information see the Forrest text-output + plugin.

+
<disable-txt-link>. By default, set to true, meaning + that this link will not be shown.
POD +

This document as Perl POD (Plain Old Documentation). Text + with minimal formatting directives. If on a *nix system with perl + installed, see "man perlpod".

+ +

For additional information see the Forrest pod-output + plugin.

+
<disable-pod-link>. By default, set to true, meaning + that this link will not be shown.
+ +

Using sections

+

You can use sections to put some structure in your document. +

+ +

Sections, the sequel

+

Just some second section.

+ +

Section 2.1

+

Which contains a subsection (2.1).

+ +

Showing preformatted source code

+

Enough about these sections. Let's have a look at more interesting + elements, <source> for instance:

+
+// This example is from the book _Java in a Nutshell_ by David Flanagan.
+// Written by David Flanagan.  Copyright (c) 1996 O'Reilly & Associates.
+// You may study, use, modify, and distribute this example for any purpose.
+// This example is provided WITHOUT WARRANTY either expressed or implied.
+
+import java.applet.*;    // Don't forget these import statements!
+import java.awt.*;
+
+public class FirstApplet extends Applet {
+    // This method displays the applet.
+    // The Graphics class is how you do all drawing in Java.
+    public void paint(Graphics g) {
+        g.drawString("Hello World", 25, 50);
+    }
+}
+

CDATA sections are used within + <source> elements so that you can write pointy + brackets without needing to escape them with messy + &lt; entities ... +

+
+<pointy>
+  easy
+</pointy>
+
+

Please take care to still use a sensible line-length within your + source elements.

+ +

Using tables

+

And now for a table:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table caption
heading cell 1heading cell 2heading cell 3
data cellthis data cell spans two columns
+ Tables can be nested: + + + + + + + + + + + + + + + + + + +
column 1column 2
cell Acell B
+ +
+ +
    +
  • and can include most other elements
  • +
  • such as lists
  • +
+ +
+ +

Using figures

+

And a <figure> to end all of this. + Note that this can also be implemented with an + <img> element. +

+
+The fine Forrest logo
+ +

Using class attribute on links

+

The document-v13 had elements <fork> and <jump>. In + document-v20, those elements no longer exist but the functionality can + be duplicated by using the @class attribute. + Even though the opening of separate windows should be under the + control of the user, these techniques can still be employed.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Document V1.3

+
+

Document V2.0

+
+

<fork href="../index.html">

+
<a class="fork" + href="../index.html">
+

<jump href="../index.html">

+
+

+<a class="jump" + href="../index.html"> +

+
+
+ + + +

DTD changes

+
+

See the generated + DTD reference documentation. +

+ +

Changes between document-v13 and document-v20

+
    + +
  • Renamed <link> + to <a> + +
  • + +
  • Removed <fork> + and <jump> in favour of the + <a> element. See demonstration + using class attribute on links. +
  • + +
+ +

Changes between document-v12 and document-v13

+

+ All v1.2 docs will work fine as v1.3 DTD. The main change is the + addition of a @class attribute to every element, which enables the + "extra-css" section in the skinconf to be put to good use. +

+ +

Changes between document-v11 and document-v12

+

+ doc-v12 enhances doc-v11 by relaxing various restrictions that were + found to be unnecessary. +

+
    + +
  • + Links ((link|jump|fork) and inline elements (br|img|icon|acronym) are + allowed inside title. +
  • + +
  • + Paragraphs (p|source|note|warning|fixme), table and figure|anchor are + allowed inside li. +
  • + +
  • + Paragraphs (p|source|note|warning|fixme), lists (ol|ul|dl), table, + figure|anchor are allowed inside definition lists (dd) and tables (td + and dh). +
  • + +
  • + Inline content + (strong|em|code|sub|sup|br|img|icon|acronym|link|jump|fork) is + allowed in strong and em. +
  • + +
+
+ +
Modified: forrest/site/dtdx/document-v20.pdf URL: http://svn.apache.org/viewvc/forrest/site/dtdx/document-v20.pdf?view=diff&rev=526404&r1=526403&r2=526404 ============================================================================== Binary files - no diff available. Modified: forrest/site/dtdx/document-v20.pod URL: http://svn.apache.org/viewvc/forrest/site/dtdx/document-v20.pod?view=diff&rev=526404&r1=526403&r2=526404 ============================================================================== --- forrest/site/dtdx/document-v20.pod (original) +++ forrest/site/dtdx/document-v20.pod Sat Apr 7 01:27:00 2007 @@ -113,7 +113,7 @@ =over 4 -Use this to L to another document and go to the named anchor. This will open the new document in the same browser window. +Use this to L to another document and go to the named anchor. This will open the new document in the same browser window. =back @@ -291,9 +291,11 @@ | Text | This document as st | . | | | raight text. | By default, set to | | | | true, meaning that | - | | | this link will not | - | | | be shown. NOT YET | - | | | IMPLEMENTED. | + | | For additional info | this link will not | + | | rmation see the For | be shown. | + | | rest text-output pl | | + | | ugin. | | + | | | | +---------------------+---------------------+---------------------+ | document-v20.pod | This document as Pe | . | | | rl POD (Plain Old D | By default, set to | @@ -304,6 +306,12 @@ | | with perl installed | | | | , see "man perlpod" | | | | . | | + | | | | + | | For additional info | | + | | rmation see the For | | + | | rest pod-output plu | | + | | gin. | | + | | | | +---------------------+---------------------+---------------------+ Modified: forrest/site/dtdx/document-v20.xml URL: http://svn.apache.org/viewvc/forrest/site/dtdx/document-v20.xml?view=diff&rev=526404&r1=526403&r2=526404 ============================================================================== --- forrest/site/dtdx/document-v20.xml (original) +++ forrest/site/dtdx/document-v20.xml Sat Apr 7 01:27:00 2007 @@ -90,7 +90,7 @@
<a href="../index.html#status">
Use this to - link + link to another document and go to the named anchor. This will open the new document in the same browser window.
@@ -187,18 +187,22 @@ Text - This document as straight text. +

This document as straight text.

+

For additional information see the Forrest text-output + plugin.

<disable-txt-link>. By default, set to true, meaning - that this link will not be shown. NOT YET IMPLEMENTED. + that this link will not be shown. POD - This document as Perl POD (Plain Old Documentation). Text with - minimal formatting directives. If on a *nix system with perl - installed, see "man perlpod". +

This document as Perl POD (Plain Old Documentation). Text + with minimal formatting directives. If on a *nix system with perl + installed, see "man perlpod".

+

For additional information see the Forrest pod-output + plugin.

<disable-pod-link>. By default, set to true, meaning that this link will not be shown.