> From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]] > > Thanks for the quick reply Vadim. > > I'm pretty confused by the difference in the cocoon.xconf files that > come with the Cocoon instalation and the file in the documentation and > your example in this email.
What documentation? <snip/> > > Here is the snippet from cocoon.xconf: This snippet goes into <markup-languages>: <markup-languages> ... stuff from stock cocoon.xconf ... </sitemap-language> > > <component-instance > > class="org.apache.cocoon.components.language.markup.myxsp. > > MyXSPMarkupLanguage" name="myxsp" logger="core.markup.myxsp"> > > <parameter name="prefix" value="myxsp"/> > > <parameter name="uri" value="http://my.org/myxsp"/> > > <target-language name="java"> > > <parameter name="core-logicsheet" > > value="resource://org/my/myxsp/java/myxsp.xsl"/> > > </target-language> > > </component-instance> </markup-languages> > This snippet seems match the cocoon.xconf in the online documentation, > but not the cocoon.xconf file that's packaged with the 2.0.2 installer. What do you mean? > Will this still work? Yes. > Why are the cocoon.xconf files different? > > By the cocoon.xconf in the documentation I assume I would place this > snippet in the component element with the role of > MarkupLanguageSelector. In the cocoon.xconf file that's packed with > cocoon 2 I don't know quite where to place it. I would think that a new > markup language definition would go inside the markup-languages element, > but nowhere in this file are there general component, or > component-instance definitions. > > I'd love some clarification on this. You will have to study Avalon to get deeper knowledge of syntax of xconf file. In short, you can use either <component-instance> tag or <myothertag>, but latter must be defined then in the cocoon.roles file (inside cocoon.jar). Vadim > Thanks, > Justin > > > If you don't need changes in XSPMarkupLanguage, you can use it instead > > of writing MyXSPMarkupLanguage. > > > > In sitemap.xmap: > > > > <map:generator name="myxsp" ... > > src="org.apache.cocoon.generation.ServerPagesGenerator"> > > <markup-language>myxsp</markup-language> > > </map:generator> > > > > That's it. > > > > > > Vadim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]