Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8BBECDB17 for ; Tue, 16 Oct 2012 14:17:38 +0000 (UTC) Received: (qmail 91387 invoked by uid 500); 16 Oct 2012 14:17:38 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 91346 invoked by uid 500); 16 Oct 2012 14:17:38 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 91338 invoked by uid 99); 16 Oct 2012 14:17:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 14:17:38 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [57.67.164.70] (HELO be1ssnxpe2.nxp.com) (57.67.164.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Oct 2012 14:17:26 +0000 Received: from EU1RDCRDC1VW024.exi.nxp.com ([134.27.176.169]) by be1ssnxpe2.nxp.com (8.14.4/8.14.4) with ESMTP id q9GEH2Q9021399 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Tue, 16 Oct 2012 16:17:04 +0200 Received: from eu1rdcrdc1wx032.exi.nxp.com ([134.27.179.186]) by EU1RDCRDC1VW024.exi.nxp.com ([134.27.176.169]) with mapi; Tue, 16 Oct 2012 16:17:03 +0200 From: Robby Pelssers To: "users@cocoon.apache.org" Date: Tue, 16 Oct 2012 16:17:01 +0200 Subject: RE: beginner q: possible to set extension .xsl as type='xslt' by default? Thread-Topic: beginner q: possible to set extension .xsl as type='xslt' by default? Thread-Index: Ac2rqAD0MUciUCa/TtmM+VRQJZvtCwAAFy6g Message-ID: <927C66C0775CCA43B88EB1E3006614B31E55DD7C@eu1rdcrdc1wx032.exi.nxp.com> References: <34563508.post@talk.nabble.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_927C66C0775CCA43B88EB1E3006614B31E55DD7Ceu1rdcrdc1wx032_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_927C66C0775CCA43B88EB1E3006614B31E55DD7Ceu1rdcrdc1wx032_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable 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 < !=97 you can add another transformer here or you can include it in tran= sform1.xsl by using a relative path to current xslt --> Hope this gets you started, Robby From: Jos Snellings [mailto:jos.snellings@upperware.biz] Sent: Tuesday, October 16, 2012 4:10 PM To: users@cocoon.apache.org Subject: Re: beginner q: possible to set extension .xsl as type=3D'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 c= ocoon 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 > 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 ... If I go into sitemap.xmap and add type=3D"xslt" to the line then this error seems resolved but then it falls over with Unable to get transformer handler for 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: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org -- All generous minds have a horror of what are commonly called "Facts". They = are the brute beasts of the intellectual domain. -- Thomas Hobbes --_000_927C66C0775CCA43B88EB1E3006614B31E55DD7Ceu1rdcrdc1wx032_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

This is h= owever not a C2.2. specific issue.

 

Let me exp= lain how C2.2 works.

 

Assume you have the fol= lowing structure

COB-INF

=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 -data

= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 - input.xml

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -xslt<= /p>

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -transform1.xsl

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -transform2.xs= l

 =

In your sitemap you can now do <= /span>

=A0=A0=A0=A0=A0=A0<map:match patte= rn=3D"test">

= =A0=A0=A0=A0=A0=A0=A0 <map:generate src=3D"data/input.xml"/>= ;

=A0=A0=A0=A0= =A0=A0=A0 <map:transform src=3D"xslt/transform1.xsl"/>=

=A0=A0=A0=A0=A0=A0 < != =97

=A0=A0=A0=A0=A0=A0=A0= =A0 you can add another transformer here or you can include it in transform= 1.xsl=A0 by using a relative path to current xslt =A0=A0<xsl:include hre= f=3D"transform2.xsl"/>

=A0=A0=A0=A0=A0=A0=A0 <map:transform src=3D"xslt/transfor= m2.xsl"/>

=A0=A0 = =A0=A0=A0=A0=E0

=A0=A0=A0=A0=A0=A0=A0 <map:serialize type=3D"xml"/>

=A0=A0=A0=A0=A0 </map:mat= ch>

 

Hope this gets you started,=

Robby

 

Fr= om: Jos Snellings [mailto:jos.snellings@upperware.biz]
Sent: = Tuesday, October 16, 2012 4:10 PM
To: users@cocoon.apache.org
= Subject: Re: beginner q: possible to set extension .xsl as type=3D'x= slt' by default?

 = ;

Dear Tom,
Can you send your sitemap.xmap over?
For cocoon, the default transf= ormation 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 Tu= e, Oct 16, 2012 at 3:55 PM, whatnext <tom_gracey@yahoo.co.uk> wrote:<= /p>


Dear learned coc= oon users,

Very sorry for the ignorance of this question. Our compan= y 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.a= pache.org/2.2/1159_1_1.html
and sure enough could display the welcom= e page.

Next up I tried to display one of our web pages by copying o= ver 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.xs= l ...

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

Unable to get transformer handler= for file:///path/another.xsl
where another.xsl is referred to by example.xsl. What can be done in t= his
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 t= his question - I freely admit I
have no idea what I am doing!

Any= help appreciated...





<= br>
--
View this mes= sage in context: http://old.nabble.com/beginner-q%3A-possible-to-set-e= xtension-.xsl-as-type%3D%27xslt%27-by-default--tp34563508p34563508.html=
Sent from the Cocoon - Users mailing list a= rchive at Nabble.com.


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




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

= --_000_927C66C0775CCA43B88EB1E3006614B31E55DD7Ceu1rdcrdc1wx032_--