The Apache Software Foundation is proud to present...Version: 2.1.9

Wiki example

Edit  Source  back  Orthogonal views: Content   Pretty content   Links

KNOWN PROBLEMS

This wiki document is a self-describing test of the Cocoon Chaperon cwiki grammar. Comparing what follows should show you that the tests are successful.

The document in the Cocoon Samples is at: src/blocks/chaperon/samples/wiki/selftest.txt

The document in the JSPWiki is at: http://www.jspwiki.org/Wiki.jsp?page=ChaperonTestPage

Both documents should be synchronised, so as to be able to compare the output of both, as the Chaperon wiki grammar is meant to emulate the JSPWiki syntax.

In the Cocoon Samples, the "content", "parser-output" and "xdoc" views can be used to check the various stages of parsing and conversion.

Lines like -- THIS TEXT -- are comments about this test, they must appear as is.

--------------------------------------------------------------------------------

-- 0. CURRENT RESULTS --

This must be followed by a section title and a bullet list with some items.

KNOWN PROBLEMS

Currently this test shows the following problems:

-- 1. HEADINGS --

Test 1.1 headings in the usual order (from big to small): below you should see 3 headings, big, medium, small:

big heading #1

medium heading #1

small heading #1

Test 1.2 same headings with text in between

big heading #2

Text after big heading.

medium heading #2

Text after medium heading.

small heading #2

Text after small heading.

new big heading

The above heading starts a new section in the xdocs version of this document.

-- 2. NUMBERED LISTS --

Test 2.1 This should be followed by a list that counts from one to four:

  1. one
  2. two
  3. three
  4. four

Test 2.2 This should have indentation depths of 1, 2, 3, 2, 1

  1. one
    1. two
      1. three
    2. two
  2. one

-- 3. BULLET LISTS --

Test 3.1 This should be followed by four bullet points:

Test 3.2 This should be followed by two bullet points with one line of text in between:

Test 3.3 This should be followed by 4 bullet points with no text in between them:

Test 3.4 This should have indentation depths of 1, 2, 3, 2, 1

-- 4. TEXT ATTRIBUTES --

Test 4.1 The words bold , italic and {{monospaced }} in this phrase should be displayed with the corresponding attributes.

Test 4.2 In test 4.1 all words of the phrase should be followed by a space.

Test 4.3 Same as 4.1 but words with attributes are repeated twice: bold bold , italic italic and {{monospaced monospaced }} .

Test 4.4 The block of text that follows should be shown in the source code style:

	boolean didThisWork() {
	  return !failed();
	}

-- 5. LINKS --

Test 5.1 Here is a link to this same page: wikitest.html

Test 5.2 Link to cocoon.apache.org: http://cocoon.apache.org/

Test 5.3 A link to another wiki page Text formatting rules.

-- 6. MISCELLANEOUS --

Test 6.1 This paragraph should be followed by a horizontal rule line.

--------------------------------------------------------------------------------

Test 6.2 There should be a line break between the words one and two that follow:

ONE
TWO.

-- 7. TEXT RUNS --

Test 7.1 In this paragraph all words should be followed by a single space.

-- 8. TABLES --

Test 8.1 Table with header

Header 1 Header 2
data more data
foo bar
abc 123

Test 8.2 Table without header

asdf asdf asdf
fdsa qwer 789
yuiop zxcv 00001

Test 8.3 Table without spaces around pipe delimiters

asdf|asdf|asdf
fdsa|qwer|789
yuiop|zxcv|00001