cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject [PATCH] faq.xml fix
Date Fri, 12 Oct 2001 07:25:28 GMT
This fixes the width of the page, when the patch to faq2document.xsl
is applied.


diff -u -r1.2 faq.xml
--- faq.xml	2001/10/12 05:14:52	1.2
+++ faq.xml	2001/10/12 07:18:34
@@ -110,8 +110,8 @@
 <init-param>
  <param-name>load-class</param-name>
  <param-value>
-   <!-- comma or whitespace separated list of fully qualified class names
-       to load on startup.
+   <!-- comma or whitespace separated list of fully qualified
+       class names to load on startup.
    -->
    oracle.jdbc.driver.OracleDriver
  </param-value>
@@ -211,25 +211,20 @@
    In cocoon.xconf you can specify your my.roles file as follows:
   </p>
 <source>
-  <![CDATA[
-   ...
-   <cocoon version="2.0" user-roles="WEB-INF/my.roles">
-   ...
-  ]]>
+<![CDATA[...
+<cocoon version="2.0" user-roles="WEB-INF/my.roles">
+...]]>
 </source>
   <p>
    And create a new file my.roles in WEB-INF directory with
-  </p>
-<source>
-  <![CDATA[
-   <?xml version="1.0"?>
-   <role-list>
-   <role name="org.apache.cocoon.components.jsp.JSPEngine"
-       shorthand="jsp-engine"
-       default-class="org.apache.cocoon.components.jsp.JSPEngineImplWLS"/>   
-   </role-list>
-  ]]>
-</source>
+</p>
+<source><![CDATA[<?xml version="1.0"?>
+<role-list>
+  <role name="org.apache.cocoon.components.jsp.JSPEngine"
+    shorthand="jsp-engine"
+    default-class="org.apache.cocoon.components.jsp.JSPEngineImplWLS"/>   
+</role-list>
+]]></source>
  </answer>
 </faq>
 <faq>
@@ -337,11 +332,9 @@
  <answer>
    <p>
      The sql samples are working when deploing the war file using the build system:
-       <code>
-./build.sh \
+      <source><![CDATA[./build.sh \
    -Dinclude.webapp.libs=yes \
-   -Dinstall.war=path/to/tomcat/webapps install
-       </code>
+   -Dinstall.war=path/to/tomcat/webapps install]]></source>
      This command will take care of the path inside the configuration file to the database
resources.
    </p>
  </answer>
@@ -378,16 +371,12 @@
   <p>Before the action was added to the pipeline it worked fine. After
   the change Apache Cocoon seems not to find the file specified in the
   variable that is returned by the matcher.</p>
-<source>
-<![CDATA[
-<map:match pattern="*">
+<source><![CDATA[<map:match pattern="*">
   <map:act type="validate-session">
     <map:generate type="serverpages" src="{../1}.xsp"/>
   </map:act>
   <map:serialize/>
-</map:match>
-]]>
-</source>
+</map:match>]]></source>
   <p>Please note in the above example the
   "<em><code>../1</code></em>".</p> 
   <p>Map objects returned from matchers, actions etc. are organised
@@ -443,10 +432,8 @@
    <p>It is highly recommended to use the logging option of mod_rewrite, in
      order to check the correctness of the URI rewriting; just add this lines
      to the httpd.conf:</p>
-   <source>
-RewriteLog "C:/logs/rewrite.log"
-RewriteLogLevel 9
-   </source>
+   <source>RewriteLog "C:/logs/rewrite.log"
+RewriteLogLevel 9</source>
    <p>The first line tells Apache to put the URI rewriting log in the
      c:\logs\rewrite.log file (which happens to be on a Windows system, of
      course). The second one tells Apache to record everything mod_rewrite
@@ -485,15 +472,11 @@
      location on the file system, rather than under the deafult cocoon context.
    </p>
    <p>Here's the sitemap.xmap fragment used to do this:</p>
-   <source>
-   <![CDATA[
-<map:pipeline>
+   <source><![CDATA[<map:pipeline>
  <map:match pattern="foo/**">
   <map:mount uri-prefix="foo" src="file:///c:/foo/"/>
  </map:match>
-</map:pipeline>
-   ]]>
-   </source>
+</map:pipeline>]]></source>
    <p>The "file:" type of source forces Apache Cocoon to search the sub-sitemap under
      the specified directory (which happens to be "c:\foo", since this is a
      Windows system).
@@ -512,9 +495,7 @@
     <p>
       You need to use mod_jk. Add the following line to <code>%APACHE_HOME%\conf\httpd.conf</code>

     </p>
-    <source>
-    JkMount /cocoon/* ajp12
-    </source>
+    <source>JkMount /cocoon/* ajp12</source>
     <p>
     along with other directives that are already listed in mod_jk.conf-auto
     in the tomcat/conf directory. The the above directives can be added at the 
@@ -534,15 +515,12 @@
     <p>
     Step #1: Add the following lies to to httpd.conf.
     </p>
-    <source>
-<![CDATA[
-RewriteEngine On
+    <source><![CDATA[RewriteEngine On
 RewriteLog "/var/log/rewrite.log"
 RewriteLogLevel 0
 RewriteRule ^/Foo /cocoon/Foo/ [R]
 RewriteRule ^/Foo(.*) /cocoon/Foo$1 [R]
-]]>
-    </source>
+]]></source>
     <p>
     The file rewrite.log does not have to be located in <code>/var/log</code>.
For 
     instance, under Windows NT other locations may be appropriate. The 
@@ -550,13 +528,10 @@
     essentially a redirect, so that Foo becomee <code>/cocoon/Foo/</code> with
the 
     trailing <code>/</code>, without it the request would not map onto
     </p>
-    <source>
-<![CDATA[
-<map:match pattern="">
+    <source><![CDATA[<map:match pattern="">
    <map:redirect-to uri="welcome" />
 </map:match>
-]]>
-    </source>
+]]></source>
     <p>
     when you I request <code>http://your.server.org/Foo</code>.
 
@@ -564,11 +539,7 @@
     The original suggestion by Luca was a single line entry (that replaces 
     both RewriteRules above) according to:
     </p>
-    <source>
-<![CDATA[
-RewriteRule Foo/(.*) /cocoon/Foo/$1 [PT]
-]]>
-    </source>
+    <source><![CDATA[RewriteRule Foo/(.*) /cocoon/Foo/$1 [PT]]]></source>
     <note>
     This did not work in my case (Slackware Linux with Apache1.3, 
     tomcat3.2.2, Apache Cocoon). Again, these RewriteRules may vary somewhat 
@@ -577,16 +548,12 @@
     <p>
     Step #2: Add to the sitemap.xmap in the cocoon directory.
     </p>
-    <source>
-<![CDATA[
-<map:pipeline>
-    <map:match pattern="Foo/**">
-      <map:mount uri-prefix="Fru" src="/www/Foo/"
-                 check-reload="yes" reload-method="synchron"/>
-    </map:match>
-</map:pipeline>
-]]>
-    </source>
+    <source><![CDATA[<map:pipeline>
+  <map:match pattern="Foo/**">
+    <map:mount uri-prefix="Fru" src="/www/Foo/"
+               check-reload="yes" reload-method="synchron"/>
+  </map:match>
+</map:pipeline>]]></source>
     <p>
     Here, <code>/www/Foo</code> is a some directory on the local file system
where the 
     xml, xsp, .., files of the application Foo live.
@@ -608,13 +575,10 @@
     variable to one, then try out xvfb. xvfb gives you an 'in-memory'
     xserver, which doesn't require any display hardware to run.
     </p>
-    <source>
-<![CDATA[
-$> Xvfb :1 -screen 0 800x600x8 &
+    <source><![CDATA[$> Xvfb :1 -screen 0 800x600x8 &
 $> export DISPLAY=:1
 $> $TOMCAT_HOME/bin/startup.sh -f server.xml
-]]>
-    </source>
+]]></source>
   </answer>
 </faq>
 <faq>
@@ -628,11 +592,9 @@
     localhost:8000 using "<code>jdb -attach myhost:8000</code>" More information
can be found at 
     <link href="http://java.sun.com/j2se/1.3.0/docs/guide/jpda/conninv.html">JPDA -
Connection and Invocation Details</link>.
     </p>
-    <source>
-<![CDATA[
-set TOMCAT_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

-]]>
-    </source>
+    <source><![CDATA[set TOMCAT_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE
\
+    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 
+]]></source>
     <note>
     This method is supposed to work under JBuilder4.0 as well.
     </note>


Greetings,
-- 
Ovidiu Predescu <ovidiu@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://sourceforge.net/users/ovidiu/ (my SourceForge page)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message