You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2005/09/19 10:34:42 UTC

svn commit: r290091 - /lenya/docu/src/documentation/content/xdocs/1_2_x/how-to/faq.xml

Author: andreas
Date: Mon Sep 19 01:34:38 2005
New Revision: 290091

URL: http://svn.apache.org/viewcvs?rev=290091&view=rev
Log:
Added FAQ entry about custom logicsheets

Modified:
    lenya/docu/src/documentation/content/xdocs/1_2_x/how-to/faq.xml

Modified: lenya/docu/src/documentation/content/xdocs/1_2_x/how-to/faq.xml
URL: http://svn.apache.org/viewcvs/lenya/docu/src/documentation/content/xdocs/1_2_x/how-to/faq.xml?rev=290091&r1=290090&r2=290091&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/1_2_x/how-to/faq.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/1_2_x/how-to/faq.xml Mon Sep 19 01:34:38 2005
@@ -160,7 +160,13 @@
               let me insert a &lt;h1&gt; heading?</a></li>
             </ol>
           </li>
-        </ol>
+         <li>
+           <a href="#customization">Customization</a> 
+           <ol>
+             <li><a href="#customlogicsheets">How to Add Custom Logicsheets?</a></li>
+           </ol>
+         </li>
+       </ol>
 <section><title id="head-5db5277b98942661b1969971b6efc9174422a105">Errors</title>
         </section><section><title id="head-0373b4b0a56b6bc690e427f6fb5f2735d7069b27">I get an error or an
         exception, where can I look at, what should I do?</title>
@@ -451,6 +457,26 @@
         a &lt;h1&gt; heading?</title>
         <p>This is a setting in <em>lenya/lenya/resources/misc/bxeng/contextmenu.xml</em>
         - all tags appearing there cannot be inserted by the BXE popup menu.</p>
+        </section>
+        <section>
+          <title id="customization">Customization</title>
+        </section>
+        <section>
+          <title id="customlogicsheets">How to Add Custom Logicsheets?</title>
+          <p>Custom logicsheets can be put in <code>&lt;yourpub&gt;/java/src</code>.</p>
+          <p>You have to add a patch file for <code>cocoon.xconf</code>, for instance <code>&lt;yourpub&gt;/config/logicsheets.xconf</code>:</p>
+<source xml:space="preserve"><![CDATA[<xconf xpath="/cocoon/markup-languages/xsp-language/target-language[@name = 'java']"
+       unless="/cocoon/markup-languages/xsp-language/target-language[@name = 'java']/builtin-logicsheet[parameter[@name = 'prefix' and @value = 'mylogicsheet']]">
+
+  <builtin-logicsheet>
+    <parameter name="prefix" value="mylogicsheet"/>
+    <parameter name="uri" value="http://foo/bar/mylogicsheet"/>
+    <parameter name="href" value="resource://org/myproject/mylogicsheet.xsl"/>
+  </builtin-logicsheet>
+
+  ... (more logicsheets)
+
+</xconf>]]></source>
         </section>
    </body>
 </document>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org