Re: build.sh in cocoon2.0b2

2001-08-13 Thread Sébastien Lefebvre

Just have a look at the INSTALL file coming with the distribution.

Sebastien

>Hi Developers
>
>I am unable to use "build.sh" distributed with Cocoon2.0B2.
>The "build.sh" distributed in Cocoon2.0B1, kindly revert "build.sh"
>to the Cocoon2.0B1 version, or somebody kindly let me know
>how to use the "build.sh" in the Cocoon2.0B2 distribution.
>
>   I am trying this on Linux (Mandrake-8.0).
>
>Regards
>Joseph Rajkumar
>
>
>
>-
>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]>




Sitemap and Action

2001-08-13 Thread Ling Kok Choon

Hi,

  I am developing a WEB Page Content Management System. This system able to create a 
new web 
page within cocoon2 environment. Because user can add new page, delete page, add 
folder with the 
content management system, so I will need a dinamic sitemap to handler all the request.

  I start to find out the solution to dinamically generate a sitemap, but fail. But at 
the time 
i found a very powerfull feature in cocoon2 that is Action. Here is how i use action 
to get a 
dinamic Sitemap:

Sitemap.xmap

 
  ...
  ... 
  
   
 
  
 
 
 
   
  
   

   

  
   
   


 
  
  
  
  
 

 



 
  
 

 
 


  
 
  
 

 
 
  
 
 
 
 
 
   
 

 
 
 
 

  

  http://www.brel.com/maincontent"/>
  
  http://www.brel.com/foot_note"/> 

  http://www.brel.com/side_menu"/> 

  http://www.brel.com/links"/> 

 
  
   


   
  
  
 
   
   
  
  
  
 
   
   
  
  
  
  

  
  
  
  
  
  
   
 
  
  
  
 
 

  

  

   

  
  
  
  
  

   

  
  
  

   

  

   
   
   
   
   


I post this mail is to get your opinions and suggestions, is it the right way to solve 
the 
problem ?


Thank

Kok Choon



Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/14/01
Time: 14:11:03

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


-
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]>




Strange problem with the Reader

2001-08-13 Thread Jörn Heid

(Win 2000, Resin 2.0.1, JDK 1.3.1)

I do the following:

1. Deleting WEB-INF/tmp and WEB-INF/logs
2. Starting Resin
3. Starting Mozilla
4. Type the URL http://www.n3k-test.de/images/logo_bg.gif
5. I see the right image
6. If I hit Shift-Reload the image disappears and Mozilla says
http://www.n3k-test.de/images/logo_bg.gif

Other browsers (IE, Opera) seem to cache it so there the problem appears
after one hour.

Does anybody have the same problem?

The problem appears with b2 and I just checked the newest build.

JOERN_HEID


-
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]>




c2: current snapshots broken ?

2001-08-13 Thread Dauben, Oliver

hi all,

anybody having trouble compiling the latest snapshots from 2001-08-12 and
2001-08-13, too ?

i'm quite hosed 'cause my only fallback is the latest beta dating somewhere
from july...

if i'm not the only one, i will post a message to the dev list t'morrow...

happy compiling,

oLiVeR

-
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 do you send SAX events outside of your own realm?

2001-08-13 Thread Liam Morley

I have a java class that is sending out SAX events derived from the object
model. However, as I'm still new to XSL/T and Xerces, I'm not sure how to
get them to go in the right place. Most of them are under the  tag
(mirroring html for the purposes of explanation), and this part has been
done; however I want to be able to specify the webpage's title from the
java class. How would I go about doing that?

If you need more information, please let me know.

---
Liam Morley

"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."




-
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]>




I can't make XSL to work for cocoon1.8.2

2001-08-13 Thread Uslu, Cihan Y (MED)

Hi,
I have this XSL script which works with xalan (I use cooktop), but when
Itry the same code with cocoon1.8.2 I receive really different output
than my original output. I'd really appreciate if someone could explain
to me why it does not work and what should I do to make it work. Thank
you very much for your help.
 

http://www.w3.org/1999/XSL/Transform";>


type="text/html"
  
   
   Media Asset List for

   


   Asset
Name 


   Asset
Type
   

  Animation



  Graphic 

   
   
   
Asset Title


   
   Description

   
   
   File Source

   
   Copyright Status

   
   
   Pop-up Image

   
   
   Screen Number

   
   

   
 

 





-
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]>




build.sh in cocoon2.0b2

2001-08-13 Thread Rajkumar, Joseph

Hi Developers

I am unable to use "build.sh" distributed with Cocoon2.0B2.
The "build.sh" distributed in Cocoon2.0B1, kindly revert "build.sh"
to the Cocoon2.0B1 version, or somebody kindly let me know
how to use the "build.sh" in the Cocoon2.0B2 distribution.

   I am trying this on Linux (Mandrake-8.0).

Regards
Joseph Rajkumar



-
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]>




Fonts

2001-08-13 Thread Mark Miller

I am trying to work out a good simple way to do fonts. I have a pipeling
that creates idealized UI components and then applies a look and feel for
the naked components. One of my components is a 'pane'


   
sdsdf
   
   





   


In this example pane1 would enclose pane2 and pane3. At the HTML generation
stage it might use frames or tables to layout the page. I want to be able to
put default fonts on the pane, and if it is not present at html generation
time, I want it to use the font of the parent. But this means, near as I can
tell with HTML, that I have to put the font around every ui component inside
the pane. Essentially reproducing Cascading Style sheets.

The solution I have come up with applies a stylesheet to the html at the end
of the pipeline and wraps all tags that have a fontid attribute in a font
tag. This feels a little wrong to me, but I can not figure out an
alternative.

A second question. What kind of XSL trick should I employ to pass the
fontids down to child panes (or other components). The idea is that the if a
pan or other ui component doesn't have a fontid it should use the fontid of
the parent. The same idea would be applied to background and foreground
colors.

Am I off on the wrong track completely here? Our application must write to a
number of output devices and we do not trust CSS. besides isn't XSL suppose
to be a replacement? I like the purity of an al XML based solution.
Might formatting objects be the solution? If so are there stylesheets for
writing to WAP and CHTML?

Thanks
Mark Miller
Web Architect


-
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]>




Xerces problem using latest cocoon.properties

2001-08-13 Thread Bill
Help or advice, please? Apologies if this is not the correct forum.

Publishing Engine could not be initialized.
java.lang.RuntimeException: Exception when  creating " org.apache.cocoon.parser.XercesParser"  : 
java.lang.VerifyError: (class:  org/apache/cocoon/parser/XercesParser, method:  parse signature:  (Lorg/xml/sax/InputSource;Z)Lorg/w3c/dom/Document;) Incompatible object argument for function call


On
winnt / jdk1.3.0_02 / Apache1.3.20 (win32) ApacheJserv/1.1.2 / Tomcat3.2

echo %CLASSPATH% 
c:\bin\jakarta-tomcat-3.2.2\lib\xerces_1_2.jar;C:\bin\jakarta-tomcat- 3.2.2\lib\jasper.jar;C:\bin\jakarta-tomcat- 3.2.2\lib\servlet.jar;c:\bin\jdk1.3.0_02\lib\tools.jar 


Directory of C:\bin\jakarta-tomcat-3.2.2\lib

14/08/01  04:17   .
14/08/01  04:17   ..
28/05/01  18:51330,474 ant.jar
26/01/01  18:17179,136 ant_1_1.jar
26/01/01  18:17 50,369 bsf.jar
26/01/01  18:17 26,618 bsfengines.jar
26/01/01  18:17269,069 cocoon.jar
26/01/01  18:17  1,214,492 fesi.jar
26/01/01  18:17654,212 fop_0_15_0.jar
28/05/01  18:51217,923 jasper.jar
28/05/01  18:51 40,810 servlet.jar
26/01/01  18:17 40,944 servlet_2_2.jar
26/01/01  18:17 62,237 stylebook-1.0-b2.jar
10/08/01  13:32   test
26/01/01  18:17 98,901 turbine-pool.jar
26/01/01  18:17128,148 w3c.jar
28/05/01  18:51430,434 webserver.jar
26/01/01  18:17437,913 xalan_1_2_D02.jar
26/01/01  18:17  1,498,679 xerces_1_2.jar
26/01/01  18:17352,905 xt.jar
28/05/01  18:51  5,618 zjaxp.jar
28/05/01  18:51136,133 zparser.jar
26/01/01  18:17  1,014 zsax-bugfix.jar
26/01/01  18:17132,472 zxml.jar



-
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]>



unable to open xml doc.

2001-08-13 Thread sridhar s

i am unable to open xml document using cocoon. It
gives the error message - " xsl document cannot be 
found" though xsl document is also present in the same
directory & path is also properly set.

please help.send to [EMAIL PROTECTED]

thank u.

__
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.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]>




Problem Building Cocoon

2001-08-13 Thread Mark Galbreath

I'm trying to work my way through Brett McLaughlin's "Java and XML."

When I try to run build.bat in Win2k with any of the 3 argument variations I am 
getting a build failed message with a thrown class not found exception of either: 
org.apache.tools.ant.Main or org.apache.tools.ant.taskdefs.optional.TraXLiaison.

As far as I can tell, these packages are no where to be found. I already had Ant 1.3, 
J2SE 1.3, Tomcat 3.2.3, Xalan-j_2_2_D6, and Xerces-2_0_0_beta installed and all 
classpaths mapped.  The installation documentation leaves MUCH to be desired.  Any 
clues?

Thanks,
Mark


-
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]>




cocoon powered sites

2001-08-13 Thread Kathleen McTavish

We wanted to thank you for the Cocoon publishing framework.  We have used
Cocoon to power the following sites:

www.praxisinternational.org
www.welrp.org
www.lightingpharos.com
www.rethinkingtourism.org
www.pavsa.org
www.togetherforyouth.org
bwjp.ipharos.com

Thank you for all of your work!

Kathy McTavish
Partner/CTO/Lead Developer
LightingPharos, Inc.
223 Garden Street-Suite 300
Duluth MN 55812

[EMAIL PROTECTED]
www.lightingpharos.com

Toll Free: (866) iPharos
Direct: (218) 525-5586
Mobile: (612) 819-7337
eFax: (877) 471-3989


-
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: C2: Connection Pool

2001-08-13 Thread HALLOWELL,KARL (HP-Cupertino,ex1)

Try looking at the login_xsp.java file created by cocoon. It should be
located inside the working directory for your application server. For
tomcat, that would be somewhere inside $TOMCAT_HOME/work/localhost%2Fcocoon
(for stuff in the cocoon directory).  It's possible that the problem isn't
the connection pool code, but a nearby typo.


Karl Hallowell [EMAIL PROTECTED]

> -Original Message-
> From: Martin Benda [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 8:36 AM
> To: [EMAIL PROTECTED]
> Subject: C2: Connection Pool
> 
> 
> How to access the connection pool out of java? When I try to
> access my connection pool with the help of esql it works fine, but
> when I try to access the pool out of java I always get an exception.
> 
> 
>   private DataSourceComponent datasource;
> 
>   public void compose(ComponentManager manager) {
>ComponentSelector selector =
> (ComponentSelector)manager.lookup(Roles.DB_CONNECTION);
>this.datasource =
> (DataSourceComponent)selector.select("[DBpoolName]");
>   }
> 
>   Connection con;
> 
>   try {
> con = datasource.getConnection();
>   ...
> 
> 
> I try to access the connection poll like discribed on the 
> website of C2, but
> I always get an
> expception
> org.apache.cocoon.components.language.LanguageException: 
> Error compiling
> login_xsp:
> Line 192, column 35:  '}' expected.
> Line 194, column 4:  Statement expected.
> Line 206, column 4:  Type expected.
> 
> How can I access the pool the right way?
> 
> I am using Cocoon2b2 and tomcat 3.2.3
> 
> thanks,
> Martin
> 
> 
> -
> 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: XML in database, how to pass to Cocoon?

2001-08-13 Thread Kilmer, Erich

Found an interesting article
(http://www.devx.com/upload/free/features/javapro/2000/08aug00/kj0008/kj0008
-3.asp) that describes how to implement the Producer interface. By doing
this you can make the input XML to Cocoon come from a different source than
a file.
I am giving it a try now.
Is adding your own Producer class still a viable way to do this?
Thanks,
Erich

-Original Message-
From: Kilmer, Erich [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 11:21 AM
To: '[EMAIL PROTECTED]'
Subject: RE: XML in database, how to pass to Cocoon?


OK, I read up on ESQL and can see the database connection params and SQL. Is
this the way that I would read my XML from the database rather than from a
file?
How does this integrate with Cocoon?
Erich

-Original Message-
From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 10:41 AM
To: [EMAIL PROTECTED]
Subject: AW: XML in database, how to pass to Cocoon?



> I have been using Cocoon 1 for a little while and have been happy with
the
> results. Using the browser I can enter a URL that contains the path to
the
> XML file and then Cocoon renders the PDF in the browser. This  works
well.
> Good job to all involved.
> I do have a couple of questions though.
> 
> 1) The technique described above works well for XML files but in my
> application I will read the XML from a blob in the database (which I
know
> how to do). Say I get the XML from the database and put it into a
String. Is
> there any hooks in Cocoon so that I can call a method and pass it the
XML
> string? Where can I see the Cocoon servlets source?

Use the esql-Stylesheet with get-xml, with this you can put a XML tree
from the database in you xml stream generated by cocoon. The xml has to
be wellformed in the database.

> 2) Has anyone managed to get background images working in FOP?

Never tried.
 
> 3) Has anyone managed to format dates in FOP?

Unfortunately XSLT has no date formatting functions. But you can use the
Java Core classes or you own classes for formatting in XSLT using the
java extension support in Xalan. It's the xalan-specific, of course. The
XSLT 1.1 Specs define a product-inpdependet extension support, but this
does not work in the current xalan-version used by cocoon 2. See
Xalan-Homepage on the apache website.

Stefan

-
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]>




Tomcat 3.1 + IIS + Cocoon 1.8 problem

2001-08-13 Thread thorsten . sommer

Hi.
I installed Tomcat 3.1 (as part of JBuilder 4) with IIS and it works fine.
Then I tried out cocoon 1.8. . All the xml-samples work except the
xsp-samples. I always get:

java.lang.NoSuchMethodError
at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java:116)
at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.process(XS
PJavaPreprocessor.java:123)
at
org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor.preprocess
(XSPJavaPreprocessor.java:81)
at
org.apache.cocoon.processor.xsp.XSPLogicsheet.apply(XSPLogicsheet.java:99)
at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:423)
at org.apache.cocoon.Engine.handle(Engine.java:359)
at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:484)


What went wrong? Could someone help me please?

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]>




AW: XML in database, how to pass to Cocoon?

2001-08-13 Thread Stefan Seifert

ESQL is one of the builtin cocoon stylesheets, there are some samples in
the cocoon distribution and documataion about it in the cocoon docs.

> -Ursprüngliche Nachricht-
> Von: Kilmer, Erich [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 13. August 2001 17:21
> An: '[EMAIL PROTECTED]'
> Betreff: RE: XML in database, how to pass to Cocoon?
> 
> 
> OK, I read up on ESQL and can see the database connection 
> params and SQL. Is
> this the way that I would read my XML from the database 
> rather than from a
> file?
> How does this integrate with Cocoon?
> Erich
> 
> -Original Message-
> From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 13, 2001 10:41 AM
> To: [EMAIL PROTECTED]
> Subject: AW: XML in database, how to pass to Cocoon?
> 
> 
> 
> > I have been using Cocoon 1 for a little while and have been 
> happy with
> the
> > results. Using the browser I can enter a URL that contains 
> the path to
> the
> > XML file and then Cocoon renders the PDF in the browser. This  works
> well.
> > Good job to all involved.
> > I do have a couple of questions though.
> > 
> > 1) The technique described above works well for XML files but in my
> > application I will read the XML from a blob in the database (which I
> know
> > how to do). Say I get the XML from the database and put it into a
> String. Is
> > there any hooks in Cocoon so that I can call a method and 
> pass it the
> XML
> > string? Where can I see the Cocoon servlets source?
> 
> Use the esql-Stylesheet with get-xml, with this you can put a XML tree
> from the database in you xml stream generated by cocoon. The 
> xml has to
> be wellformed in the database.
> 
> > 2) Has anyone managed to get background images working in FOP?
> 
> Never tried.
>  
> > 3) Has anyone managed to format dates in FOP?
> 
> Unfortunately XSLT has no date formatting functions. But you 
> can use the
> Java Core classes or you own classes for formatting in XSLT using the
> java extension support in Xalan. It's the xalan-specific, of 
> course. The
> XSLT 1.1 Specs define a product-inpdependet extension 
> support, but this
> does not work in the current xalan-version used by cocoon 2. See
> Xalan-Homepage on the apache website.
> 
> Stefan
> 
> -
> 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]>




jsp to html problem

2001-08-13 Thread Fiore, Francois

Hi !
 
I am processing a jsp(XML) page ->html. By doing so, it seems that the
relative links I inserted in the XSL sheet don't work (to display pictures).
The document root directory seems to be lost in the process . Am I right ?


Is it because the request is forwarded to the JSP page ?? 
If not do you have a working example ??
 
thank you in advance for your answer
 
francois



--
This communication contains confidential information intended solely for the use of 
the individual/s and/or entity or entities to whom it was intended to be addressed.  
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution, or use of the contents of this transmission is prohibited.  If you have 
received this communication in error, please contact the sender immediately, delete 
this communication from your system, and do not disclose its contents to any third 
party, or use its contents.  Any opinions expressed are solely those of the author and 
do not necessarily represent those of Orchestream Ltd or its group of companies unless 
otherwise specifically stated.

-
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: XML in database, how to pass to Cocoon?

2001-08-13 Thread Kilmer, Erich

OK, I read up on ESQL and can see the database connection params and SQL. Is
this the way that I would read my XML from the database rather than from a
file?
How does this integrate with Cocoon?
Erich

-Original Message-
From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 10:41 AM
To: [EMAIL PROTECTED]
Subject: AW: XML in database, how to pass to Cocoon?



> I have been using Cocoon 1 for a little while and have been happy with
the
> results. Using the browser I can enter a URL that contains the path to
the
> XML file and then Cocoon renders the PDF in the browser. This  works
well.
> Good job to all involved.
> I do have a couple of questions though.
> 
> 1) The technique described above works well for XML files but in my
> application I will read the XML from a blob in the database (which I
know
> how to do). Say I get the XML from the database and put it into a
String. Is
> there any hooks in Cocoon so that I can call a method and pass it the
XML
> string? Where can I see the Cocoon servlets source?

Use the esql-Stylesheet with get-xml, with this you can put a XML tree
from the database in you xml stream generated by cocoon. The xml has to
be wellformed in the database.

> 2) Has anyone managed to get background images working in FOP?

Never tried.
 
> 3) Has anyone managed to format dates in FOP?

Unfortunately XSLT has no date formatting functions. But you can use the
Java Core classes or you own classes for formatting in XSLT using the
java extension support in Xalan. It's the xalan-specific, of course. The
XSLT 1.1 Specs define a product-inpdependet extension support, but this
does not work in the current xalan-version used by cocoon 2. See
Xalan-Homepage on the apache website.

Stefan

-
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: [C1]: ESQL pool connection

2001-08-13 Thread Hubert NEOtyk Iwaniuk

> how is your pool set up in cocoon.properties?  In addition to setting up
> the properties for the default pool, you need these lines, I think:
> processor.xsp.pool.database.adaptor=DBPostgres
> processor.xsp.pool.database.adaptor.DBPostgres=org.postgresql.Driver

i had in my cocoon.prperties:
processor.xsp.pool.database.adaptor=DBPostgres
processor.xsp.pool.database.adaptor.DBPostgres=postgresql.Driver

after correcting it to org.postgresql.Driver it works.

Thaks.




---
Ausgehende Mail ist zertifiziert virenfrei.
Uberpruft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.265 / Virendatenbank: 137 - Erstellungsdatum: 2001-07-18


-
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: [C1]: ESQL pool connection

2001-08-13 Thread Christopher Painter-Wakefield


Hubert,

how is your pool set up in cocoon.properties?  In addition to setting up
the properties for the default pool, you need these lines, I think:
processor.xsp.pool.database.adaptor=DBPostgres
processor.xsp.pool.database.adaptor.DBPostgres=org.postgresql.Driver

-Christopher




Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:

Subject:  [C1]: ESQL pool connection


Hi
when i try connecting to my db i get this error:
java.lang.RuntimeException: Error opening pooled connection: default:
Database type org.postgresql.Driver not implemented.
xml is:
  
   default
...
  

when i used same config, not in pooled connection but in:
  
   org.postgresql.Driver
   jdbc:postgresql://localhost:5432/dbname
   dbuser
   dbpass
   ...
  
it's working just as expected.

Why is that so, and how to use pooled connection?

Thanks in advance,
Hubert.




-
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: Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Morrison, John

Also, check versions - is C2 running with the version you manually generated
the output from?

> -Original Message-
> From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 13 August 2001 3:47 pm
> To: [EMAIL PROTECTED]
> Subject: AW: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Well, you should try it with xalan standalone, to make sure 
> thats really
> a cocoon and not a xalan bug.
> Im quite sure its a xalan bug, not from cocoon, because all XSLT
> processing is managed throgh xalan (as far as i know).
> 
> > -Ursprüngliche Nachricht-
> > Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 13. August 2001 16:42
> > An: Stefan Seifert
> > Betreff: RE: Why doesn't Cocoon2 recognize [position() < 
> last()] ??
> > 
> > 
> > Thanks for the reply. FYI. From a XSL list which says that 
> > this is a Cocoon2
> > bug...
> > 
> > I get the following outputs.
> > 
> > Xalan:
> > 
> > Jeff/555-1234/555-4321/lightgrey
> > David/383-1234/383-4321/lightblue
> > Roger/888-1234/888-4321/lightyellow
> > 
> > MSXML:
> > Jeff/555-1234/555-4321/lightgrey
> > David/383-1234/383-4321/lightblue
> > Roger/888-1234/888-4321/lightyellow
> > 
> > I'm not sure why this isn't working for you. It may be a bug 
> > in Cocoon's
> > position() function. I don't have Cocoon here, but you might 
> > want to try
> > playing around with the predicate and see.
> > 
> > Also, the 
 node inserts
> > carriage-return/line-feed characters, which are usually 
> stripped by a
> > browser, so  is probably more appropriate for your environment.
> > 
> > hope this helps some...
> > 
> > -Original Message-
> > From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> > Sent: August 13, 2001 10:37 AM
> > To: Hewko, Doug
> > Subject: AW: Why doesn't Cocoon2 recognize [position() < 
> last()] ??
> > 
> > 
> > I think in this case, this is not a cocoon-bug, but a 
> xalan-bug (which
> > cocoon uses internally for XSLT), and xalan has its own 
> mailing lists,
> > too (see apache website).
> > 
> > Stefan
> 
> -
> 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]>
> 


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

-
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]>




AW: Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Stefan Seifert

Well, you should try it with xalan standalone, to make sure thats really
a cocoon and not a xalan bug.
Im quite sure its a xalan bug, not from cocoon, because all XSLT
processing is managed throgh xalan (as far as i know).

> -Ursprüngliche Nachricht-
> Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 13. August 2001 16:42
> An: Stefan Seifert
> Betreff: RE: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Thanks for the reply. FYI. From a XSL list which says that 
> this is a Cocoon2
> bug...
> 
> I get the following outputs.
> 
> Xalan:
> 
>   Jeff/555-1234/555-4321/lightgrey
>   David/383-1234/383-4321/lightblue
>   Roger/888-1234/888-4321/lightyellow
> 
> MSXML:
>   Jeff/555-1234/555-4321/lightgrey
>   David/383-1234/383-4321/lightblue
>   Roger/888-1234/888-4321/lightyellow
> 
> I'm not sure why this isn't working for you. It may be a bug 
> in Cocoon's
> position() function. I don't have Cocoon here, but you might 
> want to try
> playing around with the predicate and see.
> 
> Also, the 
 node inserts
> carriage-return/line-feed characters, which are usually stripped by a
> browser, so  is probably more appropriate for your environment.
> 
> hope this helps some...
> 
> -Original Message-
> From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> Sent: August 13, 2001 10:37 AM
> To: Hewko, Doug
> Subject: AW: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> I think in this case, this is not a cocoon-bug, but a xalan-bug (which
> cocoon uses internally for XSLT), and xalan has its own mailing lists,
> too (see apache website).
> 
> Stefan

-
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]>




AW: Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Stefan Seifert

I think in this case, this is not a cocoon-bug, but a xalan-bug (which
cocoon uses internally for XSLT), and xalan has its own mailing lists,
too (see apache website).

Stefan

> -Ursprüngliche Nachricht-
> Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 13. August 2001 16:34
> An: '[EMAIL PROTECTED]'; Stefan Seifert
> Betreff: RE: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Thanks for the reply. Actually, the XSL is valid and it should work
> according to the W3 Recommendations. The only conclusion left 
> is that there
> is a bug in Cocoon2, which is what I am trying to verify. So 
> it was posted
> in the correct list.
> 
> -Original Message-
> From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> Sent: August 13, 2001 8:39 AM
> To: [EMAIL PROTECTED]
> Subject: AW: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> I supposed it is not valid XSL, but i'm not sure.
> Anyway i find the second approach quite easier to read and it works...
> But this is not the right list for such a question - take a 
> look at the
> mulberry-list for XSL:
> http://www.mulberrytech.com/xsl/xsl-list/index.html
> 
> Stefan
> 
> > -Ursprüngliche Nachricht-
> > Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 13. August 2001 14:29
> > An: '[EMAIL PROTECTED]'
> > Cc: ':[EMAIL PROTECTED]'
> > Betreff: RE: Why doesn't Cocoon2 recognize [position() < 
> last()] ??
> > 
> > 
> > Thanks! Using your help, I did get the expected output by 
> > replacing "last()"
> > with the eventual translation, "4". So my new line read "  > test="position()<4"> ". 
> > 
> > Now, can you please explain what you meant by a 
> > "XSL-Problem"? Should my
> > original line work according to the W3 recommendations, or is 
> > it the way the
> > parsers interpret things? Again, it works using MSXML4.0 but 
> > not Cocoon2.
> > Just wondering so I could identify future instances that 
> are similar.
> > 
> > Thanks again.
> > 
> > -Original Message-
> > From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> > Sent: August 13, 2001 8:19 AM
> > To: [EMAIL PROTECTED]
> > Subject: AW: Why doesn't Cocoon2 recognize [position() < 
> last()] ??
> > 
> > 
> > Its not a cocoon, but a XSL-Problem. Try the following:
> > 
> > 
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> > 
> > Stefan
> > 
> > > -Ursprüngliche Nachricht-
> > > Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Montag, 13. August 2001 14:01
> > > An: '[EMAIL PROTECTED]'; cib
> > > Betreff: Why doesn't Cocoon2 recognize [position() < last()] ??
> > > 
> > > 
> > > Hi! I have an XSL stylesheet that I typed from a tutorial and 
> > > it would not
> > > work under Cocoon2. Yet, it worked fine when I used MSXML4. 
> > > (Thus, the only
> > > difference between Cocoon and MS is the parser.)
> > > 
> > > If requested, I can attach the entire stylesheet and XML 
> > > documents, but the
> > > offending template is:
> > > 
> > >   
> > >   
> > >   
> > >   
> > >   
> > > 
> > > 
> > > For some reason, Cocoon does not go through each node in the 
> > > " > > select="*[position() < last()]">" line. The best I could 
> > > get Cocoon2 to
> > > do is to only look at the last node. Does anyone know why?
> > 
> > 
> -
> > 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]>




AW: XML in database, how to pass to Cocoon?

2001-08-13 Thread Stefan Seifert


> I have been using Cocoon 1 for a little while and have been happy with
the
> results. Using the browser I can enter a URL that contains the path to
the
> XML file and then Cocoon renders the PDF in the browser. This  works
well.
> Good job to all involved.
> I do have a couple of questions though.
> 
> 1) The technique described above works well for XML files but in my
> application I will read the XML from a blob in the database (which I
know
> how to do). Say I get the XML from the database and put it into a
String. Is
> there any hooks in Cocoon so that I can call a method and pass it the
XML
> string? Where can I see the Cocoon servlets source?

Use the esql-Stylesheet with get-xml, with this you can put a XML tree
from the database in you xml stream generated by cocoon. The xml has to
be wellformed in the database.

> 2) Has anyone managed to get background images working in FOP?

Never tried.
 
> 3) Has anyone managed to format dates in FOP?

Unfortunately XSLT has no date formatting functions. But you can use the
Java Core classes or you own classes for formatting in XSLT using the
java extension support in Xalan. It's the xalan-specific, of course. The
XSLT 1.1 Specs define a product-inpdependet extension support, but this
does not work in the current xalan-version used by cocoon 2. See
Xalan-Homepage on the apache website.

Stefan

-
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: Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Hewko, Doug

Thanks for the reply. Actually, the XSL is valid and it should work
according to the W3 Recommendations. The only conclusion left is that there
is a bug in Cocoon2, which is what I am trying to verify. So it was posted
in the correct list.

-Original Message-
From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
Sent: August 13, 2001 8:39 AM
To: [EMAIL PROTECTED]
Subject: AW: Why doesn't Cocoon2 recognize [position() < last()] ??


I supposed it is not valid XSL, but i'm not sure.
Anyway i find the second approach quite easier to read and it works...
But this is not the right list for such a question - take a look at the
mulberry-list for XSL:
http://www.mulberrytech.com/xsl/xsl-list/index.html

Stefan

> -Ursprüngliche Nachricht-
> Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 13. August 2001 14:29
> An: '[EMAIL PROTECTED]'
> Cc: ':[EMAIL PROTECTED]'
> Betreff: RE: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Thanks! Using your help, I did get the expected output by 
> replacing "last()"
> with the eventual translation, "4". So my new line read "  test="position()<4"> ". 
> 
> Now, can you please explain what you meant by a 
> "XSL-Problem"? Should my
> original line work according to the W3 recommendations, or is 
> it the way the
> parsers interpret things? Again, it works using MSXML4.0 but 
> not Cocoon2.
> Just wondering so I could identify future instances that are similar.
> 
> Thanks again.
> 
> -Original Message-
> From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> Sent: August 13, 2001 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: AW: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Its not a cocoon, but a XSL-Problem. Try the following:
> 
> 
>   
> 
>   
> 
> 
>   
> 
> 
> Stefan
> 
> > -Ursprüngliche Nachricht-
> > Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 13. August 2001 14:01
> > An: '[EMAIL PROTECTED]'; cib
> > Betreff: Why doesn't Cocoon2 recognize [position() < last()] ??
> > 
> > 
> > Hi! I have an XSL stylesheet that I typed from a tutorial and 
> > it would not
> > work under Cocoon2. Yet, it worked fine when I used MSXML4. 
> > (Thus, the only
> > difference between Cocoon and MS is the parser.)
> > 
> > If requested, I can attach the entire stylesheet and XML 
> > documents, but the
> > offending template is:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > For some reason, Cocoon does not go through each node in the 
> > " > select="*[position() < last()]">" line. The best I could 
> > get Cocoon2 to
> > do is to only look at the last node. Does anyone know why?
> 
> -
> 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]>




XML in database, how to pass to Cocoon?

2001-08-13 Thread Kilmer, Erich

I have been using Cocoon 1 for a little while and have been happy with the
results. Using the browser I can enter a URL that contains the path to the
XML file and then Cocoon renders the PDF in the browser. This works well.
Good job to all involved.
I do have a couple of questions though.

1) The technique described above works well for XML files but in my
application I will read the XML from a blob in the database (which I know
how to do). Say I get the XML from the database and put it into a String. Is
there any hooks in Cocoon so that I can call a method and pass it the XML
string? Where can I see the Cocoon servlets source?

2) Has anyone managed to get background images working in FOP?

3) Has anyone managed to format dates in FOP?

Thanks for your response!

Erich Kilmer




-
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]>




Tomcat-4.0B7, Cocoon2.0B2 - Working Systems update - Long

2001-08-13 Thread Rajkumar, Joseph


Hi Folks
    Over the weekend I decided to update to Apache-1.3.20,
Tomcat-4.0B7, Cocoon2.0B2 and webapp_module-1.0-tc40b7.
Here is the status report on the two systems, I tried it on:
Linux (Mandrake-8.0)
   I had problems with trying to build Cocoon-2.0B2 and resulted
in the "Segmentation Problems" discussed on this list. This happened
when I go the JDK_1.3.1 from Sun site. Hence I decided to use
JDK_1.3.0_02 which can with Mandrake. I got the sources for
Apache_1.3.20, Cocoon2.0B2 and webapp_module and compiled
them from scratch.
   Works wonderfully well.
    Apache, Tomcat, Cocoon (the above mentioned versions)
all work
very well. I got the hypersonicSQL to work and all the examples relating
to Manage, Update employees etc on the Cocoon2 welcome page works
wonderfully well.
Yet to test: Mysql, I have got MM driver and did not have the time
to use it.
Windows-98
   I have got the Tomcat-4.0B7 and Cocoon2.0B2, working
with
Mysql using Mark Mathews drivers working fine. All the "Employee"
and "department" database examples on the Cocoon2 welcome page work
great.
Yet to test:
    Integrate with Apache-1.3.20 using the webapp_module
Regards
Joseph Rajkumar
PS: This email is for those wishing to know what works so far
with Apache-1.3.20, Tomcat-4.0B7 and Cocoon2.0B2.
 


encoding problem

2001-08-13 Thread Roman Lapacz


Hello

I want to ask you haw to set  encoding in Cocoon. I know that it is
described in FAQ section, but I've done everything (I think so)
according to this and the result was '?' sign displaying. Below I show
you details:

in my xml file :






in 'cocoon.properties' file :

processor.xsp.encoding = Cp1250
...
formatter.[type].encoding   = Cp1250
...
formatter.text/html/loose.encoding = Cp1250

--


Any  ideas or solutions,
Thanks

Roman


-
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]>




[C1]: ESQL pool connection

2001-08-13 Thread Hubert NEOtyk Iwaniuk

Hi
when i try connecting to my db i get this error:
java.lang.RuntimeException: Error opening pooled connection: default:
Database type org.postgresql.Driver not implemented.
xml is:
  
   default
...
  

when i used same config, not in pooled connection but in:
  
   org.postgresql.Driver
   jdbc:postgresql://localhost:5432/dbname
   dbuser
   dbpass
   ...
  
it's working just as expected.

Why is that so, and how to use pooled connection?

Thanks in advance,
Hubert.




---
Ausgehende Mail ist zertifiziert virenfrei.
Uberpruft durch AVG Antivirus System (http://www.grisoft.com/de).
Version: 6.0.265 / Virendatenbank: 137 - Erstellungsdatum: 2001-07-18


-
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: disable-output-escaping="yes"

2001-08-13 Thread William Bagby

>From giacomo:

>So why don't you send a patch to solve it?
>
>Giacomo

>From Donald Ball:

>> Have you tried adding the disable-output-escaping="yes" to your

>> or  tags? This may do what you want.
>>
>> e.g. > select="/element/mdinsert"/>
>
>read the faq. disable-output-escaping is not allowed in c1.
>
>- donald

Notice he doesn't say "not implemented".  He says "not allowed".  This
doesn't seem to me to be something that can, should, or needs to be
'patched'. It wasn't simply an oversight on the part of the Cocoon
developers, it was a conscious decision to disallow it.

William.


-Original Message-
From: giacomo [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 2:45 PM
To: '[EMAIL PROTECTED]'
Subject: RE: disable-output-escaping="yes"


On Fri, 10 Aug 2001, William Bagby wrote:

> Roger,
>
> Xalan supports this feature just fine. It's Cocoon that does 
not (please
> correct me if I am mistaken). I face a problem similar to 
yours - I need to
> grab small HTML fragments (which may or may not be 
well-formed) from a DB
> and drop them into a page, and disable-output-escaping would 
be the perfect
> solution. Alas, it is not supported.
>
> 
> After asking for help on this list, I received lots of 
references to "bad
> programming style" and "better ways of doing it", but have 
yet to receive a
> *practical* alternative to disable-output-escaping. I am a 
vocal proponent
> of Cocoon among my peers.  I absolutely love it, and I recommend it to
> everyone. But this 'minor detail' has become a rather large 
thorn in my
> side.
> 

So why don't you send a patch to solve it?

Giacomo

>
> William Bagby.
>
> -Original Message-
> From: Roger Brooks [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 10:40 AM
> To: '[EMAIL PROTECTED]'
> Subject: disable-output-escaping="yes"
>
>
> We are migrating text data from a legacy system to one which
> uses Cocoon for
> presentation.  In some cases the legacy data contain line
> breaks, which we
> wish to reproduce on the new system.  The easiest way to do
> this appears to
> be to embed "" in the data where the line breaks should
> occur.  These
> are then output to XML as "
" Some XSLT engines (such as > InstantSAXON 6.1) will then obligingly issue the required > in the HTML > output stream, provided one includes > disable-output-escaping="yes" in the > appropriate xsl directive. > > Unfortunately, Xalan does not support this attribute. > Furthermore, Cocoon > wishes to discourage this (see > http://xml.apache.org/cocoon/faqs.html#faq-disableescaping > ). One > alternative which occurred to us is to embed and tags > in the data > and then handle these in XSL on output. This solution requires > quite a bit > more effort than the above solution, however, particularly as > the text in > question is presently output in XML as an ATTRIBUTE and not as > the content > of an ELEMENT. > > In view of the effort involved for the implementation described > above, I am > sorely tempted to replace Xalan with another XSLT-transformer. > > Questions: > 1.Where can I download a copy of > org.apache.cocoon.transformer.SAXONTransformer? > 2.Will this solve the problem? > 3.Can someone recommend an alternative solution we > haven't thought of? > > Thanks in advance! > > > > Löwenfels Partner AG > Roger Brooks > Haldenstrasse 6 > 6006 Luzern > > Telefon +41-41-418 44 00Fax +41-41-418 44 44 > Direkt+41-41-418 44 64 > > E-mail [EMAIL PROTECTED] > www http://www.loewenfels.ch > > > > ** > * >>> > NEHMEN SIE AN > UNSERER UMFRAGE TEIL UND GEWINNEN SIE EINEN PALM <<< * > > > ** > > > > > - > 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 y

Producer class not found

2001-08-13 Thread Mark Wright

I realise that this has been covered before but I can't seem to find a
satisfactory answer.

I've created a custom producer (interrogates a third party server) but I get
the familiar class not found exception from Cocoon.

java.lang.RuntimeException: Error creating myProducer: class is not found at
org.apache.cocoon.framework.Manager.create(Manager.java, Compiled Code) at
org.apache.cocoon.framework.Manager.create(Manager.java:86)...etc etc
The classes are in my classpath, there's no sign of the dreaded
ProducerFromRequest in my properties file so what have I done wrong?
BTW I'm running iPlanet Webserver on NT4 (sp 6), JDK 1.3.1
Thanks in advance

Mark

-
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]>




AW: Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Stefan Seifert

I supposed it is not valid XSL, but i'm not sure.
Anyway i find the second approach quite easier to read and it works...
But this is not the right list for such a question - take a look at the
mulberry-list for XSL:
http://www.mulberrytech.com/xsl/xsl-list/index.html

Stefan

> -Ursprüngliche Nachricht-
> Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 13. August 2001 14:29
> An: '[EMAIL PROTECTED]'
> Cc: ':[EMAIL PROTECTED]'
> Betreff: RE: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Thanks! Using your help, I did get the expected output by 
> replacing "last()"
> with the eventual translation, "4". So my new line read "  test="position()<4"> ". 
> 
> Now, can you please explain what you meant by a 
> "XSL-Problem"? Should my
> original line work according to the W3 recommendations, or is 
> it the way the
> parsers interpret things? Again, it works using MSXML4.0 but 
> not Cocoon2.
> Just wondering so I could identify future instances that are similar.
> 
> Thanks again.
> 
> -Original Message-
> From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
> Sent: August 13, 2001 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: AW: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Its not a cocoon, but a XSL-Problem. Try the following:
> 
> 
>   
> 
>   
> 
> 
>   
> 
> 
> Stefan
> 
> > -Ursprüngliche Nachricht-
> > Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 13. August 2001 14:01
> > An: '[EMAIL PROTECTED]'; cib
> > Betreff: Why doesn't Cocoon2 recognize [position() < last()] ??
> > 
> > 
> > Hi! I have an XSL stylesheet that I typed from a tutorial and 
> > it would not
> > work under Cocoon2. Yet, it worked fine when I used MSXML4. 
> > (Thus, the only
> > difference between Cocoon and MS is the parser.)
> > 
> > If requested, I can attach the entire stylesheet and XML 
> > documents, but the
> > offending template is:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > For some reason, Cocoon does not go through each node in the 
> > " > select="*[position() < last()]">" line. The best I could 
> > get Cocoon2 to
> > do is to only look at the last node. Does anyone know why?
> 
> -
> 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: Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Hewko, Doug

Thanks! Using your help, I did get the expected output by replacing "last()"
with the eventual translation, "4". So my new line read "  ". 

Now, can you please explain what you meant by a "XSL-Problem"? Should my
original line work according to the W3 recommendations, or is it the way the
parsers interpret things? Again, it works using MSXML4.0 but not Cocoon2.
Just wondering so I could identify future instances that are similar.

Thanks again.

-Original Message-
From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
Sent: August 13, 2001 8:19 AM
To: [EMAIL PROTECTED]
Subject: AW: Why doesn't Cocoon2 recognize [position() < last()] ??


Its not a cocoon, but a XSL-Problem. Try the following:


  

  


  


Stefan

> -Ursprüngliche Nachricht-
> Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 13. August 2001 14:01
> An: '[EMAIL PROTECTED]'; cib
> Betreff: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Hi! I have an XSL stylesheet that I typed from a tutorial and 
> it would not
> work under Cocoon2. Yet, it worked fine when I used MSXML4. 
> (Thus, the only
> difference between Cocoon and MS is the parser.)
> 
> If requested, I can attach the entire stylesheet and XML 
> documents, but the
> offending template is:
> 
>   
>   
>   
>   
>   
> 
> 
> For some reason, Cocoon does not go through each node in the 
> " select="*[position() < last()]">" line. The best I could 
> get Cocoon2 to
> do is to only look at the last node. Does anyone know why?

-
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]>




AW: Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Stefan Seifert

Its not a cocoon, but a XSL-Problem. Try the following:


  

  


  


Stefan

> -Ursprüngliche Nachricht-
> Von: Hewko, Doug [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 13. August 2001 14:01
> An: '[EMAIL PROTECTED]'; cib
> Betreff: Why doesn't Cocoon2 recognize [position() < last()] ??
> 
> 
> Hi! I have an XSL stylesheet that I typed from a tutorial and 
> it would not
> work under Cocoon2. Yet, it worked fine when I used MSXML4. 
> (Thus, the only
> difference between Cocoon and MS is the parser.)
> 
> If requested, I can attach the entire stylesheet and XML 
> documents, but the
> offending template is:
> 
>   
>   
>   
>   
>   
> 
> 
> For some reason, Cocoon does not go through each node in the 
> " select="*[position() < last()]">" line. The best I could 
> get Cocoon2 to
> do is to only look at the last node. Does anyone know why?

-
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]>




Why doesn't Cocoon2 recognize [position() < last()] ??

2001-08-13 Thread Hewko, Doug

Hi! I have an XSL stylesheet that I typed from a tutorial and it would not
work under Cocoon2. Yet, it worked fine when I used MSXML4. (Thus, the only
difference between Cocoon and MS is the parser.)

If requested, I can attach the entire stylesheet and XML documents, but the
offending template is:








For some reason, Cocoon does not go through each node in the "" line. The best I could get Cocoon2 to
do is to only look at the last node. Does anyone know why?

-
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]>




C2 - PhpGenerator

2001-08-13 Thread Jan



Hi,
 
I am experiencing problems with setting up PHP as 
generator for c2.
Having recompiled c2 with phpsrvlt.jar and 
php_java.jar in the lib directory without problems now I get the attached error 
message on sites that use the PhpGenerator.
The two jar files I got from a friend of mine two 
days ago but I cannot reach him, so I have no clue where they are from and 
whether or not they are the most recent version - c2 is the latest CVS checkout 
(from yesterday at least). So if somebody knows what to do or where I can get 
these jar files - maybe including some documentation - please 
answer.
 
Thxia,
Jan.
 
 
Internal Servlet Error:java.lang.UnsatisfiedLinkError: no phpsrvlt in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
	at java.lang.Runtime.loadLibrary0(Runtime.java:749)
	at java.lang.System.loadLibrary(System.java:820)
	at net.php.reflect.loadLibrary(reflect.java:34)
	at net.php.reflect.(reflect.java:29)
	at net.php.servlet.init(servlet.java:131)
	at org.apache.cocoon.generation.PhpGenerator.generate(PhpGenerator.java:146)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:219)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:363)
	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN24B(sitemap_xmap.java:2917)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2155)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2067)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:103)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:423)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:535)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)
	at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:500)
	at org.apache.tomcat.core.Handler.service(Handler.java:223)
	at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:448)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:788)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:701)
	at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:143)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:424)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:497)
	at java.lang.Thread.run(Thread.java:484)



serialized HTML output

2001-08-13 Thread Ling Kok Choon

hi,

 I use cocoon2's to aggregate some xml files, but i found
 found the HTML result or output is in well form, means e.g.

 
 
 will become:

 
 
 
 
 but is it any way to make it original, means the output will still remain the first 
pattern 
above.


Thank you.


Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/13/01
Time: 18:11:01

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions


-
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]>




Singleton class initialization

2001-08-13 Thread Michael Homeijer

Hi,

If have a singleton class that needs to be initialized with the
ServletConfig object.
Because I don't want to have to check and call the initialization
everywhere, can I perform this kind of initialization when Cocoon is start
up?
(Some sort of initclass parameter in cocoon.xconf or in the sitemap maybe?)

TIA,
Michael Homeijer

-
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: Using action return value in xsp

2001-08-13 Thread Giacomo Pati

Quoting Michael Homeijer <[EMAIL PROTECTED]>:

> In an action i return a HashMap to the sitemap, one of the elements in
> this
> HashMap is a HashMap.
> My question is, how do I get this second HashMap in an xsp page.
> 
> From the documentation of the Parameters object, I read that I can only
> get
> string parameters from it.
> How can I pass complex objects from an action to an xsp page?

Put those object into the request like request.setAttribute("name", map) and 
read them in your XSP page like request.getAttribute("name");

Giacomo

> 
> TIA,
> Michael
> 
> -
> 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]>




[C2b2] util:include-uri bug

2001-08-13 Thread ozawa

Hello.
I have found a bug in Cocoon2 beta2.

When  is set as follows:
 
   http://localhost:8080/aaa/aaa
 

Cocoon generates:
String __name = String.valueOf(this.characters("http://localhost:8080/aaa/aaa";););

Then, it fails to compile the code.
The error indicates that "this.characters(" and ");" are not needed.

There's no problem to write href as an attribute as follows:
 http://localhost:8080/aaa/aaa"/>

I also suspect other  tags have similar problems,
although I have not tested yet.

By the way, I wish I could write a relative address in href.


takuma

-
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: HTTP request parameter

2001-08-13 Thread Mohsin Ali

Hi,
Try ?userID='123456' and it hopefully it will work.
Mohsin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: 10 August 2001 08:52
To: [EMAIL PROTECTED]
Subject: RE: HTTP request parameter

Thanks for the tip; unfortunately it didn't work.

java.lang.RuntimeException: Error executed prepared statement:
select
name as reg_name,  deviceID as reg_deviceID,
description as reg_description,  startTime as reg_startTime,
endTime as reg_endTime   from user, terminal, deviceType,
registration
where terminal.userID = ? and user.userID = terminal.userID
and deviceType.deviceType = terminal.deviceType and
registration.terminalID = terminal.terminalID; 
at
_var._tomcat._webapps._cocoon._vt._welcome._welcome.populateDocument(_we
lcom
e.java:379)
at
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:5
27)
at org.apache.cocoon.Engine.handle(Engine.java:384)
at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnec
tion
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
at java.lang.Thread.run(Thread.java:484)

/Anne Marie

-Original Message-
From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Sent: 9. august 2001 18:09
To: [EMAIL PROTECTED]
Subject: Re: HTTP request parameter



Anne Marie,

try

  select name as reg_name,
 deviceID as reg_deviceID,
 description as reg_description,
 startTime as reg_startTime,
 endTime as reg_endTime
  from user, terminal, deviceType, registration
  where terminal.userID =
  
   
  
and user.userID = terminal.userID
and deviceType.deviceType = terminal.deviceType
and registration.terminalID = terminal.terminalID;


Replace "int" with "long" or "string", as necessary to match your field
type.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  HTTP request parameter


Hi,

what is required to get the http request parameter to work? I have

[...]
http://www.apache.org/1999/XSP/Core";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";
  xmlns:request="http://www.apache.org/1999/XSP/Request";
<<---HERE
>
[...]


  select name as reg_name,
 deviceID as reg_deviceID,
 description as reg_description,
 startTime as reg_startTime,
 endTime as reg_endTime
  from user, terminal, deviceType, registration
  where terminal.userID = 
<<---HERE
and user.userID = terminal.userID
and deviceType.deviceType = terminal.deviceType
and registration.terminalID = terminal.terminalID;

[...]

As far as I have understood, I can then put

?userID=123456

at the end of the url, e.g.
-
http://localhost/welcome.xml?userID=123456

and 123456 will be used. But it's not working, so I guess I'll have to
add
something somewhere? I don't get any error messages, but I don't get any
data from the query either. The query works when I use

---
 //(in the DTD)

[...]

and terminal.userID = &userID; //(in the query)
---

I'm using Cocoon 1.8.2

/Anne Marie





-
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 PRO

Using action return value in xsp

2001-08-13 Thread Michael Homeijer

In an action i return a HashMap to the sitemap, one of the elements in this
HashMap is a HashMap.
My question is, how do I get this second HashMap in an xsp page.

>From the documentation of the Parameters object, I read that I can only get
string parameters from it.
How can I pass complex objects from an action to an xsp page?

TIA,
Michael

-
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]>