cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: How to make custom XSP-like language??
Date Mon, 10 Jun 2002 14:01:38 GMT
> From: Justin Fagnani-Bell [mailto:justin@paraliansoftware.com]
> 
> Vadim,
> 
>    I'm having a problem getting my new language to work. I created my
own
> MarkupLanguage class, core-logicsheet, and added this to my
cocoon.xconf:
> 
>    <markup-languages>
>       <component-instance
class="com.company.package.XKOMarkupLanguage"
> name="xko">
>         <parameter name="prefix" value="xko"/>
>         <parameter name="uri" value="http://company.com/xko"/>
>         <target-language name="java">
>           <parameter name="core-logicsheet"
> value="resource://com/company/package/xko.xsl"/>
>         </target-language>
>       </component-instance>
> 
> and I'm getting this exception:
> 
> markup-languages: ComponentSelector could not access the Component for
> hint: xko

Can Cocoon access this class, com.company.package.XKOMarkupLanguage? It
(and all supporting classes) should be in the WEB-INF/lib or
WEB-INF/classes.

Try Class.forName("com.company.package.XKOMarkupLanguage") in any XSP
page.


> Any ideas? Does the name attribute for <component-instance> set the
> hint? If so then is my component not getting set for the right role? I
> don't know how that's done in Avalon, but I assume it's
> MarkupLanguage.ROLE that's used.

Yes.

Vadim 


> ProgramGeneratorImpl.java is what is causing the exception with this
> line:
> 
> markupLanguage =
> (MarkupLanguage)this.markupSelector.select(markupLanguageName);
> 
> Any help is appreciated,
>    Justin
> 
...


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


Mime
View raw message