Steps I followed in running the Xform wizard-Howto tutorial

2002-11-16 Thread poornima ponnuswamy


I am trying to run the Xform wizard-how to tutorial
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard-3.html
and I am getting the exception "Resources no found".
These are the following steps I followed.
1. I created the "howto" folder in src\webapp\sample\xmlform (Should sample 
be mount?..But I couldn't find mount)
2.I copied the java files into the folder 
\src\java\org\apache\cocoon\samples\xmlform\howto
3.Then I copied the sitemap into the folder \src\webapp\samples\xmlform 
where I replaced the one initally
that came with the cocoon package with this one.

Then I build it and put the war file into webapps folder, and I get the 
"resources not found" exception
Can anyone please help me with this.

Thanks a lot,

poornima

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



Problem running the Xform wizard-Howto tutorial

2002-11-16 Thread poornima ponnuswamy
I am trying to run the Xform wizard-How to tutorial in
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
I get the resource not found error message. I copied
the sitemap.xmap file and pasted in the location
\src\webapp\samples\xmlform replacing the one initally
that came with the cocoon package. Am I right? Can
anyone help me with it
Thanks for the time

poorni

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: dynamic select boxes in XMLForms?

2002-11-16 Thread Ivelin Ivanov
You are welcome!


- Original Message -
From: "Josema Alonso" <[EMAIL PROTECTED]>
To: "Cocoon-Users" <[EMAIL PROTECTED]>
Sent: Saturday, November 16, 2002 3:21 PM
Subject: Re: dynamic select boxes in XMLForms?


> > Look closer at the demo and examine the itemset elements under the
select
> > elements.
> I see.  I'm sorry I didn't notice them before.
>
> It's working, thank you very much.
>
>
> > - Original Message -
> > From: "Josema Alonso" <[EMAIL PROTECTED]>
> > To: "Cocoon-Users" <[EMAIL PROTECTED]>
> > Sent: Thursday, November 14, 2002 12:35 PM
> > Subject: dynamic select boxes in XMLForms?
> >
> >
> > > Hi, all.
> > >
> > > I tried the XMLForm wizard demo where I see some select boxes created
> for
> > > processor, ram, servlet engine and java version elements in ths system
> > > information page.
> > >
> > > I see the values for those are hard coded in 'system.xml' and I want
to
> > > create a select box from a DOM Node. I got the following:
> > > 
> > >  
> > >   Description of the player type
> > >  
> > >  
> > >   Description of the recorder type
> > >  
> > > 
> > >
> > > I would like to create a select box (one of the dropdown type) and
have:
> > > 1.- value of every option element as the EquipmentType/@id
> > > 2.- text displayed of every option as the EquipmentType/Description
> > >
> > > I've tried with a xf:repeat with no luck. I also tried with just one
> > element
> > > but no luck either. I guess is something with the stylesheet. The
> > > 'xmlform2html.xsl' doesn't seem to check 'ref' attributes on option
> > > elements. I guess the solution will be the customization of that
> > stylesheet
> > > to my needs...am I right?
> > >
> > > Thanks.
> > >
> > >
> > > -
> > > Please check that your question  has not already been answered in the
> > > FAQ before posting. 
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: inserting doctype from xsl

2002-11-16 Thread Miles Elam
There's more than one doctype you could have for HTML.  Some folks may 
want to send HTML 3.2 with the appropriate header.

It would be possible to have all of the doctypes ready to go out of the 
box.  It would also mean a html32 serializer, a html4 serializer, a 
html401 serializer, etc. and that's not counting the 
transitional/strict/frameset qualifiers.

Seems a lot to have in the default sitemap when most people would only 
use one or two at the most.

- Miles

Alessio Sangalli wrote:


  1024
 -//W3C//DTD HTML 4.01 
Transitional//EN




shouldn't it be inserted by default in a default sitemap from the 
cocoon installations? should we write this to the developers mailing 
list?




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: correct use of umlauts

2002-11-16 Thread William Brogden
> -Original Message-
> From: Robert Sösemann [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, November 16, 2002 10:01 AM
> To: [EMAIL PROTECTED]
> Subject: correct use of umlauts
> 
> 
> Hello, who can help,
> 
> 
> I have the following code fragment in my xsp page, but I 
> always get an error
> because of the use of german umlaut entities like Ö.
> 
>   
> String keyword =  column="k.word"/>;
> String firstletter = 
> keyword.substring(0,6);
> String sortable = keyword;
> 
> 
> if( firstletter == "Ö" ||
> firstletter == "ö"

Probably you want  firstletter.equals( "Ö" ) NOT ==


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285
Coauthor of Cocoon 2 Programming - Sybex; ISBN: 0782141315




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: correct use of umlauts

2002-11-16 Thread Joerg Heinicke
Hello Robert,

you are coding XML and not HTML. The German umlauts are only declared in 
HTML as entities. In XML only <, >, ', " and &..; (which 
one was the 5th) are known?

Why do you have Ö in your database? This would be really bad: a 
database should store a character in it, not an "entity, which will be 
later interpreted as a character".

Joerg

Robert Sösemann wrote:
Hello, who can help,


I have the following code fragment in my xsp page, but I always get an error
because of the use of german umlaut entities like Ö.

  
String keyword = ;
String firstletter = keyword.substring(0,6);
String sortable = keyword;


if( firstletter == "Ö" ||
firstletter == "ö"
||  firstletter == "Ä" ||
firstletter == "ä"
||  firstletter == "Ü" ||
firstletter == "ü") {
firstletter =
firstletter.substring(1,1).toUpperCase();
sortable = firstletter + "e" +
keyword.substring(1);
}


That's how I get it from my database. How can I escape this?
I also experience that cocoon has a problem to resolve &... entites in
general. I allways get the error "The entity * was referenced, but not
declared.

What is wrong?

Robert



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: dynamic select boxes in XMLForms?

2002-11-16 Thread Josema Alonso
> Look closer at the demo and examine the itemset elements under the select
> elements.
I see.  I'm sorry I didn't notice them before.

It's working, thank you very much.


> - Original Message -
> From: "Josema Alonso" <[EMAIL PROTECTED]>
> To: "Cocoon-Users" <[EMAIL PROTECTED]>
> Sent: Thursday, November 14, 2002 12:35 PM
> Subject: dynamic select boxes in XMLForms?
>
>
> > Hi, all.
> >
> > I tried the XMLForm wizard demo where I see some select boxes created
for
> > processor, ram, servlet engine and java version elements in ths system
> > information page.
> >
> > I see the values for those are hard coded in 'system.xml' and I want to
> > create a select box from a DOM Node. I got the following:
> > 
> >  
> >   Description of the player type
> >  
> >  
> >   Description of the recorder type
> >  
> > 
> >
> > I would like to create a select box (one of the dropdown type) and have:
> > 1.- value of every option element as the EquipmentType/@id
> > 2.- text displayed of every option as the EquipmentType/Description
> >
> > I've tried with a xf:repeat with no luck. I also tried with just one
> element
> > but no luck either. I guess is something with the stylesheet. The
> > 'xmlform2html.xsl' doesn't seem to check 'ref' attributes on option
> > elements. I guess the solution will be the customization of that
> stylesheet
> > to my needs...am I right?
> >
> > Thanks.
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: inserting doctype from xsl

2002-11-16 Thread Alessio Sangalli

Jeremy Quinn wrote:



On Saturday, Nov 16, 2002, at 19:10 Europe/London, Alessio Sangalli 
wrote:

> Perhaps it has already been discussed, but I didn't find any
> reference  to this in the mail list archives.


Set it up in the relevant serializer in the
map:components/map:serializers section of your sitemap like this:

good I've set it up on the html serializer like this:



  1024
 -//W3C//DTD HTML 4.01 
Transitional//EN




shouldn't it be inserted by default in a default sitemap from the cocoon 
installations? should we write this to the developers mailing list?

bye
as





-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



Best Practice of caching XML

2002-11-16 Thread Thorsten Mauch
> Hi All 
> In my cocoon application i have a productdescription stored as a xml
> string.
> After i query the database i want do store this description is a cache. In
> terms
> of performance what is the recommended way do that. Store the string or as
> 
> Dom docment ? what is the fastest way to generate the sax events ?
> Or is there a way to store the Sax event it self ?
> 
> Thanx Thorsten
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: How-to :: Cocoon 2.1 Dev instal for dummies - Windows 2000

2002-11-16 Thread Franck Lumpe
Hello Tony & Poornima,

Thanks for the nice words. :-)

I have followed your suggestion for incorporating the post in the Cocoon
Wiki.

So now it is available in
http://outerthought.net/wiki/Wiki.jsp?page=Cocoon2.1DevSetupWin2000

Regards,

Franck Lumpe

Iberplus Internet, S.L.
www.iberplus.es
"E-Business Consultants"

- Original Message -
From: "Tony Collen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 16, 2002 7:29 PM
Subject: Re: How-to :: Cocoon 2.1 Dev instal for dummies - Windows 2000


> On Sat, 16 Nov 2002, Franck Lumpe wrote:
>
> >
> > Hello everyone,
> >
> > I had some problems installing Cocoon 2.1 Dev, so I made a short how-to
for
> > anyone interested.
> >
> > I got it working thanks to previous messages in the list but took me a
while
> > to figure it so maybe this post will save time to somebody.
> >
> > Assuming a "clean" Windows 2000 system and nothing related to Java
> > installed.
> >
> > Lets go!
>
>
> Excellent, thank you!  Would you mind putting this on the Wiki?  I think
> it would fit in with the HOWTOs at
> http://outerthought.net/wiki/Wiki.jsp?page=HowTos
>
> Tony
>
>
> Tony Collen -- [EMAIL PROTECTED]
> College of Liberal Arts   University of Minnesota, Minneapolis, West Bank
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Update Orion Web Server - Cocoon Integration Instructions (also jdk1.4.1)

2002-11-16 Thread Steven Punte
Updated instructions for integration of Orion Web Server(http://orionserver.com) version 1.5.4 with ApacheCocoon version 2.0.3 can be found at:
 http://www.candlelightsoftware.com/orion-cocoon.html
Also this combination is tested against JDK 1.4.1!
Steven P. PunteCandlelight SoftwareBy Candlelight If Necessary![EMAIL PROTECTED] http://www.candlelightsoftware.com
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site

Re: inserting doctype from xsl

2002-11-16 Thread Jeremy Quinn

On Saturday, Nov 16, 2002, at 19:10 Europe/London, Alessio Sangalli  
wrote:

Perhaps it has already been discussed, but I didn't find any reference  
to this in the mail list archives.

Set it up in the relevant serializer in the  
map:components/map:serializers section of your sitemap like this:

   
 -//W3C//DTD XHTML 1.0 Strict//EN
  
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
 UTF-8
   

This is an example of setting up the xhtml serializer.

Now, when I have:

	

at the end of my pipeline, my documents get that DOCTYPE.

hope this helps

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



Input Module Problem: Invalid pattern

2002-11-16 Thread Jeremy Quinn
Hi,

I am trying to modify a request parameter 'query', based on the value 
of another request parameter 'region', before passing 'query' to the 
SearchGenerator.

I am trying to use the DefaultsMetaModule in 2.1-dev, and am getting 
unexpected exceptions.

javax.xml.transform.TransformerException: 
org.apache.xalan.xsltc.TransletException: 
org.apache.xalan.xsltc.TransletException: 
org.apache.cocoon.ProcessingException: Failed to load sitemap from 
file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/search.xmap: 
org.apache.avalon.framework.configuration.ConfigurationException: 
Invalid pattern '+(doc@search:archive) +({default:query})' at 
file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/search.xmap:35:88

This concatenation works in another version of this sitemap, where I do 
not use Input Modules.

Here is the sitemap matcher (its the only one in this sitemap):


 	
  
  
   
  
 
   	

   

  
		value="+(doc@search:archive) +({default:query})"/>
 
 


 
  
 

	

 
  
 

   
  
 
 
  
 
 


and here is the relevant snippet from cocoon.xconf:


  class="org.apache.cocoon.components.modules.input.DefaultsMetaModule"
  logger="core.modules.input" name="defaults">
 
  
   
   all
   http://iborg.local:8080/cocoon/iniva/
  


Can anyone see what I am doing wrong?

thanks for any help

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



inserting doctype from xsl

2002-11-16 Thread Alessio Sangalli
Perhaps it has already been discussed, but I didn't find any reference 
to this in the mail list archives.

I wanted to check my code with the w3c validator; I get a fatal error 
because I didn't put the DOCTYPE thing at the beginning of the page.

However I can't put it from inside xsl because I get


 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode 
notifies that org.apache.cocoon.ProcessingException says:

doctype not allowed in content.

More precisely:

org.apache.cocoon.ProcessingException: Exception in creating Transform 
Handler: org.xml.sax.SAXParseException: doctype not allowed in content.



how can I do? I've tried few solutions found in dejanews but none worked...

bye & thank you
as





-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



Re: How-to :: Cocoon 2.1 Dev instal for dummies - Windows 2000

2002-11-16 Thread Tony Collen
On Sat, 16 Nov 2002, Franck Lumpe wrote:

>
> Hello everyone,
>
> I had some problems installing Cocoon 2.1 Dev, so I made a short how-to for
> anyone interested.
>
> I got it working thanks to previous messages in the list but took me a while
> to figure it so maybe this post will save time to somebody.
>
> Assuming a "clean" Windows 2000 system and nothing related to Java
> installed.
>
> Lets go!


Excellent, thank you!  Would you mind putting this on the Wiki?  I think
it would fit in with the HOWTOs at
http://outerthought.net/wiki/Wiki.jsp?page=HowTos

Tony


Tony Collen -- [EMAIL PROTECTED]
College of Liberal Arts   University of Minnesota, Minneapolis, West Bank


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: How-to :: Cocoon 2.1 Dev instal for dummies - Windows 2000

2002-11-16 Thread poornima ponnuswamy
Thanks Mr.Lumpe for your installation suggestions. I have some problems 
installing. Hope to get it this time






From: "Franck Lumpe" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: How-to :: Cocoon 2.1 Dev instal for dummies - Windows 2000
Date: Sat, 16 Nov 2002 19:00:46 +0100


Hello everyone,

I had some problems installing Cocoon 2.1 Dev, so I made a short how-to for
anyone interested.

I got it working thanks to previous messages in the list but took me a 
while
to figure it so maybe this post will save time to somebody.

Assuming a "clean" Windows 2000 system and nothing related to Java
installed.

Lets go!



1) Download Java2 SDK Standard Edition v.1.4.1
File is j2sdk-1_4_1_01-windows-i586.exe from
http://java.sun.com/j2se/1.4.1/download.html
(Windows - SDK - All languages, including english)

2) Run j2sdk-1_4_1_01-windows-i586.exe
SDK is now installed in c:\j2sdk1.4.1_01

3) In the Windows Control Panel, go to System / Advanced Properties and
create a system variable JAVA_HOME with value "c:\j2sdk1.4.1_01" (without
quotes).

Now your system knows where the run-time environment (Java) is located.

-> Java Software Development Kit installed, now you need the Servlet 
Engine.



4) Download Tomcat 4.1.12
File is jakarta-tomcat-4.1.12-LE-jdk14.zip from

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/

5) Unzip everything in directory c:\jakarta-tomcat-4.1.12-LE-jdk14 (extract
using folder names)

6) Run file startup.bat located at c:\jakarta-tomcat-4.1.12-LE-jdk14/bin
Enter http://localhost:8080 in your browser and check that Tomcat (the
servlet engine) is running.

-> Tomcat installed, now you need Cocoon!



7) Download WinCVS and Download Cocoon source.

That was pretty straightforward, following instructions available in
http://xml.apache.org/cocoon/installing/index.html

Let's assume you have now full Cocoon source (HEAD) in c:\CVS\xml-cocoon2

8) Compile Cocoon using command interface (DOS!) and type
build.bat -Dinclude.webapp.libs=yes webapp from directory 
c:\CVS\xml-cocoon2

9) Copy file cocoon.war from c:\CVS\xml-cocoon2\build\cocoon to
c:\jakarta-tomcat-4.1.12-LE-jdk14\webapps

10) Run file shutdown.bat located at c:\jakarta-tomcat-4.1.12-LE-jdk14/bin
to stop Tomcat

11) Run file startup.bat located at c:\jakarta-tomcat-4.1.12-LE-jdk14/bin 
to
startup again Tomcat.

Cocoon.war file will expand in a new directory located at
c:\jakarta-tomcat-4.1.12-LE-jdk14/webapps/cocoon

12) Stop Tomcat again (run file shutdown.bat)

13) VERY IMPORTANT!!!

You need to copy 3 files: xalan-2.4.1.jar, xercesImpl.jar and xml-apis.jar
from C:\jakarta-tomcat-4.1.12-LE-jdk14\webapps\cocoon\WEB-INF\lib
into (empty) directory c:\jakarta-tomcat-4.1.12-LE-jdk14/common/endorsed

If you don't do this step, then when you try to run Cocoon you get:

message Failed to execute pipeline.
description org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The output
format must have a '{http://xml.apache.org/xslt}content-handler' property!:

(as already mentioned by Antonio and solved by Volker)
See http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103692889710176&w=2)

14) Run Tomcat again (run file startup.bat)

15) Direct your browser on http://localhost:8080/cocoon and ... it should 
be
working.

Check samples at http://localhost:8080/cocoon/samples/

Regards,

Franck Lumpe

Iberplus Internet, S.L.
www.iberplus.es
"E-Business Consultants"


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



How-to :: Cocoon 2.1 Dev instal for dummies - Windows 2000

2002-11-16 Thread Franck Lumpe

Hello everyone,

I had some problems installing Cocoon 2.1 Dev, so I made a short how-to for
anyone interested.

I got it working thanks to previous messages in the list but took me a while
to figure it so maybe this post will save time to somebody.

Assuming a "clean" Windows 2000 system and nothing related to Java
installed.

Lets go!



1) Download Java2 SDK Standard Edition v.1.4.1
File is j2sdk-1_4_1_01-windows-i586.exe from
http://java.sun.com/j2se/1.4.1/download.html
(Windows - SDK - All languages, including english)

2) Run j2sdk-1_4_1_01-windows-i586.exe
SDK is now installed in c:\j2sdk1.4.1_01

3) In the Windows Control Panel, go to System / Advanced Properties and
create a system variable JAVA_HOME with value "c:\j2sdk1.4.1_01" (without
quotes).

Now your system knows where the run-time environment (Java) is located.

-> Java Software Development Kit installed, now you need the Servlet Engine.



4) Download Tomcat 4.1.12
File is jakarta-tomcat-4.1.12-LE-jdk14.zip from

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/

5) Unzip everything in directory c:\jakarta-tomcat-4.1.12-LE-jdk14 (extract
using folder names)

6) Run file startup.bat located at c:\jakarta-tomcat-4.1.12-LE-jdk14/bin
Enter http://localhost:8080 in your browser and check that Tomcat (the
servlet engine) is running.

-> Tomcat installed, now you need Cocoon!



7) Download WinCVS and Download Cocoon source.

That was pretty straightforward, following instructions available in
http://xml.apache.org/cocoon/installing/index.html

Let's assume you have now full Cocoon source (HEAD) in c:\CVS\xml-cocoon2

8) Compile Cocoon using command interface (DOS!) and type
build.bat -Dinclude.webapp.libs=yes webapp from directory c:\CVS\xml-cocoon2

9) Copy file cocoon.war from c:\CVS\xml-cocoon2\build\cocoon to
c:\jakarta-tomcat-4.1.12-LE-jdk14\webapps

10) Run file shutdown.bat located at c:\jakarta-tomcat-4.1.12-LE-jdk14/bin
to stop Tomcat

11) Run file startup.bat located at c:\jakarta-tomcat-4.1.12-LE-jdk14/bin to
startup again Tomcat.

Cocoon.war file will expand in a new directory located at
c:\jakarta-tomcat-4.1.12-LE-jdk14/webapps/cocoon

12) Stop Tomcat again (run file shutdown.bat)

13) VERY IMPORTANT!!!

You need to copy 3 files: xalan-2.4.1.jar, xercesImpl.jar and xml-apis.jar
from C:\jakarta-tomcat-4.1.12-LE-jdk14\webapps\cocoon\WEB-INF\lib
into (empty) directory c:\jakarta-tomcat-4.1.12-LE-jdk14/common/endorsed

If you don't do this step, then when you try to run Cocoon you get:

message Failed to execute pipeline.
description org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The output
format must have a '{http://xml.apache.org/xslt}content-handler' property!:

(as already mentioned by Antonio and solved by Volker)
See http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103692889710176&w=2)

14) Run Tomcat again (run file startup.bat)

15) Direct your browser on http://localhost:8080/cocoon and ... it should be
working.

Check samples at http://localhost:8080/cocoon/samples/

Regards,

Franck Lumpe

Iberplus Internet, S.L.
www.iberplus.es
"E-Business Consultants"


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




correct use of umlauts

2002-11-16 Thread Robert Sösemann
Hello, who can help,


I have the following code fragment in my xsp page, but I always get an error
because of the use of german umlaut entities like Ö.

  
String keyword = ;
String firstletter = keyword.substring(0,6);
String sortable = keyword;


if( firstletter == "Ö" ||
firstletter == "ö"
||  firstletter == "Ä" ||
firstletter == "ä"
||  firstletter == "Ü" ||
firstletter == "ü") {
firstletter =
firstletter.substring(1,1).toUpperCase();
sortable = firstletter + "e" +
keyword.substring(1);
}


That's how I get it from my database. How can I escape this?
I also experience that cocoon has a problem to resolve &... entites in
general. I allways get the error "The entity * was referenced, but not
declared.

What is wrong?

Robert


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Weird Saxon errors

2002-11-16 Thread Jeremy Quinn
I just switched to using Saxon 6.5.2 with Cocoon 2.1-dev as lots of  
people say it is faster than xalan and xsltc.

I get lots of strange errors in my stylesheets, that I cannot work out.
These are stylesheets that are largely trivial, and work fine in Xalan  
and XSLTC.

Has anyone else noticed this kind of behaviour?

Example:

org.apache.cocoon.ProcessingException: Could not read resource  
file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/parts/components/ 
meta-data.xml:  
file:/Users/jermq/Library/TomCat/webapps/cocoon/iniva/parts/xsl/macro- 
filter.xsl:12:-1:javax.xml.transform.TransformerException: Invalid  
processing instruction name (saxon:warning)

this is line 12, column -1 (sic)



http://www.w3.org/1999/XSL/Transform";
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xmlns:saxon="http://icl.com/saxon";
	exclude-result-prefixes="saxon"
>

	

	
		
	

  
  



Where line 12 is:



Do What???
There is nothing wrong with this line according to the other XSLT  
engines.
Invalid processing instruction??


This is my config:

in cocoon.xconf:

  
 
 
  

  
role="org.apache.cocoon.components.xslt.XSLTProcessor/Saxon"
class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
logger="core.xslt-processor">
   
   
   
value="com.icl.saxon.TransformerFactoryImpl"/>
  

in sitemap.xmap:

	
	   pool-grow="2" pool-max="32" pool-min="8"
   src="org.apache.cocoon.transformation.TraxTransformer">
	  false
	  false
	  
org.apache.cocoon.components.xslt.XSLTProcessor/Saxon
  
	


Any suggestions would be gratefully accepted.

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>