AW: Adding dynamically element

2001-06-11 Thread Jörn Heid

Sorry, that doesn't work as XSP couldn't be a transformer (in C1 it can).
I have written my own transformer and I think that's the only possibility.
As mentioned, my source is a normal xml file and could not be a xsp.

But thanks for your answer.

-Ursprüngliche Nachricht-
Von: Martin Man [mailto:[EMAIL PROTECTED]]Im Auftrag von Martin Man
Gesendet: Montag, 11. Juni 2001 11:37
An: Jorn Heid
Cc: [EMAIL PROTECTED]
Betreff: Re: Adding dynamically element


On Sun, Jun 10, 2001 at 04:53:37PM +0200, Jorn Heid wrote:
> Yes... As XSP is a generator, should I write my own transformer or
> aggregator... Give me an answer, please... ;(
>
> The question again:
> I want to produce a html from a xml (not XSP) page but depending on the
> session object there moght be an additional element. In C1 it worked with
> XML->XSP->XSLT->HTML. But how does it (best) work with C2?
> XML->Aggreation->XSLT->HTML or XML->MyTransformer->XSLT->HTML?
>
in c2 you do it best using XSP, handling session, and xincluding (look at
aggregate.xsp sample) static xml content



rgds,
martin

--

---
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

-
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: [C2] : not really OK !!

2001-06-11 Thread Samuel ARNOD-PRIN


You are both right, I've noticed this difference in the xsp compiled
java file.

But would there be a way to parse the xsp file to generate the java file
and handling this ??




code 1


value





would become in java for example :

Stack <-- "mytag"

code 1
addAttribute for head of stack : toto = value


Stack <-- "mytag2"
Stack -> create mytag2 with attributes = null


then

Stack -> mytag creation, with attributes toto..


would be this too long to the runtime ?

Is there one dtd or schema for apache.org/xsp namespace that specify
this ?

-
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 auth taglib

2001-06-11 Thread mtcolom



-- Messaggio Originale --

>On Mon, 11 Jun 2001, Matteo Colombo wrote:
>
>> Hi,
>> I checked the session, auth:role and auth:group had the right values!!!
>> What's it wrong? Can I call session parameters from an XSL file?
>
>No you can't. In that case you have to encode the params as request
>parameters and do:

Sorry I'm not very expert with Java: How do you "encode" session params
as request params?

>
>
>Ulrich
>
>
Thanks Matteo




www.jumpy.com - Internet and email for free in Italy and Spain - Enjoy our community!


-
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 with xinclude

2001-06-11 Thread Jörn Heid

I used the following in the sitemap:

..






and the following xml file
http://www.w3.org/1999/XML/xinclude";>

...


I got the following error (in WEB-INF/logs):

ile:/d:/www/N3K/public/company/about_us.xml
ERROR   8962[cocoon  ] (tcpConnection-6802-0): FileGenerator.generate()
java.util.EmptyStackException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1048)
at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:72)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:220)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344)

and in the browser

"resource-not-found"

Any idea?

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




PDF format not seen in Internet Explorer browser

2001-06-11 Thread Veeramani S

Hi All,

> I have an xml file which has to be converted to PDF format.  The PDF file
> can be opened or viewed only when I work with the Netscape Communicator
> 4.51 and above versions.  But I am not able to view or open the PDF file
> when working with Internet Explorer 5 browser.  I am running this XML file
> using IPLANET webserver.  I am using cocoon's xslt ptocessor to convert to
> PDF format.  I have attached both the xml and the xsl file used to
> tranform it.  Somebody please help me.  
> 
> regards,
> Hema.
> 
>  <>  <> 

 subpdf.xml
 subpdf.xsl

-
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: concept diagram of the Cocoon framework

2001-06-11 Thread David Crossley

Thanks, to the couple of people who provided
feedback about the diagram. I was concerned that
my protrayal of the cache was too simplistic.
The feedback confirmed that. Now there is a
new version at the same URL.

The cache is now portrayed as a background fabric
mesh. It indicates that certain points on the
pipeline are cached and can draw from the cache.
Please tell me if I have mis-represented any
places that can potentially utilise the cache.

thanks, David Crossley

--
> Date: Thu, 7 Jun 2001 18:56:27 +1000
> From: David Crossley <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
>
> I have been confused - the remedy was to draw a
> picture. I did use Google to search the mail
> archives for a concept diagram, to no avail.
> 
> So I have prepared a diagram of the Cocoon framework
> www.indexgeo.com.au/tech/cocoon/metamorph.html
> 
> It attempts to portray the required foundation
> components, indicates that the sitemap and the
> cache are crucial, and then shows one of many
> possible processing pipelines.
> 
> Would more experienced people please provide some
> criticism. I am still not clear as to how some
> Jakarta projects fit with Cocoon, e.g.
> Struts ... is that just another taglib?
> Turbine ... ??
> 
> thanks, David Crossley

-
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: Cocoon documentation ???

2001-06-11 Thread David Crossley

For some strange reason, you still need to print all
Cocoon documentation using "landscape orientation".


KUMAR,PANKAJ wrote:
>> -Original Message-
>> From: Sylvain BERGEON [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, June 06, 2001 1:41 PM
>
>> Does anybody knows about printable documentation that talk 
>> about Cocoon concepts like
>> producers / processors / transformers, whith shemas 
>> (graphics), that could be understood by the newBie I am ???
>
> You can give it a try at http://xml.apache.org/cocoon2/uc2.html
>
>> I tried to print out some of the xml.apache.org docs but the 
>> layer is larger than a page and so it's cropped.
>
> If you like Microsoft PPT version, you can find that at 
> http://www.pankaj-k.net/uc2/uc2.PPT
>
> Sylvain Bergeon,

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




namespaces in XSLT

2001-06-11 Thread Jan



How can someone remove all namespaces during a 
tranformation? The cocoon processor copies the source documents ns declarations 
into the first node of the target xml file. Is there a way to remove them? This 
is the only thing we're missing to finally validate our xhtml 1.0 
document.
thanks
  Jan


Re: Publishing Engine could not be initialized

2001-06-11 Thread Gritsenko

My case:

both cocoon.properties and web.xml are in

C:\tomcat\webapps\cocoon\WEB-INF


See these attached.

Viktor

- Original Message -
From: "Joel Benveniste" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 6:01 PM
Subject: Re: Publishing Engine could not be initialized


> Hello...
>
> I've been looking into this problem and it seems that it comes from the
> cocoon.properties line 164.
>
> I really need help on this one...anyone??? just a little direction...
>
> Thanks
> JOEL
>
>
>
> JOEL BENVENISTE wrote:
>
> >
> > Hi all,
> >
> > I am trying to get cocoon working within Weblogic and am getting the
> > error listed below...
> >
> > This is my first time working with cocoon...can anyone help me...
> >
> > Thanks
> > JOEL
> >
> >
> >
> > Publishing Engine could not be initialized.
> >
> > java.lang.RuntimeException: Error loading logicsheet at
> > resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl due
> > to java.lang.Exception: Resource not found or retrieving error.
> > at
> > org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
> > at org.apache.cocoon.framework.Manager.create(Manager.java:109)
> > at org.apache.cocoon.framework.Router.init(Router.java:80)
> > at org.apache.cocoon.framework.Manager.create(Manager.java:109)
> > at org.apache.cocoon.Engine.(Engine.java:179)
> > at org.apache.cocoon.Engine.getInstance(Engine.java:232)
> > at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
> > at
> >
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:474)
> >
> > at
> >
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:432)
> >
> > at
> >
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:421)
> >
> > at
> >
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
1)
> >
> > at
> >
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
> >
> > at
> >
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:761)
> >
> > at
> >
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:708)
> >
> > at
> >
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
> >
> > at
> >
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
> > at
> > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
> >
> >
> > -
> > 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]>
>




http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>

	
		org.apache.cocoon.Cocoon
		org.apache.cocoon.Cocoon
		
			properties
			/WEB-INF/cocoon.properties
		
	
	
		org.apache.cocoon.Cocoon
		*.xml
	


 cocoon.properties

-
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: Publishing Engine could not be initialized

2001-06-11 Thread Joel Benveniste

Hello...

I've been looking into this problem and it seems that it comes from the 
cocoon.properties line 164.

I really need help on this one...anyone??? just a little direction...

Thanks
JOEL



JOEL BENVENISTE wrote:

> 
> Hi all,
> 
> I am trying to get cocoon working within Weblogic and am getting the 
> error listed below...
> 
> This is my first time working with cocoon...can anyone help me...
> 
> Thanks
> JOEL
> 
> 
> 
> Publishing Engine could not be initialized.
> 
> java.lang.RuntimeException: Error loading logicsheet at 
> resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl due 
> to java.lang.Exception: Resource not found or retrieving error.
> at 
> org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
> at org.apache.cocoon.framework.Manager.create(Manager.java:109)
> at org.apache.cocoon.framework.Router.init(Router.java:80)
> at org.apache.cocoon.framework.Manager.create(Manager.java:109)
> at org.apache.cocoon.Engine.(Engine.java:179)
> at org.apache.cocoon.Engine.getInstance(Engine.java:232)
> at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
> at 
> weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:474) 
> 
> at 
> weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:432) 
> 
> at 
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:421) 
> 
> at 
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181) 
> 
> at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118) 
> 
> at 
> 
>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
> 
> 
> at 
> 
>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
> 
> 
> at 
> 
>weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
> 
> 
> at 
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
> at 
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
> 
> 
> -
> 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]>




XInclude-Transformer

2001-06-11 Thread Jörn Heid


Are there any intensions to extend the funcionality of the xinclude
transformer to support parameter processing like this:

  xml
  ../menu.xml

It isn't possible now, is it?


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




XML and browsers

2001-06-11 Thread francesco.casalena

Hi,
I'm running Tomcat 4.0 m5 with Cocoon2 on Apache 3.1.19 and mod_webapp.

Scenario:

1)lynx http://localhost:8080/examples/servlets/ shows Tomcat's examples
(servlets and JSP) file correctly.

2)lynx http://localhost:8080/examples/cocoon/ shows Cocoon's xml files correctly

3)lynx http://localhost/examples/servlets/ works as 1)

4)lynx http://localhost/examples/cocoon/ has a strange behaviour.
  When I select an xml file, browser asks me if I would save the file on   hard disk. \
Now it doesn't recognise .xml extension!  The same with Netscape.

Is this a problem in httpd.conf or in server.xml (or in web.xml)?

Any answer wellcome!

Regards, ciao
Francesco

PS The same message has been posted on tomcat-user. This is because
my problem seems between Tomcat and Apache but it's a XML-related one.

Francesco Casalena
L.U.G. "Il Pinguino"
--
Virgilio Mail - Il tuo indirizzo E-mail gratis
http://mail.virgilio.it


-
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] trying to connect to X11?

2001-06-11 Thread Eirik Dentz

Just to add my 2 ¢ to Berin's explanation:
Xvfb worked for me:  http://www.google.com/keyword/keyword/Xvfb

If you search the cocoon-users mailing list archive, I think there are some
other alternatives.

I probably have much less experience than Berin in these matters, but for
what it's worth, I found that I was able to get the .SVG examples working on
a headless Linux server by running Xvfb and setting the DISPLAY variable to
:0

Good luck.

eirik

> From: Berin Loritsch <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Mon, 11 Jun 2001 15:48:28 -0400
> To: [EMAIL PROTECTED]
> Subject: Re: [C2] trying to connect to X11?
> 
> Drasko Kokic wrote:
>> 
>> --- Berin Loritsch <[EMAIL PROTECTED]> wrote:
>>> Dan J Fraser wrote:
 
 Hope this isn't a FAQ... It's not mentioned on the
>>> cocoon website.
>>> 
>>> Batik uses Java SWING, which in turn requires an
>>> XWindows environment.
>>> There are two things you can do to get it to work:
>>> 
>>> 1) Install an XServer (a simple FrameBuffer Xserver
>>> will do), and set
>>> the environment variable "DISPLAY" to the proper
>>> value (something
>>> like "127.0.0.1", consult your X Server's
>>> documentation)
>>> 
>>> 2) Remove all references to Batik in the sitemap
>>> (this removes your
>>> ability to dynamically create graphics based on
>>> SVG files).
>>> 
>> 3) Use JDK 1.4 (still in pre-release)
> 
> JDK 1.4 uses JDBC 3.0 which is not compatible with Avalon.
> This is an issue that was discovered early in testing with
> JDK 1.4.  Once we resolve that issue, we will reexamine
> using JDK 1.4.
> 
>> 
 
 When I try to start C2 for the first time, I get
>>> this:
 
 ERROR   4684[cocoon  ] (Thread-35): Error
>>> compiling sitemap
 java.lang.InternalError: Can't connect to X11
>>> window server using ':0.0' as
 the
 value of the DISPLAY variable.
 at
>>> sun.awt.X11GraphicsEnvironment.initDisplay(Native
>>> Method)
 at
 
>>> 
>> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:5
 8)
 at java.lang.Class.forName0(Native Method)
 server# locate jserv.properties
 
 
 Why is it trying to connect to an X server?  How
>>> can I tell it not to?
 
 --
 Dan J. Fraser <[EMAIL PROTECTED]>
 PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61
>>> 18 B9 D1 17 CE)
 "Keep America beautiful.  Swallow your beer cans."
 
 
>>> 
>> -
 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]>
>>> 
>> 
>> __
>> Do You Yahoo!?
>> Get personalized email addresses from Yahoo! Mail - only $35
>> a year!  http://personal.mail.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]>
> 
> -
> 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: Using auth taglib

2001-06-11 Thread Uli Mayring

On Mon, 11 Jun 2001, Matteo Colombo wrote:

> Hi,
> I'm using auth taglib (http://ulim.cocoonhost.com).
> I've a problem to submit you. After authentication I go to reserved.xml that
> makes a query, it get two value and put those in the session (with the names
> auth:group and auth:role), now I'm trying to retrieve those two in
> reserved.xsl (that is a filter applied to reserved.xml) in this way:
> 
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:auth="http://ulim.cocoonhost.com/auth";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";>
> 
>
>   
>   
>
> 
> 
>   but "$role" e "$group" are empty!!!.
> I checked the session, auth:role and auth:group had the right values!!!
> What's it wrong? Can I call session parameters from an XSL file?

No you can't. In that case you have to encode the params as request
parameters and do:



Ulrich


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




Publishing Engine could not be initialized

2001-06-11 Thread JOEL BENVENISTE


Hi all,

I am trying to get cocoon working within Weblogic and am getting the 
error listed below...

This is my first time working with cocoon...can anyone help me...

Thanks
JOEL



Publishing Engine could not be initialized.

java.lang.RuntimeException: Error loading logicsheet at 
resource://org/apache/cocoon/processor/xsp/library/java/cookie.xsl due 
to java.lang.Exception: Resource not found or retrieving error.
at org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
at org.apache.cocoon.framework.Manager.create(Manager.java:109)
at org.apache.cocoon.framework.Router.init(Router.java:80)
at org.apache.cocoon.framework.Manager.create(Manager.java:109)
at org.apache.cocoon.Engine.(Engine.java:179)
at org.apache.cocoon.Engine.getInstance(Engine.java:232)
at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:474)
at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:432)
at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:421)
at 
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:181)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:761)
at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:708)
at 
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:252)
at 
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)


-
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] trying to connect to X11?

2001-06-11 Thread Berin Loritsch

Drasko Kokic wrote:
> 
> --- Berin Loritsch <[EMAIL PROTECTED]> wrote:
> > Dan J Fraser wrote:
> > >
> > > Hope this isn't a FAQ... It's not mentioned on the
> > cocoon website.
> >
> > Batik uses Java SWING, which in turn requires an
> > XWindows environment.
> > There are two things you can do to get it to work:
> >
> > 1) Install an XServer (a simple FrameBuffer Xserver
> > will do), and set
> >the environment variable "DISPLAY" to the proper
> > value (something
> >like "127.0.0.1", consult your X Server's
> > documentation)
> >
> > 2) Remove all references to Batik in the sitemap
> > (this removes your
> >ability to dynamically create graphics based on
> > SVG files).
> >
> 3) Use JDK 1.4 (still in pre-release)

JDK 1.4 uses JDBC 3.0 which is not compatible with Avalon.
This is an issue that was discovered early in testing with
JDK 1.4.  Once we resolve that issue, we will reexamine
using JDK 1.4.

> 
> > >
> > > When I try to start C2 for the first time, I get
> > this:
> > >
> > > ERROR   4684[cocoon  ] (Thread-35): Error
> > compiling sitemap
> > > java.lang.InternalError: Can't connect to X11
> > window server using ':0.0' as
> > > the
> > > value of the DISPLAY variable.
> > > at
> > sun.awt.X11GraphicsEnvironment.initDisplay(Native
> > Method)
> > > at
> > >
> >
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:5
> > > 8)
> > > at java.lang.Class.forName0(Native Method)
> > > server# locate jserv.properties
> > >
> > >
> > > Why is it trying to connect to an X server?  How
> > can I tell it not to?
> > >
> > > --
> > > Dan J. Fraser <[EMAIL PROTECTED]>
> > > PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61
> > 18 B9 D1 17 CE)
> > > "Keep America beautiful.  Swallow your beer cans."
> > >
> > >
> >
> -
> > > 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]>
> >
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.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]>

-
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] trying to connect to X11?

2001-06-11 Thread Drasko Kokic


--- Berin Loritsch <[EMAIL PROTECTED]> wrote:
> Dan J Fraser wrote:
> > 
> > Hope this isn't a FAQ... It's not mentioned on the
> cocoon website.
> 
> Batik uses Java SWING, which in turn requires an
> XWindows environment.
> There are two things you can do to get it to work:
> 
> 1) Install an XServer (a simple FrameBuffer Xserver
> will do), and set
>the environment variable "DISPLAY" to the proper
> value (something
>like "127.0.0.1", consult your X Server's
> documentation)
> 
> 2) Remove all references to Batik in the sitemap
> (this removes your
>ability to dynamically create graphics based on
> SVG files).
> 
3) Use JDK 1.4 (still in pre-release)

> > 
> > When I try to start C2 for the first time, I get
> this:
> > 
> > ERROR   4684[cocoon  ] (Thread-35): Error
> compiling sitemap
> > java.lang.InternalError: Can't connect to X11
> window server using ':0.0' as
> > the
> > value of the DISPLAY variable.
> > at
> sun.awt.X11GraphicsEnvironment.initDisplay(Native
> Method)
> > at
> >
>
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:5
> > 8)
> > at java.lang.Class.forName0(Native Method)
> > server# locate jserv.properties
> > 
> > 
> > Why is it trying to connect to an X server?  How
> can I tell it not to?
> > 
> > --
> > Dan J. Fraser <[EMAIL PROTECTED]>
> > PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61
> 18 B9 D1 17 CE)
> > "Keep America beautiful.  Swallow your beer cans."
> > 
> >
>
-
> > 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]>
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.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]>




AW: C2: Java class as transformer

2001-06-11 Thread Felix Knecht

Hi Axel

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. Juni 2001 13:26
> An: [EMAIL PROTECTED]
> Betreff: C2: Java class as transformer
>
>
> Hi,
> I am using version 2.0a7 and want to add my own transformer
> which is a java
> class (extending AbstractTransformer). The problems arising are:
>
> 1) Where do I have to add the transformer name and class
> name? Only in the
> sitemap file or also in the cocoon.xconf (and how would it
> look like in
> cocoon.xconf)?

Just add it in the sitemap.map under .


Felix
>
> 2) When I put the class in the package
> org.apache.cocoon.transformation and
> add the appropriate ...line in the sitemap
> all works well
> but in my own package the IllegalAccessException "object ... is not a
> Component" is thrown. Why that?
>
> Any help will be appreciated!
>
> Thanks,
> Axel Guicking
>
>
>
> -
> 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]>




cocoon.properties + xml.jar

2001-06-11 Thread Per Allan Johansson

Can anybody send me a copy of a
cocoon.properties-file on a windows
system? I also seem to be missing the
xml.jar file! Can anybody send me this
one? Do I need it?

I'm trying to use Cocoon2.0b1.
The damn thing just won't start!

___ 
Kind regards

Per Allan Johansson  Tel: 22707441
GAN Media AS Fax: 22707450
Fyrstikkalleen 7 Mobil: 90576150
Pb. 6435 Etterstad   e-post: [EMAIL PROTECTED]
0604  OSLO   www.gan.no/media
NORWAY
___


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




java.lang.VerifyError

2001-06-11 Thread Parvinder Arora

Hello,

  This is in regard to java.lang.VerifyError . I am also experiencing it.
Scott Jones got relieved of it by using IBM jdk1.3. Should I also do the same
or is some other way. The message is Illegal target of Jump or branch. Please
Help. How can we avoid it.

   Parvinder.

   <[EMAIL PROTECTED]>
   


Get free email and a permanent address at http://www.netaddress.com/?N=1

-
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: Adding dynamically element

2001-06-11 Thread Martin Man

On Sun, Jun 10, 2001 at 04:53:37PM +0200, Jorn Heid wrote:
> Yes... As XSP is a generator, should I write my own transformer or
> aggregator... Give me an answer, please... ;(
> 
> The question again:
> I want to produce a html from a xml (not XSP) page but depending on the
> session object there moght be an additional element. In C1 it worked with
> XML->XSP->XSLT->HTML. But how does it (best) work with C2?
> XML->Aggreation->XSLT->HTML or XML->MyTransformer->XSLT->HTML?
> 
in c2 you do it best using XSP, handling session, and xincluding (look at
aggregate.xsp sample) static xml content



rgds,
martin

-- 
---
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223

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




Formating !

2001-06-11 Thread Gustavo Mejia

> Hi,
>
> I am new using cocoon, I am get results using a query, and now I wan format that 
>information, could you
> tell how can I do that ? I know that I need XSL document, I already try with this, 
>and I did't get it.
> here my code ..
>
> 
> 
>
>language="java"
>   xmlns:sql="http://www.apache.org/1999/SQL";
>   xmlns:xsp="http://www.apache.org/1999/XSP/Core";
>   xmlns:request="http://www.apache.org/1999/XSP/Request";
> >
>
>   
>
>   
> oracle.jdbc.driver.OracleDriver
> jdbc:oracle:thin:@host:1521:CTA
> mypassword
> myuser
>empleados
>registro
>
> select * from employee order by empno
>  
>   
> 
>
>  Thanks in advance !
>  Gustavo Mejia
>  www.Infotec.com.mx


-
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: log files

2001-06-11 Thread Paul Nock

I use Tomcat logging in my logicsheet, e.g:




...

...
//  Import the tomcat logging classes...
org.apache.tomcat.logging.*



...
//Declare a LogHelper
//   "session_log" is the tomcat log file to use (see your
server.conf),
//   "Prefix" is a prefix to use in the log file for this
message:
private LogHelper loghelper = new LogHelper("session_log",
"Prefix");
...
  

...


//  Then just log your messages wherever you want:
   loghelper.log( log your message here );


Don't know if it's the best way, but it works fine.

Paul


-Original Message-
From: Oskar Werewka [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 10, 2001 3:15 PM
To: [EMAIL PROTECTED]
Subject: log files



Hej cocooners,

How can I use a log file, and which one?
 From cocoon or from tomcat?

A bit of code, or a place where can I learn about it will be niece.

Regards,
Oskar Werewka



--

Kamera wideo Sony, 5000 zl
wygraj w konkursie eMarketu i Onet.pl [ http://konkursy.onet.pl/emarket ]


-
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: [C2] trying to connect to X11?

2001-06-11 Thread Berin Loritsch

Dan J Fraser wrote:
> 
> Hope this isn't a FAQ... It's not mentioned on the cocoon website.

Batik uses Java SWING, which in turn requires an XWindows environment.
There are two things you can do to get it to work:

1) Install an XServer (a simple FrameBuffer Xserver will do), and set
   the environment variable "DISPLAY" to the proper value (something
   like "127.0.0.1", consult your X Server's documentation)

2) Remove all references to Batik in the sitemap (this removes your
   ability to dynamically create graphics based on SVG files).

> 
> When I try to start C2 for the first time, I get this:
> 
> ERROR   4684[cocoon  ] (Thread-35): Error compiling sitemap
> java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
> the
> value of the DISPLAY variable.
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:5
> 8)
> at java.lang.Class.forName0(Native Method)
> server# locate jserv.properties
> 
> 
> Why is it trying to connect to an X server?  How can I tell it not to?
> 
> --
> Dan J. Fraser <[EMAIL PROTECTED]>
> PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61 18 B9 D1 17 CE)
> "Keep America beautiful.  Swallow your beer cans."
> 
> -
> 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]>




[C2] trying to connect to X11?

2001-06-11 Thread Dan J Fraser

Hope this isn't a FAQ... It's not mentioned on the cocoon website.

When I try to start C2 for the first time, I get this:

ERROR   4684[cocoon  ] (Thread-35): Error compiling sitemap
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the
value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:5
8)
at java.lang.Class.forName0(Native Method)
server# locate jserv.properties


Why is it trying to connect to an X server?  How can I tell it not to?



-- 
Dan J. Fraser <[EMAIL PROTECTED]>
PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61 18 B9 D1 17 CE)
"Keep America beautiful.  Swallow your beer cans."

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




Using auth taglib

2001-06-11 Thread Matteo Colombo

Hi,
I'm using auth taglib (http://ulim.cocoonhost.com).
I've a problem to submit you. After authentication I go to reserved.xml that
makes a query, it get two value and put those in the session (with the names
auth:group and auth:role), now I'm trying to retrieve those two in
reserved.xsl (that is a filter applied to reserved.xml) in this way:


http://www.w3.org/1999/XSL/Transform";
xmlns:auth="http://ulim.cocoonhost.com/auth";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>

   
  
  
   


  but "$role" e "$group" are empty!!!.
I checked the session, auth:role and auth:group had the right values!!!
What's it wrong? Can I call session parameters from an XSL file?
Please help me

Ciao Matteo







-
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] pooling setup question

2001-06-11 Thread HALLOWELL,KARL (HP-Cupertino,ex1)

I too am receiving this error. The esql sample works without pooling, but I
get the same exception with the esql:pool mentioned below. BTW, my setup
uses C2 with Tomcat 4.0b5 and Oracle 8i with the thin client jdbc driver.


Karl Hallowell [EMAIL PROTECTED]

> -Original Message-
> From: Gary Clark [mailto:[EMAIL PROTECTED]]
> 
> 
> I'm trying to get pooling to work with esql under C2b1.  
> Without pools, it
> works fine.  IE, if I use the following.
> 
> org.postgresql.Driver
> jdbc:postgresql://localhost/develop
> devtool
> 
> 
> My cocoon.conf contains:
> 
>   
> 
>   
>   jdbc:postgresql://localhost/develop
>   devtool
>   
> 
>   
> 
> When I change it to devtool I the the following
> error:
> org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.:org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.:org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate():java.lang.RuntimeException: 
> Could not get
> the datasource java.sql.SQLException: You cannot get a 
> Poolable before the
> pool is initialized
> 
> So, how do I get the pool to initialize?  I've tried to find 
> something in
> the examples, but I must be missing something.
> 
> Gary A. Clark
> Systems Programmer
> Software Services Group
> JELD-WEN Information Systems
> 
> 
> -
> 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]>




I come back after several tries ...

2001-06-11 Thread Sylvain PERROT

Hi back there :)

I try to rebuild cocoon on my Slackware Linux 7.1 box.
My environment is :
root@www:/# java -version
java version "1.2.2"
Classic VM (build JDK-1.2.2_008, green threads, nojit)

jakarta-tomcat-3.2.2

and I used CVS version of xml-cocoon2 for building it !

then I run the command from the xml-cocoon2 directory :
/build.sh  -Dinclude.webapp.libs=yes webapp

and here is the bunch of error I get :

--- Apache Cocoon 2.1-dev [1999-2001] 

compile:
Compiling 1 source file to /var/lib/xml-cocoon2/build/cocoon/classes
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:10: Class javax.naming.Context not found in import.
import javax.naming.Context;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:11: Class javax.naming.directory.Attribute not found in
import.
import javax.naming.directory.Attribute;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:12: Class javax.naming.directory.BasicAttribute not found in
import.
import javax.naming.directory.BasicAttribute;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:13: Class javax.naming.directory.DirContext not found in
import.
import javax.naming.directory.DirContext;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:14: Class javax.naming.directory.InitialDirContext not found
in import.
import javax.naming.directory.InitialDirContext;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:15: Class javax.naming.directory.ModificationItem not found
in import.
import javax.naming.directory.ModificationItem;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:16: Class javax.naming.directory.SearchControls not found in
import.
import javax.naming.directory.SearchControls;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:17: Class javax.naming.directory.SearchResult not found in
import.
import javax.naming.directory.SearchResult;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:18: Class javax.naming.NamingEnumeration not found in
import.
import javax.naming.NamingEnumeration;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:19: Class javax.naming.NamingException not found in import.
import javax.naming.NamingException;
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1129: Class javax.naming.directory.DirContext not found.
protected DirContext ctx;
^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1204: Class javax.naming.NamingException not found in
throws.
protected void execute() throws Exception, NamingException {
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1210: Class javax.naming.directory.SearchControls not found.
SearchControls constraints = new SearchControls();
^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1210: Class javax.naming.directory.SearchControls not found.
SearchControls constraints = new SearchControls();
 ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1213: Class javax.naming.NamingException not found in try.
  try {
  ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1225: Variable constraints may not have been initialized.
constraints.setTimeLimit(time_limit);
^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1231: Class javax.naming.NamingEnumeration not found.
NamingEnumeration ldapresults = ctx.search(searchbase, filter,
constraints);
^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1231: Variable constraints may not have been initialized.
NamingEnumeration ldapresults = ctx.search(searchbase, filter,
constraints);
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1237: Variable ldapresults may not have been initialized.
while (ldapresults != null && ldapresults.hasMore()) {
   ^
/var/lib/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/LDAPT
ransformer.java:1241: Class javax.naming.directory.SearchResult not found.
SearchResult si = (SearchResult)ldapresults.next();
^
/var/lib/xml-cocoon2/build/cocoon/src/org/a

Re: C2: Java class as transformer

2001-06-11 Thread Axel Arne Guicking

OK. I got it finally. Looks like a path problem inside of Visual Age...

Axel

- Original Message -
From: "Jörn Heid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Axel Arne Guicking" <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 1:29 PM
Subject: AW: C2: Java class as transformer


> Yesterday I have written my own transformer.
> I took the XIncludeTransformer and used all public methods and implemented
> all interfaces. I used my own package and put the class in
WEB-INF/classes.
> And it works for me ;)
>
> -Ursprüngliche Nachricht-
> Von: Axel Arne Guicking [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 11. Juni 2001 13:26
> An: [EMAIL PROTECTED]
> Betreff: C2: Java class as transformer
>
>
> Hi,
> I am using version 2.0a7 and want to add my own transformer which is a
java
> class (extending AbstractTransformer). The problems arising are:
>
> 1) Where do I have to add the transformer name and class name? Only in the
> sitemap file or also in the cocoon.xconf (and how would it look like in
> cocoon.xconf)?
>
> 2) When I put the class in the package org.apache.cocoon.transformation
and
> add the appropriate ...line in the sitemap all works well
> but in my own package the IllegalAccessException "object ... is not a
> Component" is thrown. Why that?
>
> Any help will be appreciated!
>
> Thanks,
> Axel Guicking
>



-
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] Can't start under Win32 : cause of = unable to create a suitable default GraphicsConfiguration

2001-06-11 Thread Ross Burton

On 11 Jun 2001 16:15:02 +0200, Samuel ARNOD-PRIN wrote:
> I've already tried unsuccessfully ;o(

That stack trace came from Batik, so you might need to start the servlet
engine from cold to ensure it re-reads the configuration.

To check, anything with "svg" in the sitemap.xmap and cocoon.xconf files
should be commented out/removed.

Ross


-
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: broken build?

2001-06-11 Thread Sylvain Wallez



Dan J Fraser a écrit :
> 
> None of the dev snapshots want to build.
> 
> I want a cocoon with xinclude that works, but also with caching that works.
> So, 1.8 release is out, and 1.8.2 release is out.  I'm trying to build a
> 1.8.3-dev, but I get this:
> 
> [javac]
> /usr/local/xml-cocoon/build/src/org/apache/cocoon/processor/xslt/XSLTP
> rocessor.java:163: Incompatible type for !. Can't convert java.lang.String
> to boolean.
> [javac] if (!name) {
> [javac] ^
> 
> Perhaps I'm doing something wrong?  I've tried all the snapshots in the
> snapshots directory.  Same error on each.
> 
> --
> Dan J. Fraser <[EMAIL PROTECTED]>
> PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61 18 B9 D1 17 CE)
> "I haven't lost my mind, it's backed up on tape somewhere."
> 

This was a typo. I patched the Cocoon 1 CVS which should now be OK.

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.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: [C2] : not really OK !!

2001-06-11 Thread Sylvain Wallez

(forwarding to the list, I didn't noticed the reply-to header)

 Original Message 
Objet: Re: [C2] :  not really OK !!
Date: Mon, 11 Jun 2001 16:42:57 +0200
De: Sylvain Wallez <[EMAIL PROTECTED]>
Société: Anyware Technologies
A: [EMAIL PROTECTED]
Références: <[EMAIL PROTECTED]>



Samuel ARNOD-PRIN a écrit :
> 
> It is maybe not a bug... but xsp:attribute are difficult to handle using
> C2...
> 
> for example :
> 
> 
> String text="here is my value";
>  name="myattribute">text
> 
> 
> is ... WRONG !
> 

The change from DOM (C1) to SAX (C2) has put additional constraints on
 :
- in DOM, attributes are added on an element _after_ the element is
created, and so intermixed  and  inside the
element are evaluated in document order.
- in SAX, attributes must be known _before_ the beginning of the
element, because they are parameters of startElement(). So the C2 XSP
engine evaluates all xsp:attributes prior to starting the element, and
evaluates its content after, including  tags.

So your example should be written

  String text="here is my value";
  
text
  


-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.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]>




[C2] Cp1251 Encoding

2001-06-11 Thread Aleksey Globets

Hi,

All my XML files in Cp1251 encoding. When I've used C1.8.2 it displays
bpoperly. But now I trying to migrate to C2 and when I request it that
receive an error that Cp1251 encoding is not supported. What is a solution.
Is it possible to add support of this encoding or I need to rewrite my
files?

Best,

Alex


-
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: Static data access in xsp

2001-06-11 Thread paint007


I suspect there are multiple solutions, depending on your needs.  You could
write a logicsheet (taglib) which defined custom tags that supply the
static data you want.  Since you have all of Java at your disposal, you
could write a flat file and parse it in Java, or use some kind of object
streaming thingy (you can tell I don't know much Java).  Etc.

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Static data access in xsp


Hello,

I did not get a reply on my previous email about this topic so I assume I
have ask the question wrong.

I use C1.8.2.

I know this issue must have been addressed in cocoon, but I can not find
info in the mailing archives/faq's about this.

I have static data that I need to access in xsp pages.  Typically stuff
like
URL's that I need to use in  tags.  Since you can not
chain xsp processes how would I access this information to use in other xsp
tags on the same xsp page ?

Please help.


My previous email:

How do one access static data (for example configuration data in a xml
file)
in a xsp page to use in xsp instructions ?

 reads a xml file into dom, but you can not access this
data to use in xsp tags in the rest of the xsp page, only to pass on for
xsl
processing later on.

The problem is that I have different xsp pages sharing common information
(example: server address) which all of them use in  tags.

Any suggestions ?


Truhann





-
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] Can't start under Win32 : cause of = unable to create a suitable default GraphicsConfiguration

2001-06-11 Thread Samuel ARNOD-PRIN


I've already tried unsuccessfully ;o(

-
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] : not really OK !!

2001-06-11 Thread Berin Loritsch

Samuel ARNOD-PRIN wrote:
> 
> It is maybe not a bug... but xsp:attribute are difficult to handle using
> C2...
> 
> for example :
> 
> 
> String text="here is my value";
>  name="myattribute">text
> 
> 
> is ... WRONG !

what were you trying to do?

What you specified should be rendered:



However, how you wrote it will not work in C2: the logic
part needs to come before .  This is due to the SAX
model, and all attributes are built _before_ the startElement
is called.  This makes conditional attributes difficult to
do.

If you were trying to simply include the text "here is my value"
I have to ask why you didn't do that anyway.  If you are
trying to use a dynamically dirived value--there should be nothing
stopping you.

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




Ang: Netscape can't define the tag

2001-06-11 Thread Alen Milkovic



>>> <[EMAIL PROTECTED]> 11.06.01 23:44 >>>
hi,

I try to generate html file from xml and xsl by using xalan. The html generated is 
running well 
with IE, but Netscape can't define the  tag. May i know how to solve the problem ?


from 
Kok Choon.


E-mail: [EMAIL PROTECTED] 
Date: 06/12/01
Time: 05:44:42

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




*
This footnote confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
*

-
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] Can't start under Win32 : cause of = unable to create a suitable default GraphicsConfiguration

2001-06-11 Thread Colin Britton

This is _probably_ the same issue as the X server issue on unix. Try
commenting out all the SVG components and references in the sitemap.
Batik (C2 uses this for SVG) uses swing which requires a graphics
environment. 

rgds
cb

-Original Message-
From: Samuel ARNOD-PRIN [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 9:27 AM
To: [EMAIL PROTECTED]
Subject: [C2] Can't start under Win32 : cause of = unable to create a
suitable default GraphicsConfiguration


Is there a way to start C2 without a good video card ??
I am not able to install my ATI card under NT (on a different PC, I had
no problem), and here is the error I received launching cocoon2..

how can I avoid this ??
of course the sitemap is not created and the site does not work






---

ERROR   7691[cocoon  ] (Thread-24): Error compiling sitemap
java.lang.ExceptionInInitializerError: java.lang.RuntimeException: 
Unable to create a suitable default GraphicsConfiguration.  Try changing
your Display Settings.
at sun.awt.Win32GraphicsDevice.getDefaultPixID(Native Method)
at
sun.awt.Win32GraphicsDevice.getDefaultConfiguration(Win32GraphicsDevice.
java:131)
at sun.awt.windows.WToolkit.resetGC(WToolkit.java:87)
at sun.awt.windows.WToolkit.(WToolkit.java:77)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.Toolkit$2.run(Toolkit.java:498)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
at java.awt.SystemColor.(SystemColor.java:335)
at
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(Defau
ltSystemColorResolver.java:27)
at
org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
at
org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFacto
ryMap.java:39)
at
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.ja
va:39)
at
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.ja
va:32)
at
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementatio
n.java:88)
at
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementat
ion.java:59)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFact
ory.java:59)
at
org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:59)
at
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:
47)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:83)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.j
ava:70)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResou
rceLimitingPool.java:82)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(Sof
tResourceLimitingPool.java:67)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.initializ
e(PoolableComponentHandler.java:75)
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.addCompon
ent(DefaultComponentSelector.java:306)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(S
itemapComponentSelector.java:42)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap
.java:150)
at
org.apache.cocoon.www.sitemap_xml$Configurer.configSerializers(sitemap_x
ml.java:766)
at
org.apache.cocoon.www.sitemap_xml.configure(sitemap_xml.java:316)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:110)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.addCompon
ent(DefaultComponentSelector.java:306)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator(GeneratorSelector.java:75)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
erator(GeneratorSelector.java:71)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.select
(GeneratorSelector.java:57)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.sel
ect(ProgramGeneratorImpl.java:261)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
d(ProgramGeneratorImpl.java:145)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)
ERROR   7711[cocoon  ] (Thread-21): Problem with servlet
org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
not available.

[C2] : not really OK !!

2001-06-11 Thread Samuel ARNOD-PRIN


It is maybe not a bug... but xsp:attribute are difficult to handle using
C2...

for example :


String text="here is my value";
text


is ... WRONG !

-
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: broken build?

2001-06-11 Thread Samuel ARNOD-PRIN

Correct the file first... name is a String and ! is for boolean...
try maybe if (name!=null)

Dan J Fraser a écrit :
> 
> None of the dev snapshots want to build.
> 
> I want a cocoon with xinclude that works, but also with caching that works.
> So, 1.8 release is out, and 1.8.2 release is out.  I'm trying to build a
> 1.8.3-dev, but I get this:
> 
> [javac]
> /usr/local/xml-cocoon/build/src/org/apache/cocoon/processor/xslt/XSLTP
> rocessor.java:163: Incompatible type for !. Can't convert java.lang.String
> to boolean.
> [javac] if (!name) {
> [javac] ^
> 
> Perhaps I'm doing something wrong?  I've tried all the snapshots in the
> snapshots directory.  Same error on each.
> 
> --
> Dan J. Fraser <[EMAIL PROTECTED]>
> PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61 18 B9 D1 17 CE)
> "I haven't lost my mind, it's backed up on tape somewhere."
> 
> -
> 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]>




[C2] Can't start under Win32 : cause of = unable to create a suitable default GraphicsConfiguration

2001-06-11 Thread Samuel ARNOD-PRIN

Is there a way to start C2 without a good video card ??
I am not able to install my ATI card under NT (on a different PC, I had
no problem), and here is the error I received launching cocoon2..

how can I avoid this ??
of course the sitemap is not created and the site does not work






---

ERROR   7691[cocoon  ] (Thread-24): Error compiling sitemap
java.lang.ExceptionInInitializerError: java.lang.RuntimeException: 
Unable to create a suitable default GraphicsConfiguration.  Try changing
your Display Settings.
at sun.awt.Win32GraphicsDevice.getDefaultPixID(Native Method)
at
sun.awt.Win32GraphicsDevice.getDefaultConfiguration(Win32GraphicsDevice.java:131)
at sun.awt.windows.WToolkit.resetGC(WToolkit.java:87)
at sun.awt.windows.WToolkit.(WToolkit.java:77)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.Toolkit$2.run(Toolkit.java:498)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
at java.awt.SystemColor.updateSystemColors(SystemColor.java:342)
at java.awt.SystemColor.(SystemColor.java:335)
at
org.apache.batik.css.value.DefaultSystemColorResolver.activeBorder(DefaultSystemColorResolver.java:27)
at
org.apache.batik.css.value.ColorFactory.(ColorFactory.java:75)
at
org.apache.batik.css.value.CommonValueFactoryMap.(CommonValueFactoryMap.java:39)
at
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:39)
at
org.apache.batik.css.svg.SVGValueFactoryMap.(SVGValueFactoryMap.java:32)
at
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:88)
at
org.apache.batik.dom.svg.SVGDOMImplementation.(SVGDOMImplementation.java:59)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.(SAXSVGDocumentFactory.java:59)
at
org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:59)
at
org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:47)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:83)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:70)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:82)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:67)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:75)
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(DefaultComponentSelector.java:306)
at
org.apache.cocoon.sitemap.SitemapComponentSelector.addSitemapComponent(SitemapComponentSelector.java:42)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:150)
at
org.apache.cocoon.www.sitemap_xml$Configurer.configSerializers(sitemap_xml.java:766)
at
org.apache.cocoon.www.sitemap_xml.configure(sitemap_xml.java:316)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:110)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:78)
at
org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(DefaultComponentSelector.java:306)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:75)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:71)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.select(GeneratorSelector.java:57)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(ProgramGeneratorImpl.java:261)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:145)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:224)
at java.lang.Thread.run(Thread.java:484)
ERROR   7711[cocoon  ] (Thread-21): Problem with servlet
org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
not available.
at
org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:179)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:93)
at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Ha

broken build?

2001-06-11 Thread Dan J Fraser

None of the dev snapshots want to build.

I want a cocoon with xinclude that works, but also with caching that works.
So, 1.8 release is out, and 1.8.2 release is out.  I'm trying to build a
1.8.3-dev, but I get this:

[javac]
/usr/local/xml-cocoon/build/src/org/apache/cocoon/processor/xslt/XSLTP
rocessor.java:163: Incompatible type for !. Can't convert java.lang.String
to boolean.
[javac] if (!name) {
[javac] ^

Perhaps I'm doing something wrong?  I've tried all the snapshots in the
snapshots directory.  Same error on each.

-- 
Dan J. Fraser <[EMAIL PROTECTED]>
PGP: 0xF3972A01 (17 B7 24 90 27 05 B8 92  4F 7F 61 18 B9 D1 17 CE)
"I haven't lost my mind, it's backed up on tape somewhere."

-
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] Newbie question again

2001-06-11 Thread Drasko Kokic


--- Giacomo Pati <[EMAIL PROTECTED]> wrote:
> Quoting Aleksey Globets <[EMAIL PROTECTED]>:
> 
> > Ok,
> > 
> > I will try to ask in another way. If I plan to
> create two contexts in
> > Tomcat
> > pointed to different directories and to use Cocoon
> within it. So how I
> > can
> > use it?
> > Do I need to copy and rename /cocoon directory or
> something else?
> 
> Yes.
> 
> Giacomo
> 

But, I hope, it is still possible to move all the jar
files into the central lib directory and reduce the
disk space needed ... right?!


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.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: Using forte2.0 IE - Introspection Error

2001-06-11 Thread Torsten Curdt

use the external compiler... (e.g.jdk1.3)
the internal one gave us some strange error, too.
--
Torsten

> -Original Message-
> From: Michael Gerzabek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 11, 2001 1:55 PM
> To: [EMAIL PROTECTED]
> Subject: Using forte2.0 IE - Introspection Error
> 
> 
> I get an error from the "fastjavac: /org/apache/cocoon/generation/Generator
> has incorrect version 46, should be 45"
> 
> Does anyone know what this means? The introspector even doesn't show me the
> methods of the classes in the cocoon-2.0b.jar file.
> 
> 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]>




Using forte2.0 IE - Introspection Error

2001-06-11 Thread Michael Gerzabek

I get an error from the "fastjavac: /org/apache/cocoon/generation/Generator
has incorrect version 46, should be 45"

Does anyone know what this means? The introspector even doesn't show me the
methods of the classes in the cocoon-2.0b.jar file.

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




AW: C2: Java class as transformer

2001-06-11 Thread Jörn Heid

Yesterday I have written my own transformer.
I took the XIncludeTransformer and used all public methods and implemented
all interfaces. I used my own package and put the class in WEB-INF/classes.
And it works for me ;)

-Ursprüngliche Nachricht-
Von: Axel Arne Guicking [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 11. Juni 2001 13:26
An: [EMAIL PROTECTED]
Betreff: C2: Java class as transformer


Hi,
I am using version 2.0a7 and want to add my own transformer which is a java
class (extending AbstractTransformer). The problems arising are:

1) Where do I have to add the transformer name and class name? Only in the
sitemap file or also in the cocoon.xconf (and how would it look like in
cocoon.xconf)?

2) When I put the class in the package org.apache.cocoon.transformation and
add the appropriate ...line in the sitemap all works well
but in my own package the IllegalAccessException "object ... is not a
Component" is thrown. Why that?

Any help will be appreciated!

Thanks,
Axel Guicking



-
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: How to substring text from XML content ?

2001-06-11 Thread Sylvain Wallez



[EMAIL PROTECTED] a écrit :
> 
> hi,
> 
>   I am developing a system that generate xml from msword file, and than translate 
>the xml with
> xsl by using xalan. The msword content is something like this :
> 
> ** ms word example *
> Overview
> 
> Try to do it better
> 
> ...
> **
> 
> so, when the doc be converted to xml, it will like this :
> 
> Overview
> Try to do it better
> ..
> ..
> 
> then, i need to write a xsl to translate with that xml and generate html...
> but the problem is i need to format the title "Overview" make it have a better look 
>and feel,
> where the first char must be biger that other char... the html code is like  size="3">Overview. But how to make it posible when i 
>use xsl ?
> the command  select="p"/> will get the whole "Overview" word... so how to 
>substring
> it so that i can display it which the font size i need ???
> 
> Thank.
> 
> >From Kok Choon.
> 
This is an XSL question you should better ask on the XSL mailing list at
http://www.mulberrytech.com/xsl/xsl-list/

Anyway, XSL provides a number string manipulation primitives such as
substring that can answer your need. See
http://www.w3.org/TR/xpath#section-String-Functions for a detailed list.

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.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]>




C2: Java class as transformer

2001-06-11 Thread Axel Arne Guicking

Hi,
I am using version 2.0a7 and want to add my own transformer which is a java
class (extending AbstractTransformer). The problems arising are:

1) Where do I have to add the transformer name and class name? Only in the
sitemap file or also in the cocoon.xconf (and how would it look like in
cocoon.xconf)?

2) When I put the class in the package org.apache.cocoon.transformation and
add the appropriate ...line in the sitemap all works well
but in my own package the IllegalAccessException "object ... is not a
Component" is thrown. Why that?

Any help will be appreciated!

Thanks,
Axel Guicking



-
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: AW: Adding dynamically element

2001-06-11 Thread Giacomo Pati

Quoting Jörn Heid <[EMAIL PROTECTED]>:

> Thanks for answer.
> 
> But there's a problem:
> 
> 'Giacomo' wrote: "An XSP page is a generator, point.". As I have to use
> a
> xml page I would have to write a XSP which reads (from FileReader) the
> xml... I think that's not the best way as the pipeline should do this
> for
> me. So I wrote a transformer which works well, but I do not know hoe to
> get
> the HTTPServletRequest (written in another mail).

Use the following:

   import org.apache.cocoon.environment.Request;
   ...
   Request req = (Request) objectModel.get(Cocoon.REQUEST_OBJECT);

> Am I right? In C1 you could use XSP as a transformer and I'm looking fo
> something similar...

There are no such things like Transformers in C1 (AFAIR). But as I'm not very 
familiar with C1 you might know better.

Giacomo

-
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 substring text from XML content ?

2001-06-11 Thread kokchoon

hi,

  I am developing a system that generate xml from msword file, and than translate the 
xml with 
xsl by using xalan. The msword content is something like this :

** ms word example *
Overview

Try to do it better

...
**

so, when the doc be converted to xml, it will like this :

Overview
Try to do it better
..
..

then, i need to write a xsl to translate with that xml and generate html...
but the problem is i need to format the title "Overview" make it have a better look 
and feel, 
where the first char must be biger that other char... the html code is like Overview. But how to make it posible when i use 
xsl ?
the command  will get the whole "Overview" word... so how to 
substring 
it so that i can display it which the font size i need ???

Thank.

>From Kok Choon.



E-mail: [EMAIL PROTECTED]
Date: 06/12/01
Time: 06:26:40

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




Bizarre IE/PDF Bug Test URL

2001-06-11 Thread Ulrich Mayring

Hello,

I've put up a testcase for the bizarre security filter that makes
Internet Explorer 5.50.4522.1800 drop lines from PDFs. Go to
http://ulim.cocoonhost.com/iebug and on that page click the button for
PDF generation.

With IE and the internal PDF plug-in the PDF will miss a line, with
another browser or Acrobat configured as an external application, you'll
see the whole text in the PDF.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

-
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: PDF in IE revisited

2001-06-11 Thread Ulrich Mayring

Gritsenko wrote:
> 
> I had similar problem with IE5.
> 
> Before I was getting blank pages in IE5, after - normal PDF in separate
> Acrobat window.

This works indeed, but it requires your users to change their local
configuration, so I don't think it's ideal.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

-
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: Netscape can't define the tag

2001-06-11 Thread JEULIN Olivier

Hi,
try to generate a 'cocoon-format' processing instruction for 'text/html'
(see any sample from cocoon).
This is strange anyway, because even without this line, cocoon HTMLize my
pages well ( -> , etc.). I'm using mosilla 0.9 and netscape 4.75
under linux
OJ

> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Envoyé : lundi 11 juin 2001 23:45
> À : [EMAIL PROTECTED]
> Objet : Netscape can't define the  tag
> 
> 
> hi,
> 
> I try to generate html file from xml and xsl by using xalan. 
> The html generated is running well 
> with IE, but Netscape can't define the  tag. May i know 
> how to solve the problem ?
> 
> 
> from 
> Kok Choon.
> 
> 
> E-mail: [EMAIL PROTECTED]
> Date: 06/12/01
> Time: 05:44:42
> 
> 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]>
> 

-
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: Netscape can't define the tag

2001-06-11 Thread Kriss

> hi,
>
> I try to generate html file from xml and xsl by using xalan. The html
generated is running well
> with IE, but Netscape can't define the  tag. May i know how to solve
the problem ?
>
>
> from
> Kok Choon.

Hi,

with XT setting the output method to html  with:



produces correct  and  tags instead of   and .
This should also work with Xalan.

Cheers

K



-
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: Adding dynamically element

2001-06-11 Thread Jörn Heid

Thanks for answer.

But there's a problem:

'Giacomo' wrote: "An XSP page is a generator, point.". As I have to use a
xml page I would have to write a XSP which reads (from FileReader) the
xml... I think that's not the best way as the pipeline should do this for
me. So I wrote a transformer which works well, but I do not know hoe to get
the HTTPServletRequest (written in another mail).

Am I right? In C1 you could use XSP as a transformer and I'm looking fo
something similar...

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Martin Man [mailto:[EMAIL PROTECTED]]Im Auftrag von Martin Man
Gesendet: Montag, 11. Juni 2001 11:37
An: Jorn Heid
Cc: [EMAIL PROTECTED]
Betreff: Re: Adding dynamically element


On Sun, Jun 10, 2001 at 04:53:37PM +0200, Jorn Heid wrote:
> Yes... As XSP is a generator, should I write my own transformer or
> aggregator... Give me an answer, please... ;(
>
> The question again:
> I want to produce a html from a xml (not XSP) page but depending on the
> session object there moght be an additional element. In C1 it worked with
> XML->XSP->XSLT->HTML. But how does it (best) work with C2?
> XML->Aggreation->XSLT->HTML or XML->MyTransformer->XSLT->HTML?
>
in c2 you do it best using XSP, handling session, and xincluding (look at
aggregate.xsp sample) static xml content



rgds,
martin

--

---
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223


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




Netscape can't define the tag

2001-06-11 Thread kokchoon

hi,

I try to generate html file from xml and xsl by using xalan. The html generated is 
running well 
with IE, but Netscape can't define the  tag. May i know how to solve the problem ?


from 
Kok Choon.


E-mail: [EMAIL PROTECTED]
Date: 06/12/01
Time: 05:44:42

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




Re: [C2] Newbie question again

2001-06-11 Thread Giacomo Pati

Quoting Aleksey Globets <[EMAIL PROTECTED]>:

> Ok,
> 
> I will try to ask in another way. If I plan to create two contexts in
> Tomcat
> pointed to different directories and to use Cocoon within it. So how I
> can
> use it?
> Do I need to copy and rename /cocoon directory or something else?

Yes.

Giacomo

-
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: Static data access in xsp

2001-06-11 Thread Ulrich Mayring

Truhann van der Poel wrote:
> 
> I have static data that I need to access in xsp pages.  Typically stuff like
> URL's that I need to use in  tags.  Since you can not
> chain xsp processes how would I access this information to use in other xsp
> tags on the same xsp page ?

String mystaticinfo = "whatever";
mystaticinfo

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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




Static data access in xsp

2001-06-11 Thread Truhann van der Poel

Hello,  

I did not get a reply on my previous email about this topic so I assume I
have ask the question wrong.

I use C1.8.2.

I know this issue must have been addressed in cocoon, but I can not find
info in the mailing archives/faq's about this.

I have static data that I need to access in xsp pages.  Typically stuff like
URL's that I need to use in  tags.  Since you can not
chain xsp processes how would I access this information to use in other xsp
tags on the same xsp page ?

Please help.


My previous email:

How do one access static data (for example configuration data in a xml file)
in a xsp page to use in xsp instructions ?

 reads a xml file into dom, but you can not access this
data to use in xsp tags in the rest of the xsp page, only to pass on for xsl
processing later on.

The problem is that I have different xsp pages sharing common information
(example: server address) which all of them use in  tags.

Any suggestions ?


Truhann

-
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] Newbie question again

2001-06-11 Thread Petteri Sulonen


On Monday, June 11, 2001, at 08:51  AM, Aleksey Globets wrote:

> Ok,
>
> I will try to ask in another way. If I plan to create two contexts in 
> Tomcat
> pointed to different directories and to use Cocoon within it. So how I 
> can
> use it?
> Do I need to copy and rename /cocoon directory or something else?

Nope. You just add the context to the server.xml file, like this:




Then you need to copy the WEB-INF directory (with cocoon.properties and 
web.xml) to the /path/to/foo directory. As long as the Cocoon jars are 
in Tomcat's classpath, it'll work. Restart Tomcat, and you're in 
business.

-- Petteri


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