shannon 2002/06/02 18:18:57 Added: src/documentation/xdocs/faq faq-xsp.xml Log: Add faq file for XSP. Used one of Vadim's helpful answers from cocoon-users to serve as initial content. Revision Changes Path 1.1 xml-cocoon2/src/documentation/xdocs/faq/faq-xsp.xml Index: faq-xsp.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE faqs PUBLIC "-//APACHE//DTD FAQ V1.0//EN" "../dtd/faq-v10.dtd"> <faqs title="XSP FAQs"> <faq> <question> How can I turn my XSPs into Generators to get better performance? </question> <answer> <p>Cocoon will compile your XSP files into Java classes the first time they are requested. You can find them in your work directory, for example in tomcat/work/.../org/apache/cocoon/www/my_xsp.class. Once your XSP file is compiled, you can declare a new generator in your sitemap, for example:</p> <source><![CDATA[ <map:generator type="myXSP" src="org.apache.cocoon.www.my_xsp"/> ]]></source> <p>And then use it in a pipeline, for example: </p> <source><![CDATA[ <map:generate type="myXSP"/> ]]></source> </answer> </faq> </faqs>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]