cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/chaperon/samples/wikitest selftest.txt
Date Wed, 26 Mar 2003 17:31:29 GMT
bdelacretaz    2003/03/26 09:31:29

  Modified:    src/blocks/chaperon/samples sitemap.xmap
               src/blocks/chaperon/samples/misc samples.xml
  Added:       src/blocks/chaperon/samples/wikitest selftest.txt
  Log:
  self-describing test of the wiki grammar added
  
  Revision  Changes    Path
  1.3       +9 -0      cocoon-2.1/src/blocks/chaperon/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/chaperon/samples/sitemap.xmap,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sitemap.xmap	25 Mar 2003 17:10:36 -0000	1.2
  +++ sitemap.xmap	26 Mar 2003 17:31:28 -0000	1.3
  @@ -184,6 +184,15 @@
       <map:serialize type="html"/>
      </map:match>
   
  +    <map:match pattern="wikitest/*.html">
  +    <map:generate src="wikitest/{1}.txt"/>
  +    <map:transform type="lexer"   src="cocoon:/wiki.xlex"/>
  +    <map:transform type="parser"  src="cocoon:/wiki.xgrm"/>
  +    <map:transform                src="stylesheets/wiki2xdoc.xsl"/>
  +    <map:transform                src="stylesheets/xdoc2html.xsl"/>
  +    <map:serialize type="html"/>
  +   </map:match>
  +
      <map:match pattern="quote.html">
       <map:generate type="text" src="misc/quote.txt"/>
   <!--
  
  
  
  1.4       +5 -2      cocoon-2.1/src/blocks/chaperon/samples/misc/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/chaperon/samples/misc/samples.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- samples.xml	20 Mar 2003 05:31:29 -0000	1.3
  +++ samples.xml	26 Mar 2003 17:31:29 -0000	1.4
  @@ -11,10 +11,13 @@
     </sample>
    </group>
   
  - <group name="Wiki example">
  -  <sample name="Wiki" href="wiki.html">In this example the parser is used
  + <group name="Wiki examples">
  +  <sample name="Wiki editor" href="wiki.html">In this example the parser is used
      to build an online editor,
      which is based on the very popular syntax of Wiki.
  +  </sample>
  +  <sample name="Wiki self-test" href="wikitest/selftest.html">
  +  	A self-describing document that demonstrates and tests the Wiki grammar.
     </sample>
    </group>
   
  
  
  
  1.1                  cocoon-2.1/src/blocks/chaperon/samples/wikitest/selftest.txt
  
  Index: selftest.txt
  ===================================================================
  This wiki document is a self-describing test of the Cocoon Chaperon wiki grammar. Reading
what follows 
  should tell you if the tests are successful.
  
  The page http://wiki.cocoondev.org/Wiki.jsp?page=ChaperonTestPage should be kept in sync
with this so as
  to be able to compare the output of both, as the Chaperon wiki grammar is meant to emulate
the JSPWiki syntax
  used by the Cocoon wiki.
  
  Lines like -- THIS TEXT -- are comments about this test, they must appear as is.
  
  -- 1.TITLES --
  
  ! Test 1.1 Small heading
  
  !! Test 1.2 Medium-sized heading
  
  !!! Test 1.3 Big heading
  
  -- 2.NUMBERED LISTS --
  
  Test 2.1 This should be followed by a list that counts from one to four:
  # one
  #  two
  # three
  #four
  
  -- 3.BULLET LISTS --
  
  Test 3.1 This should be followed by four bullet points:
  * Bullet one
  * Bullet two
  * Bullet three with a longer text, something like the quick brown fox stuff that you know
and like
  * Bullet four, last one
  
  -- 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 a link to this same page: [selftest.html]
  
  Test 5.2 Link to cocoon.apache.org: [http://cocoon.apache.org]
  
  -- 6.MISCELLANEOUS --
  
  Test 6.1 This paragraph should be followed by a horizontal ruler line.
  ----
  
  Test 6.2 There should be a line break between the words one and two that follow: 
  
  ONE\\TWO.
  
  
  
  

Mime
View raw message