Hi all,

I'd like to use Saxon (9HE) for XSLT processing in Apache Cocoon (2.2). I've 
followed the instructions for using Saxon from 
http://wiki.apache.org/cocoon/Saxon. These instructions describe the process 
using an .xconf file, which is no longer the preferred method of Cocoon 
configuration (as described at 
http://cocoon.apache.org/2.2/core-modules/core/2.2/1259_1_1.html), though that 
page also notes that legacy .xconf configuration is still supported.

I've tried placing the core.xslt-processor configuration at 
WEB-INF/cocoon.xconf (as described in the Saxon instructions), at 
WEB-INF/cocoon/xconf/saxon-xslt.xconf (as described in the Cocoon config page 
linked above), and at META-INF/cocoon/saxon-xslt.xconf. In each case, I get the 
error:

org.apache.avalon.framework.service.ServiceException: Component with 
'org.apache.excalibur.xml.xslt.XSLTProcessor/saxon' is not defined in this 
service manager. (Key='AvalonServiceManager')

I've placed saxon9he.jar in WEB-INF/lib, and have tried removing its META-INF 
directory as described in the Saxon instructions. I have restarted my servlet 
container (Jetty) for each case.

I'm a Java amateur, so it's certainly possible I'm missing some basic step. I 
should also note that I'm using Cocoon in the context of the DSpace system, so 
it's possible that DSpace is configured to ignore my .xconf files.

However, it seems like there should be a way to specify the Saxon processor 
using Spring config or a .properties file, but I haven't found any instructions 
for doing so online (they all specify the .xconf configuration process).

Any thoughts? Thanks!

Also asked at: 
http://stackoverflow.com/questions/22483436/using-saxon9-for-xslt-with-apache-cocoon-2-2

Jacob Brown
Digital Services Librarian
j.h.br...@tcu.edu
817-257-5339

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to