cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <>
Subject RE: clueless newbie attempting Saxon, xslt2
Date Thu, 23 Jul 2009 08:03:17 GMT
By the way...

I was just scanning those instructions... I think if you followed them
up you should at least change following line
                <map:transform src="home.xsl" type="xslt2"/>
                <map:transform src="home.xsl" type="saxon"/>


-----Original Message-----
From: Robby Pelssers [] 
Sent: Thursday, July 23, 2009 9:57 AM
Subject: RE: clueless newbie attempting Saxon, xslt2

Hi Michael,

I attached 2 screenshots of documentation I wrote for myself. (for
Cocoon2.2)  If you read both you should understand how to configure
cocoon2.2 for Saxon

Robby Pelssers

-----Original Message-----
From: Michael Jinks []
Sent: Thursday, July 23, 2009 3:37 AM
Subject: clueless newbie attempting Saxon, xslt2

I'm a Unix admin who's been asked to set up Cocoon+Saxon9 on Tomcat,
without knowing much at all about any of the above, so this is a pretty
clueless plea for help.

After a lot of flailing with documentation aimed at people using
Maven/Jetty, I found and followed some kind soul's instructions, here:

(Click through the redirect defeat message if you want to see the crib
sheet I'm working from.)

I have Saxon 9 built, and its .jar files copied into the Cocoon
WEB-INF/lib directory.

I have the user's application (is that the right term?  directory full
of of .xsl files, couple of .css and .xml files, and a sitemap.xmap)
copied into a subdirectory under the Cocoon root, currently named

Their sitemap.xmap file consists of a lot of sections that look like
this one:

            <map:match pattern="home">
                <map:generate src="bulgarian_atlas.xml" type="file"/>
                <map:transform src="home.xsl" type="xslt2"/>
                <map:serialize type="html"/>

Trying to browse to the root of that directory yields an error:

org.apache.avalon.framework.configuration.ConfigurationException: Type
'xslt2' is not defined for 'transform' at
context://xslt2-test/sitemap.xmap - 13:61

Time for more flailing: I did a find/grep looking for (type="xslt2")
anywhere under the cocoon directory and didn't find anything, but I did
find some references to (type="xslt"), so I tried a search-and-replace
in the user's sitemap.xmap, changing all instances of type="xslt2" to
type="xslt".  That, at least, changed the error:

org.apache.cocoon.ResourceNotFoundException: No pipeline matched
request: xslt2-test/
<map:mount> - context://sitemap.xmap - 1067:92

...but when I google for the "no pipeline matched" error it seems like a
very general thing, and I don't have any idea where to go next in
debugging this.

Is there some general set of instructions, maybe, for getting XSLT2
working under Cocoon/Saxon9 (ideally on Tomcat)?  I thought that the
whole point behind Saxon was to process XSLT2, so maybe I don't really
have Saxon working after all...?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message