This is however not a C2.2. specific issue.
Let me explain how C2.2 works.
Assume you have the following structure
COB-INF
-data
- input.xml
-xslt
-transform1.xsl
-transform2.xsl
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"/>
</map:match>
Hope this gets you started,
Robby
From: Jos Snellings [mailto:[email protected]]
Sent: Tuesday, October 16, 2012 4:10 PM
To: [email protected]
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,
Jos
On Tue, Oct 16, 2012 at 3:55 PM, whatnext
<[email protected]<mailto:[email protected]>> wrote:
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
involved.
I followed the instructions at http://cocoon.apache.org/2.2/1159_1_1.html
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:
http://old.nabble.com/beginner-q%3A-possible-to-set-extension-.xsl-as-type%3D%27xslt%27-by-default--tp34563508p34563508.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]<mailto:[email protected]>
For additional commands, e-mail:
[email protected]<mailto:[email protected]>
--
All generous minds have a horror of what are commonly called "Facts". They are
the brute beasts of the intellectual domain.
-- Thomas Hobbes