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/slop/samples sitemap.xmap welcome.xml
Date Tue, 14 Oct 2003 11:57:44 GMT
bdelacretaz    2003/10/14 04:57:44

  Modified:    src/blocks/slop/samples sitemap.xmap welcome.xml
  Log:
  javateach sample - poor man's literate programming tool
  
  Revision  Changes    Path
  1.4       +29 -0     cocoon-2.1/src/blocks/slop/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/slop/samples/sitemap.xmap,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- sitemap.xmap	26 Sep 2003 14:42:36 -0000	1.3
  +++ sitemap.xmap	14 Oct 2003 11:57:43 -0000	1.4
  @@ -21,6 +21,35 @@
         </map:match>
   
           <!--
  +            Javateach: minimal literate programming system where java classes
  +            are output as nice HTML pages, mixing teaching comments and code
  +        -->
  +        <map:match pattern="javateach/**/*.java">
  +            <map:read src="javateach/java-source/{1}/{2}.java" mime-type="text/plain"/>
  +        </map:match>
  +
  +        <map:match pattern="javateach/**/*.css">
  +            <map:read src="javateach/{2}.css" mime-type="text/css"/>
  +        </map:match>
  +
  +        <map:match pattern="javateach/**/*.xml">
  +            <map:generate type="slop" src="javateach/java-source/{1}/{2}.java">
  +                <map:parameter name="encoding" value="iso-8859-1"/>
  +                <map:parameter name="preserve-space" value="true"/>
  +                <map:parameter name="valid-tagname-chars" value="/-_"/>
  +            </map:generate>
  +            <map:serialize type="xml"/>
  +        </map:match>
  +
  +        <map:match pattern="javateach/**/*.html">
  +            <map:generate src="cocoon:/javateach/{1}/{2}.xml"/>
  +            <map:transform src="javateach/jt-to-html.xsl">
  +                <map:parameter name="pageTitle" value="{1}/{2}.java"/>
  +            </map:transform>
  +            <map:serialize type="html"/>
  +        </map:match>
  +
  +        <!--
               use the same pipeline for rfc822 and tc for now, they can later
               be separated to use different configurations of the SlopParser
           -->
  
  
  
  1.3       +13 -1     cocoon-2.1/src/blocks/slop/samples/welcome.xml
  
  Index: welcome.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/slop/samples/welcome.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- welcome.xml	7 Aug 2003 08:07:06 -0000	1.2
  +++ welcome.xml	14 Oct 2003 11:57:43 -0000	1.3
  @@ -13,10 +13,22 @@
           </note>
       </group>
   
  +    <group name="Javateach - simple literate programming">
  +        <sample name="SomeTest.html" href="javateach/org/nothing/SomeTest.html">
  +            HTML page, mixing teaching comments with source code
  +        </sample>
  +        <sample name="SomeTest.java" href="javateach/org/nothing/SomeTest.java">
  +            original source file
  +        </sample>
  +        <sample name="SomeTest.xml" href="javateach/org/nothing/SomeTest.xml">
  +            SlopGenerator output
  +        </sample>
  +    </group>
  +
       <group name="Email parsing using SLOP">
           <sample name="email-example.txt" href="email-example.txt">
               original source file
  -        </sample>    
  +        </sample>
           <sample name="email-example.xml" href="rfc822/email-example.xml">
               XML result of parsing an RFC 822 message
           </sample>
  
  
  

Mime
View raw message