cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dperez <craquer...@yahoo.es>
Subject Re: Register a new trax transformer in Cocoon 2.2
Date Wed, 05 Dec 2007 09:47:02 GMT

There is one additional step:

place this in sitemap.xmap (I use 'map' as the default namespace):

  <components>
    <transformers>
      <transformer name="saxon"
src="org.apache.cocoon.transformation.TraxTransformer">
        <xslt-processor-role>saxon</xslt-processor-role>
      </transformer>
    </transformers>
  </components>

Now it works! :-)


dperez wrote:
> 
> Thanks Grzegorz for you answer.
> 
> Several observations:
> 
> 1) Latest version of Saxon is 9.0, but in Maven only available version
> 8.7.  Can I use whatever version I desire?
> 2) I place the cocoon-core-xslt-saxon.xconf in META-INF/cocoon/avalon
> 3) I receive this error:
> 
> javax.servlet.ServletException:
> org.apache.avalon.framework.configuration.ConfigurationExc
> eption: Type 'saxon' does not exist for 'map:transform' at
> file:///C:/develop/cocoon/crawl
> er/./src/main/resources/COB-INF/sitemap.xmap:18:62
>         at
> org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:232)
>         at
> org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:64)
> 
> So, there isn't any valid transformer of type=saxon
> 
> 
> Grzegorz Kossakowski-3 wrote:
>> 
>> Hello David,
>> 
>> dperez pisze:
>>> This link gives some valuable information:
>>>   http://cocoon.apache.org/2.2/core-modules/core/2.2/1258_1_1.html
>>> but still need more light.
>> 
>> This link should help you:
>> http://article.gmane.org/gmane.text.xml.cocoon.user/62785
>> 
>> If you could report back whether this instructions work I would be
>> grateful.
>> 
>> -- 
>> Grzegorz Kossakowski
>> Committer and PMC Member of Apache Cocoon
>> http://reflectingonthevicissitudes.wordpress.com/
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Register-a-new-trax-transformer-in-Cocoon-2.2-tf4943989.html#a14168068
Sent from the Cocoon - Users mailing list archive at Nabble.com.


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


Mime
View raw message