cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robby Pelssers <>
Subject RE: beginner q: possible to set extension .xsl as type='xslt' by default?
Date Tue, 16 Oct 2012 14:17:01 GMT
This is however not a C2.2. specific issue.

Let me explain how C2.2 works.

Assume you have the following structure
                                - input.xml

In your sitemap you can now do
      <map:match pattern="test">
        <map:generate src="data/input.xml"/>
        <map:transform src="xslt/transform1.xsl"/>
       < !—
         you can add another transformer here or you can include it in transform1.xsl  by
using a relative path to current xslt   <xsl:include href="transform2.xsl"/>
        <map:transform src="xslt/transform2.xsl"/>
        <map:serialize type="xml"/>

Hope this gets you started,

From: Jos Snellings []
Sent: Tuesday, October 16, 2012 4:10 PM
Subject: Re: beginner q: possible to set extension .xsl as type='xslt' by default?

Dear Tom,

Can you send your sitemap.xmap over?
For cocoon, the default transformation is an xslt.

If you are just starting with a migration, you may want to consider using cocoon 3, which
is at the moment in beta,
but soon the production version will be ready (@others: isn't it ? :-)

Kind regards,

On Tue, Oct 16, 2012 at 3:55 PM, whatnext <<>>

Dear learned cocoon users,

Very sorry for the ignorance of this question. Our company has recently
decided it might be time to move away from AxKit (!) and we are looking at
the alternatives. Cocoon is an obvious choice. However, I know absolutely
nothing about it other than a broad idea of what it does.

I have been trying to get Cocoon to serve some of our pages to see whats

I followed the instructions at
and sure enough could display the welcome page.

Next up I tried to display one of our web pages by copying over an .xml and
related .xsl stylesheets and modifying the sitemap.xmap file.

So then it falls over saying:

Unable to get transformer handler for file:///path/example.xsl<file:///\\path\example.xsl>

If I go into sitemap.xmap and add type="xslt" to the <map:transform src =
'...'> line then this error seems resolved but then it falls over with

Unable to get transformer handler for file:///path/another.xsl<file:///\\path\another.xsl>

where another.xsl is referred to by example.xsl. What can be done in this
case? Is there a way of telling cocoon that it needs to use the xslt
transformer anywhere it sees .xsl... ? Or am i approaching this in all the
wrong way etc.?

Many apologies for the elementary nature of this question - I freely admit I
have no idea what I am doing!

Any help appreciated...

View this message in context:
Sent from the Cocoon - Users mailing list archive at

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

All generous minds have a horror of what are commonly called "Facts". They are the brute beasts
of the intellectual domain.
-- Thomas Hobbes

View raw message