XSLT :: Html Drop Down Menus :: Xml

2001-08-15 Thread Kazi the P i R @ t {-

having trouble creating drop down menus...

 * The html output appears with the  tags unclosed (i.e with the
 ones missing)
 * my xml is such:
.
.
.

   James Bond
   
   James Whatever
   
   
:
:

 * The goal was to create a dropdown menu which will list the main thing and
the matching sub-
 thingies under it (maybe a bit indented.. to show the relationship)
 sumthin like this:
 007 James Bond
420 James Whatever
:
 * I am using the xsl:element thingy to create the option tags and the
xsl:attribute thingy to insert
the 'value' attibute int he option tags. In the tomcat console the
following message is showing:

XSL Warning: Illegal attribute name: value

*
HELP

Kazi


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




testing against different versions of browsers

2001-08-15 Thread Liam Morley

I understand that Cocoon gives you the power to use different stylesheets
for different browsers (code is included at bottom of email). However, I
don't see how you can test between different versions, ie between IE4,
IE5, IE5.5, NS4, or NS6. Is there a way to do this as well?

Thank you...


  
  
 
  
  
 
 
  
  
 
  
  
 
  
   


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




dealing with application/ms-word

2001-08-15 Thread Liam Morley

I got the following error when linking to an ms-word doc:

ComponentSelector could not find the component for hint:
application/ms-word

What's the protocol for linking to a MS Word document?

Thanks in advance...

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




[C2] Stream Generator

2001-08-15 Thread Eric Vernichon

I've found something about the Stream Generator in the Cocoon documentation.

I've made the following modifications to the file sitemap.xmap :

...




   
 
   
   
 
 
   

   
 
 
 
   

But I got this error :

Error creating the resource 
 Exception in StreamGenerator.generate() 
details 
from  
source org.apache.cocoon.ProcessingException 
description org.apache.cocoon.ProcessingException: Exception in 
StreamGenerator.generate():java.lang.NullPointerException 
extra info 
 java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java, Compiled Code)
at org.apache.tomcat.core.RequestImpl.getParameterValues
(RequestImpl.java, Compiled Code)
at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java, 
Compiled Code)
at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter
(HttpServletRequestFacade.java, Compiled Code)
at org.apache.cocoon.environment.http.HttpRequest.getParameter
(HttpRequest.java, Compiled Code)
at org.apache.cocoon.generation.StreamGenerator.generate
(StreamGenerator.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process
(AbstractEventPipeline.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process
(AbstractStreamPipeline.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN409
(sitemap_xmap.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled 
Code)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, 
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
Compiled Code)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java, Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)

 
 java.lang.NullPointerException
 
 org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate
():java.lang.NullPointerException
at org.apache.cocoon.generation.StreamGenerator.generate
(StreamGenerator.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process
(AbstractEventPipeline.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process
(AbstractStreamPipeline.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN409
(sitemap_xmap.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled 
Code)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, 
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
Compiled Code)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java, Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
java.lang.NullPointerException
   

[C2] Stream Generator

2001-08-15 Thread Eric Vernichon

I've found something about the Stream Generator in the Cocoon documentation.

I've made the following modifications to the file sitemap.xmap :

...




   
 
   
   
 
 
   

   
 
 
 
   

But I got this error :

Error creating the resource 
 Exception in StreamGenerator.generate() 
details 
from  
source org.apache.cocoon.ProcessingException 
description org.apache.cocoon.ProcessingException: Exception in 
StreamGenerator.generate():java.lang.NullPointerException 
extra info 
 java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java, Compiled Code)
at org.apache.tomcat.core.RequestImpl.getParameterValues
(RequestImpl.java, Compiled Code)
at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java, 
Compiled Code)
at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter
(HttpServletRequestFacade.java, Compiled Code)
at org.apache.cocoon.environment.http.HttpRequest.getParameter
(HttpRequest.java, Compiled Code)
at org.apache.cocoon.generation.StreamGenerator.generate
(StreamGenerator.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process
(AbstractEventPipeline.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process
(AbstractStreamPipeline.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN409
(sitemap_xmap.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled 
Code)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, 
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
Compiled Code)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java, Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)

 
 java.lang.NullPointerException
 
 org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate
():java.lang.NullPointerException
at org.apache.cocoon.generation.StreamGenerator.generate
(StreamGenerator.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process
(AbstractEventPipeline.java, Compiled Code)
at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process
(AbstractStreamPipeline.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN409
(sitemap_xmap.java, Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled 
Code)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, 
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
Compiled Code)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java, Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
java.lang.NullPointerException
   

Re: Sitemap and http request

2001-08-15 Thread Ling Kok Choon

hi Dal Multani,

   According what i understand, u can capture the parameter from the http request by 2 
ways :
1) use Action.
2) Use XSP

1) Use Action
   you can go to cocoon2's website and get information about the Action. If i not 
wrong, in the 
action u can can a request object and retrive all the information from the request.

   the structure is like :

   
   
http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videop"/>


   


2) Use XSP
   same way, try go to the cocoon2's XSP web site and u can get some important 
information about 
the XSP. 


Hope this information can help u ..


regards

Kok Choon.

Name: Ling Kok Choon
E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
Date: 08/16/01
Time: 08:34:08

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: Getting read of the X server dependency

2001-08-15 Thread Jeremy Crosbie

I tried removing all references to Batik in the sitemap and going as far as
removing the Batik jar from the WEB-INF/lib directory and still got a
message saying the the XMLSerializer was being loaded for svgxml and failing
because the class could not found. Has anyone else seen this?

--jeremy


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:50 PM
> To: cocoon users xml.apache.org
> Subject: Getting read of the X server dependency
> 
> 
> A while back some people gave solutions as to how to remove 
> the dependency
> on a running X server. Some of them included removing all the 
> references to
> Batik from the site map, others included downloading a 
> library that would
> make X unnecessary, what's the name of the library and where 
> can I download
> it from?
> 
> 
> TIA
> Carlos
> 
> -- 
> ---
> P  |Carlos Araya
> _  |WebCT Administrator/Trainer
> G  |California Virtual Campus, Region 1
>  C/O De Anza College
> 10650 Bubb Road
> Cupertino, CA 95014
> 
> mail:   [EMAIL PROTECTED]
> web:http://www.cvc1.org (work)
> http://www.silverwolf-net.net (personal)
> PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 
> DFE7 1756
> 
> Don't let the fact that you can't do all you want to do Keep you from
> doing what you can do.
> 
> And oftentimes, excusing of a fault doth make the fault the 
> worse by the
> excuse; As patches set upon a little breach discredit more in
> hiding of the fault than did the fault before it was so patched.
> --Wm. Shakespeare 
> 
> 
> 
> -
> 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: Getting read of the X server dependency

2001-08-15 Thread eirikdentz

You should do a search here:



I think you should be able to find the library that you're looking for. 
Xvfb is another option that you might want to consider.

HTH

eirik

Carlos wrote:
> 
> A while back some people gave solutions as to how to remove the dependency
> on a running X server. Some of them included removing all the references to
> Batik from the site map, others included downloading a library that would
> make X unnecessary, what's the name of the library and where can I download
> it from?
> 
> TIA
> Carlos
> 
> --
> ---
> P  |Carlos Araya
> _  |WebCT Administrator/Trainer
> G  |California Virtual Campus, Region 1
>  C/O De Anza College
> 10650 Bubb Road
> Cupertino, CA 95014
> 
> mail:   [EMAIL PROTECTED]
> web:http://www.cvc1.org (work)
> http://www.silverwolf-net.net (personal)
> PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756
> 
> Don't let the fact that you can't do all you want to do Keep you from
> doing what you can do.
> 
> And oftentimes, excusing of a fault doth make the fault the worse by the
> excuse; As patches set upon a little breach discredit more in
> hiding of the fault than did the fault before it was so patched.
> --Wm. Shakespeare
> 
> -
> 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]>




Getting read of the X server dependency

2001-08-15 Thread Carlos

A while back some people gave solutions as to how to remove the dependency
on a running X server. Some of them included removing all the references to
Batik from the site map, others included downloading a library that would
make X unnecessary, what's the name of the library and where can I download
it from?


TIA
Carlos

-- 
---
P  |Carlos Araya
_  |WebCT Administrator/Trainer
G  |California Virtual Campus, Region 1
 C/O De Anza College
10650 Bubb Road
Cupertino, CA 95014

mail:   [EMAIL PROTECTED]
web:http://www.cvc1.org (work)
http://www.silverwolf-net.net (personal)
PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756

Don't let the fact that you can't do all you want to do Keep you from
doing what you can do.

And oftentimes, excusing of a fault doth make the fault the worse by the
excuse; As patches set upon a little breach discredit more in
hiding of the fault than did the fault before it was so patched.
--Wm. Shakespeare 



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




Cocoon2, JDK 1.2.2, FreeBSD - help needed

2001-08-15 Thread cocoon

Hi everybody,

has anyone succeded with installing Cocoon2 on FreeBSD 4.3?

I've tried installation of the last beta version, last CVSs ...and the
other ones.

After opening /cocoon url it always finish with hanging up JAVA and
writing java.core.

What is strange is that the same build works on WINx...
What am I doing wrong? Is this because of JDK 1.2.2???

regards
Karol Pokojowczyk
http://devitnow.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: Beginner question - Please help!

2001-08-15 Thread Vadim Gritsenko

Try this out:

   


   
   



   

Then modify "hello.xsl" pipeline to fit your needs.

Vadim

> -Original Message-
> From: LeVasseur, George [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 1:06 PM
> To: [EMAIL PROTECTED]
> Subject: Beginner question - Please help!
> 
> 
> 
> This question may be coming real early in my learning curve but here goes...
> 
> Using the supplied "hello" sample as my example, is it possible and easy to
> replace the physical simple-page2html.xsl so that the xsl is supplied via a
> stream from a call to a bean? 
> 
> What I would like to do is create a skeleton of the xsl file that is kept on
> disk, then have a bean read it, add some stuff to it to make it complete and
> return the completed xsl.
> 
> Is this doable?
> 
> George Levasseur
> Sr. Developer
> R&D Group
> SmartTime Software
> [EMAIL PROTECTED]
> PH: 508-598-3821
> FX: 508-626-0638
> 
> Note: Effective April 20, 2001 we have changed our email domain to
> SmartTime.com.  Please note this change in your records for further
> communications.
> 
> 
> 
> 
> -
> 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]>




org.xml.sax.SAXNotSupportedException starting Cocoon 2.0b2

2001-08-15 Thread Calvin Cheng

Got this exception with Resin 2.0.1 as well as Jrun 3.0. Couldn't even get
the CocoonServlet to start with Tomcat 4.0 because of a class cast exception
on the CocoonServlet instance.

org.xml.sax.SAXNotSupportedException:
http://xml.org/sax/properties/lexical-handler
at com.caucho.xml.AbstractParser.setProperty(AbstractParser.java:383)
at org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:75)
at org.apache.cocoon.components.source.URLSource.stream(URLSource.java:321)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:110)
at org.apache.cocoon.components.pipeline.CachingEventPipeline.process

I suspect it's a classpath problem and incompatibility between jarss.
These are the files i have in web-inf/lib

Tidy.jar
ant_1_3-optional.jar
ant_1_3.jar
avalon-excalibur.jar
avalon-framework.jar
batik-libs.jar
bsf.jar
cocoon.jar
dom2.jar
fop-0_19_0.jar
hsqldb.jar
jakarta-regexp-1.2.jar
jimi-1.0.jar
jstyle.jar
junit.jar
logkit-1.0b2-dev.jar
maybeupload.jar
rhino.jar
servlet_2_2.jar
stylebook-1.0-b3_xalan-2.jar
velocity-1.1.jar
xalan-2.2.0-dev.jar
xerces_1_4_1.jar
xt.jar

Can you guys see any problem from there?



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




Beginner question - Please help!

2001-08-15 Thread LeVasseur, George


This question may be coming real early in my learning curve but here goes...

Using the supplied "hello" sample as my example, is it possible and easy to
replace the physical simple-page2html.xsl so that the xsl is supplied via a
stream from a call to a bean? 

What I would like to do is create a skeleton of the xsl file that is kept on
disk, then have a bean read it, add some stuff to it to make it complete and
return the completed xsl.

Is this doable?

George Levasseur
Sr. Developer
R&D Group
SmartTime Software
[EMAIL PROTECTED]
PH: 508-598-3821
FX: 508-626-0638

Note: Effective April 20, 2001 we have changed our email domain to
SmartTime.com.  Please note this change in your records for further
communications.




-
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 use attributes to form a table

2001-08-15 Thread Mark Wright

Cihan

You access the attributes of a node using the @ nomenclature and then define
a separate template for the attribute.
Take a look at
http://www.ibiblio.org/xml/books/bible2/chapters/ch17.html

Mark

-Original Message-
From: Uslu, Cihan Y (MED) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 5:57 PM
To: [EMAIL PROTECTED]
Subject: how to use attributes to form a table


I need help to transform following XML into desired output, I'm using
cocoon1.8.2 to transform the XML into HTML.
I was wondering how can it be done with recursive progrmming style.thank
you in advance.

Cihan



  
  
 
  
   
  
 

  
  
   
   
   
   
 
  
   
  
 
   
  
  
  
  


This is the output I want, nothing else!
in HTML Table;

File Reference  :   xr525_02_040_010a
File Source :   Audiographics powerpoint presentation slide 6   
Clickable   :   
Click Reference :   ct525_02_030_010ap
Screen Number   :   02_030_010


File Reference  :   ct525_02_030_010a
File Source :   Audiographics powerpoint presentation slide 6   
Has Click   :   yes
Click Reference :   ct525_02_030_010ap
Screen Number   :   02_030_010




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




how to use attributes to form a table

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

I need help to transform following XML into desired output, I'm using
cocoon1.8.2 to transform the XML into HTML.
I was wondering how can it be done with recursive progrmming style.thank
you in advance.

Cihan



  
  
 
  
   
  
 

  
  
   
   
   
   
 
  
   
  
 
   
  
  
  
  


This is the output I want, nothing else!
in HTML Table;

File Reference  :   xr525_02_040_010a
File Source :   Audiographics powerpoint presentation slide 6   
Clickable   :   
Click Reference :   ct525_02_030_010ap
Screen Number   :   02_030_010


File Reference  :   ct525_02_030_010a
File Source :   Audiographics powerpoint presentation slide 6   
Has Click   :   yes
Click Reference :   ct525_02_030_010ap
Screen Number   :   02_030_010




-
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:Xpath and generators...

2001-08-15 Thread Karl Øie

i know this is some really newbie questions, but is it possible to:

- filter a generator through xpath?
- create a custom serializer that can access session variables?

in advance thanks!

mvh karl

-
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 http request

2001-08-15 Thread Multani, Dal

Hi,

I recently installed Cocoon 2 and know very little about the product. This
is what I am trying to do:

I am calling page 2 from page 1 and am passing parameters with http request,
and have coded the following in the sitemap.xmap  (for page 2)-


http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videop"/>




The sitemap entry for page 1 looks like this -


http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videoc"/>




How can I capture the parms from hhtp request and pass on with the following
URL for page 2 :

http://localhost/cgi-bin/nwwcgi.exe/vsrprod/videop"/>

Any help or examples would be greatly appreciated. Thanks.


Dal Multani
 


-
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: mail taglib in C2

2001-08-15 Thread John Yoost


I am not talking about using the sendmail module.  I'm talking about
using the mail module, the one that was in
processor/xsp/library/mail/mail.xsl in C1.

Is that going to be brought over to C2?

Does anyone know the status?


> On Tue, 14 Aug 2001 15:28:21 -0700
> John Yoost <[EMAIL PROTECTED]> wrote:
> 
> > sendmail is in C2 but does anyone know when mail will be?
> 
> In the default configuration, the mail will never be sent.
> To use sendmail, add the following code to
> /cocoon/markup-languages/xsp-language/target-language/
> as a child node in cocoon.xconf:
> 
> 
>   
>   http://apache.org/cocoon/sendmail/1.0"/>
>value="resource://org/apache/cocoon/components/language/markup/xsp/java/se
> ndmail.xsl"/>
> 
> 
> and delete work directory(for Tomcat, tomcat/work) before restart your
> servlet engine.
> 
> 
> 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]>

-
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/xsl/xsp

2001-08-15 Thread Arif Natha


Christopher hi,
many thanks for your reply, i did not know the task involved HTML forms in
CGI or Servlet programming, which i have no
experience of before, definitely will follow up on from what u mentioned.

Regards
Arif 


-Original Message-
From: Christopher Painter-Wakefield [mailto:[EMAIL PROTECTED]]
Sent: 15 August 2001 15:55
To: [EMAIL PROTECTED]
Subject: Re: xml/xsl/xsp



Arif,

you aren't doing anything to obtain the user's input.  Are you familiar
with HTML forms in CGI or Servlet programming or anything like that?  If
not, you might want to get a book on Servlets or some such.

Anyway, try modifying your XML to something like this:






http://www.apache.org/1999/XSP/Core"; language="java"
>
  
String input = request.getParameter("user");
String msg;
if (input == null || "".equals(input)) {
  msg = "Hello, world!";
} else {
  msg = input;
}
  

  
msg
  



Also take a look at the documentation on the Request logicsheet (it is on
the Cocoon2 site, but it is actually written for Cocoon 1).

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  xml/xsl/xsp



hi,
please could you give me a hand with this.

need help
ok ive got this far, needed to create an HTML form with a text input field
-
which ive done
what i need to do - using xml&xsl, create an HTML form
that submits to the page that i created i the(the xml & xsl file
i created that generated an HTML page saying Hello World)
which should be modified to display any text entered by the user instead of
Hello World.
i ran it it does not work, where am i going wrong?
my xml is not picking up what i type in the message field
any help please?
using apache webserver with cocoon


XML FILE






http://www.apache.org/1999/XSP/Core"; language="java"
>
  
String msg = "Hello, world!";
  

  
msg
  





xsl file


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









HTML FILE






Message Text:







thanks
arif





-
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/xsl/xsp

2001-08-15 Thread Christopher Painter-Wakefield


Arif,

you aren't doing anything to obtain the user's input.  Are you familiar
with HTML forms in CGI or Servlet programming or anything like that?  If
not, you might want to get a book on Servlets or some such.

Anyway, try modifying your XML to something like this:






http://www.apache.org/1999/XSP/Core"; language="java"
>
  
String input = request.getParameter("user");
String msg;
if (input == null || "".equals(input)) {
  msg = "Hello, world!";
} else {
  msg = input;
}
  

  
msg
  



Also take a look at the documentation on the Request logicsheet (it is on
the Cocoon2 site, but it is actually written for Cocoon 1).

-Christopher




Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  xml/xsl/xsp



hi,
please could you give me a hand with this.

need help
ok ive got this far, needed to create an HTML form with a text input field
-
which ive done
what i need to do - using xml&xsl, create an HTML form
that submits to the page that i created i the(the xml & xsl file
i created that generated an HTML page saying Hello World)
which should be modified to display any text entered by the user instead of
Hello World.
i ran it it does not work, where am i going wrong?
my xml is not picking up what i type in the message field
any help please?
using apache webserver with cocoon


XML FILE






http://www.apache.org/1999/XSP/Core"; language="java"
>
  
String msg = "Hello, world!";
  

  
msg
  





xsl file


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









HTML FILE






Message Text:







thanks
arif





-
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 request object

2001-08-15 Thread aaldridg

Hi,

I had the same problem. It's strange the API says that HttpRequest
implements HttpServletRequest. It does in all but name - ie it has all the
methods, but doesn't explicitly implement the interface.

I posted this question before asking if this was an oversight or done on
purpose - but no response. Perhaps this is one for the dev group to answer.
Looking at the code, it would be simple either to add an access method
(getRequest) to the HttpRequest object, or to simply formally implement the
interface.

In the meantime I've simply recoded my software to use HttpRequest instead
of HttpServletRequest (which is inconvenient, but hey...).

The Cocoon request object CAN be cast to a (Cocoon)  HttpRequest object.
This does have the same methods, so the code just needs adjusting to use
the Cocoon class instead of the javax class.

I wonder why ...

Here's some xsp code I use now:  jbxsp = new Jbxsp
( (org.apache.cocoon.environment.http.HttpRequest )(request) ,
"com.jpmorgan.mih.intranet.example.SimpleSite");

Unfortunately, because I'm mindful that the javax class would be more
useful in general, and I would hope it will become available, I have to
duplicate my java methods, one for each class - not nice!

eg

public void setReq(javax.servlet.http.HttpServletRequest req){
setRequest(req);

   }

public void setReq(org.apache.cocoon.environment.http.HttpRequest req){
setRequest(req);
...
}

I use the setRequest with the Cocoon class to set a flag (boolean c2), so that other 
methods relying on the request object can use the correct
version. All a bit of a hack really...

eg

 String eCom = null;
 String sTag = null;
 if(c2)
 eCom = hreq.getParameter("mih_edit_component");
 else
 eCom = req.getParameter("mih_edit_component");
 if(c2)
 sTag = hreq.getParameter("mih-selected-tag");
 else
 sTag = req.getParameter("mih-selected-tag");


Never mind!

Regards,

Anthony Aldridge
Lead Application developer

Managed Intranet Hosting
Personal GDP: 325-8338
MIH Hotline: 876-1300





Cassandra Bonner <[EMAIL PROTECTED]> on 15/08/2001 06:17:45

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: C2 request object


Hmmm,

we hit this as well while migrating, but i assumed from the posting
below that there is no way to get to the
javax.servlet.HttpServletReq/Resp.?.

I've moved to the cocoon req,resp (which according to this posting is
more generic), but I don't understand how this will be portable.  As
you, I have java code called outside my xsp pages (not beans, but
manager classes) that uses the req and resp, which now has to be
coded with cocoon req resp.

Anyways, the posting might offer some consolation.?.  If you find a
way to use javax.servlet.*, pls post to group.

http://mailman.real-time.com/pipermail/cocoon-users/2001-April/013154.html

thanks!
cass


--- Paul Lamb <[EMAIL PROTECTED]> wrote:
> I'm porting some c1 code over and need to get the actual
> javax.servlet.http.HttpServletRequest object in a xsp page so that
> it
> can be passed to another bean.
>
> Casting the request object doesn't work and I can't find a
> getRequest()
> method.
>
> Any suggesting are appreciated.
>
> Paul Lamb
>
>
-
> 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!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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]>




xml/xsl/xsp

2001-08-15 Thread Arif Natha


hi,
please could you give me a hand with this.

need help
ok ive got this far, needed to create an HTML form with a text input field -
which ive done
what i need to do - using xml&xsl, create an HTML form
that submits to the page that i created i the(the xml & xsl file
i created that generated an HTML page saying Hello World)
which should be modified to display any text entered by the user instead of
Hello World.
i ran it it does not work, where am i going wrong?
my xml is not picking up what i type in the message field
any help please?
using apache webserver with cocoon


XML FILE






http://www.apache.org/1999/XSP/Core"; language="java"
>
  
String msg = "Hello, world!";
  

  
msg
  





xsl file


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









HTML FILE






Message Text:







thanks
arif





-
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: mail taglib in C2

2001-08-15 Thread ozawa

Hello.

On Tue, 14 Aug 2001 15:28:21 -0700
John Yoost <[EMAIL PROTECTED]> wrote:

> sendmail is in C2 but does anyone know when mail will be?

In the default configuration, the mail will never be sent.
To use sendmail, add the following code to
/cocoon/markup-languages/xsp-language/target-language/
as a child node in cocoon.xconf:


  
  http://apache.org/cocoon/sendmail/1.0"/>
  


and delete work directory(for Tomcat, tomcat/work) before restart your
servlet engine.


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: Where to put custom producer

2001-08-15 Thread Mark Wright

I recently had this same problem and in the end realised that I needed to
move the cocoon.jar (I'd put my producer in the same package as
ProducerFromFile) from the build into the bin directory :)
I also had a prob with cocoon.properties getting overwritten and so losing
the producer.type... but that has stopped now.
The custom producer is invoked most simply by
http://localhost/dummy.xml?producer=MyProducer

M


-Original Message-
From: Kilmer, Erich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 9:26 PM
To: [EMAIL PROTECTED]
Subject: Where to put custom producer


Has anyone out there gotten a customer Producer to work in Cocoon 1?

I have been playing with Cocoon1 and running it in my Orion apps server.
With this I have been able to convert XML file input to  PDF output on the
fly. That works fine and I have been pleased with the results. In our
application however the XML is stored in a blob in the database. So I want
to build a custom Producer class that gets the XML from the database through
an EJB layer. I have built a class StatementXMLProducer that does this. I
have compiled this class and put it in a separate jar file. In the
Cocoon.properties file I have added:
producer.type.statement = com.bellhowell.eroute.cocoon.StatementXMLProducer

I have taken this new jar and placed on my CLASSPATH and in several key
places in my apps server but when I try to access it I get:
java.lang.RuntimeException: Error creating
com.bellhowell.eroute.cocoon.StatementXMLProducer: class is not found
So I have a couple of questions

1) Where do you put your custom Producer class to make it work?

2) How do you invoke the customer producer? 

3) Is a custom producer class the best way to go?

Thanks for your response!


-
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: Today's CVS broken?

2001-08-15 Thread Carsten Ziegeler

Interesting what a simple update of a library could cause for
trouble...

OK, I currently rebuild the official 1.1 release
of velocity which is included in C2 with the latest logkit b4.

Using this new library the velocity examples and c2 is
working again.

I checkin this new jar in a minute. Could someone else verify
that now everything is working again?


Carsten 

Open Source GroupsunShine - b:Integrated

Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de  mailto: [EMAIL PROTECTED] 


> Christian Haul wrote:
> 
> On 14.Aug.2001 -- 05:50 PM, Carsten Ziegeler wrote:
> > Yes, it worked :-)
> > 
> > So we could either get a working velocity version, rollback to
> > the old logkit or disable the velocity generator.
> 
> As I haven't used it so far, I'm probably not the right person to
> decide if a daily snapshot works as expected. The only test I could
> do would be if the example works (and which logkit version it uses).
> 
> If a current snapshot uses current logkit and seems to work fine, I'd
> prefer that. If it doesn't, I would rollback in 2.0 and have velocity
> disabled in 2.1.
> 
> OTOH if few use velocity in 2.0, it would be easier to disable it for
> the time being. I don't at the moment.
> 
> > PS: Please keep the 2.0 branch in sync with 2.1 for these changes
> > as both use the latest logkit.
> 
> Ooops. Didn't know. Will commit in 2.0 first thing when back in
> office. 
> 
>   Chris.
> 
> -- 
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: java.lang.NoSuchMethodError - StreamTarget.java:34

2001-08-15 Thread Christian Haul

On 15.Aug.2001 -- 01:22 AM, [EMAIL PROTECTED] wrote:
> 
> Root Cause:
> java.lang.NoSuchMethodError
> at org.apache.log.output.io.StreamTarget.(StreamTarget.java:34)
> at org.apache.log.output.io.FileTarget.(FileTarget.java:40)

There has been a version conflict with velocity's logkit. The old
version has been removed at the expense of velocity being temporary
broken for C2. Please update your snapshot.

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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.NoSuchMethodError - StreamTarget.java:34

2001-08-15 Thread cocoon


Root Cause:
java.lang.NoSuchMethodError
at org.apache.log.output.io.StreamTarget.(StreamTarget.java:34)
at org.apache.log.output.io.FileTarget.(FileTarget.java:40)

Hello,

I am trying to run a development version of Cocoon2 with Tomcat 4.0
nightly build of Aug. 14th.

Tomcat installs and runs fine.

I executed:

[anjul@anjul xml-cocoon2]$ ./build.sh  -Dinclude.webapp.libs=yes
-Dinstall.war=/usr/local/jakarta-tomcat-4.0/webapps install

to install Cocoon 2

But I get the following error when attempting to access the Cocoon page:

java.lang.NoSuchMethodError
at org.apache.log.output.io.StreamTarget.(StreamTarget.java:34)
at org.apache.log.output.io.FileTarget.(FileTarget.java:40)

I changed the following files in my cvs snapshot:

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic diff xml-cocoon2
? xml-cocoon2/work
cvs server: Diffing xml-cocoon2
Index: xml-cocoon2/build.xml
===
RCS file: /home/cvspublic/xml-cocoon2/build.xml,v
retrieving revision 1.8.2.28
diff -r1.8.2.28 build.xml
215c215
< 
---
> 

cvs server: Diffing xml-cocoon2/webapp/WEB-INF
Index: xml-cocoon2/webapp/WEB-INF/web.xml
===
RCS file: /home/cvspublic/xml-cocoon2/webapp/WEB-INF/web.xml,v
retrieving revision 1.1.1.1.2.6
diff -r1.1.1.1.2.6 web.xml
168a169
> -->
172c173
<
WEB-INF/extra-classes1:/[YOU-ABSOLUTE-PATH-TO]/own.jar
---
>
/usr/local/jakarta-tomcat-4.0/common/lib/servlet.jar
174d174
< -->

Please help if you can!

Thanks,
Anjul.


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