Generator for OpenOffice

2003-03-11 Thread Yves Vindevogel
Anyone who knows whether there's a generator for OpenOffice files ?

Kind regards,
Yves Vindevogel


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



RE: Generator for OpenOffice

2003-03-11 Thread Scott Warren
OpenOffice 1.0 files are actually a set of XML files Zipped. If you rename
an Open Office document to Zip you will find that the Draw application for
example has an SVG file inside. Not sure if it's possible with Cocoon to
generate the 4 files and the ZIP (anyone ??).

Hope this helps


Scott Warren

-Original Message-
From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 11 March 2003 7:43 PM
To: [EMAIL PROTECTED]
Subject: Generator for OpenOffice


Anyone who knows whether there's a generator for OpenOffice files ?

Kind regards,
Yves Vindevogel


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



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



problems with images

2003-03-11 Thread Richard Cunliffe

Niclas and Charles,

I would prefer to get images working within cocoon, so that when I want
to do more advance things I don't need to worry about it.

I have done all that Charles has suggest and still only the backdrop
works, any other suggestions?

Richard.




xsl.zip
Description: Zip compressed data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Generator for OpenOffice

2003-03-11 Thread Yves Vindevogel
I know the way OpenOffice stores its files (a set of xml files into a zip with 
another extension).  That's why I was wondering whether a generator exists 
...
I wrote a little script in perl (actually my first usefull perl script at the 
time) that extracts all the files into one .xml file which I then use but I 
want to prevent that step and just drop my files onto my cocoon directory and 
generate from them.

Basically, it's the ZipGenerator I need with some extras, but before writing 
the code myself, I was wondering whether someone had done it before me.


 OpenOffice 1.0 files are actually a set of XML files Zipped. If you rename
 an Open Office document to Zip you will find that the Draw application for
 example has an SVG file inside. Not sure if it's possible with Cocoon to
 generate the 4 files and the ZIP (anyone ??).

 Hope this helps


 Scott Warren

 -Original Message-
 From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 11 March 2003 7:43 PM
 To: [EMAIL PROTECTED]
 Subject: Generator for OpenOffice


 Anyone who knows whether there's a generator for OpenOffice files ?

 Kind regards,
 Yves Vindevogel


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



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

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

oo2xml
Description: Perl program
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Forms

2003-03-11 Thread Ines Robbers
Hello list,

We want to use Cocoon for our forms (application forms etc.).
It should be something like a form center.
What is the best approach to realise this?
Are there any examples on the net?

Many thanks!

Ines 



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



Re: Flowscript

2003-03-11 Thread Ugo Cei
Luca Marchetti wrote:
 I'm tryng to get flowscript work
When I try to use flowscript, as in the flow/calc demo of cocoon2.1 i 
get this error:

ReferenceError: Continuation is not defined. 
Looks like you have a wrong version of Rhino in your classpath. Verify 
that you have rhino1.5r4-continuations-20020816.jar in WEB-INF/lib and 
that it is not overridden by some other version.

	Ugo

--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problems with images

2003-03-11 Thread Niclas Hedhman
On Tuesday 11 March 2003 17:12, Richard Cunliffe wrote:
 Niclas and Charles,

 I would prefer to get images working within cocoon, so that when I want
 to do more advance things I don't need to worry about it.

 I have done all that Charles has suggest and still only the backdrop
 works, any other suggestions?

It is very weird that the 
body background=/soundpool/images/background.gif

would work and 

img img=/soundpool/images/musicnews.gif/

does not. 
First of all you must ensure that the files are the files you think they are, 
not cached and so on. Replace the background.gif with a different image, and 
see if that change happens (often it doesn't).

Do you have this site public? I could take a quick look.


Niclas



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



RE: problems with images

2003-03-11 Thread Richard Cunliffe
Yep, the address is www.cunliffe.net/soundpool


Richard.

-Original Message-
From: Niclas Hedhman [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 09:33
To: [EMAIL PROTECTED]
Subject: Re: problems with images

On Tuesday 11 March 2003 17:12, Richard Cunliffe wrote:
 Niclas and Charles,

 I would prefer to get images working within cocoon, so that when I
want
 to do more advance things I don't need to worry about it.

 I have done all that Charles has suggest and still only the backdrop
 works, any other suggestions?

It is very weird that the 
body background=/soundpool/images/background.gif

would work and 

img img=/soundpool/images/musicnews.gif/

does not. 
First of all you must ensure that the files are the files you think they
are, 
not cached and so on. Replace the background.gif with a different image,
and 
see if that change happens (often it doesn't).

Do you have this site public? I could take a quick look.


Niclas



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




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



Re: Axis as Cocoon component?

2003-03-11 Thread Alexander Enns
Hi Markus,

Do you mean the soap server isn't compiling or Cocoon itself ?

Yes, I meant the Cocoon itself did not compile. But I got it now.
The asciiart block missed junit.jar in lib directory.

Now I have troubles with XSP. If I try to execute any XSP I get exception listed below.
Can You say me what it could be? If not I will post it under another subject.

The configuration is:
Tomcat 4.1.12
Java 1.3.1
Cocoon 2.1 dev

Thanks,

Alexander

java.lang.UnsupportedClassVersionError: org/apache/cocoon/www/test_xsp (Unsupported 
major.minor version 48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at 
org.apache.cocoon.components.classloader.ClassLoaderManagerImpl.loadClass(ClassLoaderManagerImpl.java:107)
at 
org.apache.cocoon.components.language.programming.java.JavaLanguage.loadProgram(JavaLanguage.java:185)
at 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage.java:212)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loadProgram(ProgramGeneratorImpl.java:415)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:302)
at 
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:202)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:378)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:596)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:505)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:467)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:145)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:600)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 

Re: Cocoon installation help!!

2003-03-11 Thread Joerg Heinicke
Hi Raj,

there does exist a bug according redirecting in WebSphere: 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17594.

Joerg

Rajasekhar Atchutuni wrote:
Hi,

I am trying to install cocoon.war (2.0.4) in WebSphere 4.0.5 on redhat 
linux 7.2 Server.  I get the welcome page able to see most of the pages 
except the documentation page on the cocoon welcome page.  The error is 
The requested URI /cocoon/dcocoon/documents/index.html was not found.

Obviously the URI is wrong, if I remove dcocoon it works fine.  I have 
an application in cocoon which is under the directory newtest and when I 
try to go to that the path is /cocoon/ncocoon/, its adding the first 
letter and then cocoon to it in the URI.  Any one got this kind of 
error.  Any help will be appreciated.
If I am able to go thru the pages when I correct the URI.

Thanks
Raj
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HTML-Generator - XPath

2003-03-11 Thread Harald Wehr
Hi,

yesterday we upated our webapp with the current changes of cocoon-2.1 
repository. I have a question concerning the HTML-Generator. The 
following sitemap-snippet matched in our previous version the body-tag 
of the google-site. This is not working anymore. Are there any changes 
concerning the xpath-expression?

map:match pattern=**/google.html
map:generate type=html src=http://www.google.de;
map:parameter name=xpath value=//body/
/map:generate
map:serialize/
/map:match
In the meantime we made a dirty solution by changing the 
xpath-expression to: //*[contains(name(),'body')].
This is working but we are looking for a better solution where we can 
use our previous statements. Any hints here?

Thanks
Harald


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


Re: problems with images

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote:
 
 Niclas,
 
 Have tried changing the image to another, and it doesn't show anymore.
 When I revert it back to the backdrop image, it starts to work again???

Probably browser cache.

I believe Charle's answer bears the key: The matches for your readers
are outside of a map:pipeline.

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

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



RE: problems with images

2003-03-11 Thread Richard Cunliffe
Christian,

I have put them within the pipeline now and still only the backdrop
works. I have also discovered if you change the image, then nothing
shows.

Richard.


-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 11:37
To: [EMAIL PROTECTED]
Subject: Re: problems with images

On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote:
 
 Niclas,
 
 Have tried changing the image to another, and it doesn't show anymore.
 When I revert it back to the backdrop image, it starts to work
again???

Probably browser cache.

I believe Charle's answer bears the key: The matches for your readers
are outside of a map:pipeline.

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

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



xsl.zip
Description: Zip compressed data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Axis as Cocoon component?

2003-03-11 Thread Marcus Crafter
Hi Alexander,

On Tue, Mar 11, 2003 at 11:54:46AM +0100, Alexander Enns wrote:
 
 Java 1.3.1
 ...
 
 java.lang.UnsupportedClassVersionError: org/apache/cocoon/www/test_xsp
  (Unsupported major.minor version 48.0)

I suspect the XSP files have been compiled using jdk 1.4.x and
you're attempting to run them using jdk 1.3.1. Could that be the
case ?

I'd clean out your work directory (ie. remove the xsp class files)
and see then if the problem persists.

Hope that helps.

Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ :'   60327 Frankfurt Germany
   ' /( 
   \_'
  .
:

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



Re: Axis as Cocoon component?

2003-03-11 Thread Stephan Michels


On Tue, 11 Mar 2003, Marcus Crafter wrote:

 Hi Alexander,

 On Tue, Mar 11, 2003 at 11:54:46AM +0100, Alexander Enns wrote:
 
  Java 1.3.1
  ...
 
  java.lang.UnsupportedClassVersionError: org/apache/cocoon/www/test_xsp
   (Unsupported major.minor version 48.0)

   I suspect the XSP files have been compiled using jdk 1.4.x and
   you're attempting to run them using jdk 1.3.1. Could that be the
   case ?

   I'd clean out your work directory (ie. remove the xsp class files)
   and see then if the problem persists.

I got the same exception, but I doesn't use a 1.4 jdk. Can it be that
we currently using a XSP compiler, which targets at 1.4?

Stephan.


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



Dynamically generate RSS feed for Cocoon portal from XML files

2003-03-11 Thread hgadm
Dear all,

I would like to dynamically generate an RSS feed from
currently available XML files in a folder on my
webserver to be displayed in the Cocoon portal.

I have a set of equally structured XML files in a
folder and new files are added to this folder regularly.

Now I want to generate the RSS feed dynamically when
the respective coplet displays the RSS in the portal.

The RSS file should reflect the title of these XML
files (which is in the dc:title tag of each file) and
the URI (the path + filename).

Any ideas are greatly appreciated, hope someone has
done similar things before - otherwise I would need to
start from scratch.

Kind regards,

Holger

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



Re: Generator for OpenOffice

2003-03-11 Thread Geoff Howard
There's no OpenOffice specific generator in the dist currently, if that's 
what you're asking.  There may be others out there who have developed one 
and have not added it to the core of cocoon...?

Geoff

At 04:26 AM 3/11/2003, you wrote:
I know the way OpenOffice stores its files (a set of xml files into a zip 
with
another extension).  That's why I was wondering whether a generator exists
...
I wrote a little script in perl (actually my first usefull perl script at the
time) that extracts all the files into one .xml file which I then use but I
want to prevent that step and just drop my files onto my cocoon directory and
generate from them.

Basically, it's the ZipGenerator I need with some extras, but before writing
the code myself, I was wondering whether someone had done it before me.
 OpenOffice 1.0 files are actually a set of XML files Zipped. If you rename
 an Open Office document to Zip you will find that the Draw application for
 example has an SVG file inside. Not sure if it's possible with Cocoon to
 generate the 4 files and the ZIP (anyone ??).

 Hope this helps


 Scott Warren

 -Original Message-
 From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 11 March 2003 7:43 PM
 To: [EMAIL PROTECTED]
 Subject: Generator for OpenOffice


 Anyone who knows whether there's a generator for OpenOffice files ?

 Kind regards,
 Yves Vindevogel


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



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
--
Met vriendelijke groeten,
Kind regards,
Bien à vous,
Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be
Quote: The winner never says participating is more important than winning.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: problems with images

2003-03-11 Thread Geoff Howard
To make matters worse - I found the following in the html:
body background=C:\tomcat\webapps\cocoon\soundpool\images\backgroundpda.gif
That would explain a lot...

Geoff

At 07:58 AM 3/11/2003, you wrote:
On 11.Mar.2003 -- 11:44 AM, Richard Cunliffe wrote:
  From: Christian Haul [mailto:[EMAIL PROTECTED]
  On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote:
   Have tried changing the image to another, and it doesn't show anymore.
   When I revert it back to the backdrop image, it starts to work
  again???
 
  Probably browser cache.
 
  I believe Charle's answer bears the key: The matches for your readers
  are outside of a map:pipeline.
 
  I have put them within the pipeline now and still only the backdrop
  works. I have also discovered if you change the image, then nothing
  shows.
This is from your sitemap.xmap:

map:match pattern=**.gif
map:read mime-type=image/gif src=soundpool/images/*.gif/
/map:match
map:match pattern=*.jpg
   map:read mime-type=image/jpg src=soundpool/images/{1}.jpg/
/map:match
The gif pipeline does not use {1} like the jpg one does -- this is a
problem. If you need to match arbitrarily deep paths, consider
switching to the regexp matcher.
If it all doesn't help, look at the access.log and sitemap.log. Try to
reconstruct which matchers fire. It will sure provide some hints.
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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: problems with images

2003-03-11 Thread Geoff Howard
And, though the background is correct on the database page, the images 
contain the following:

img 
src=file://C:\tomcat\webapps\cocoon\soundpool\images\databasequeries.gif

At 08:28 AM 3/11/2003, you wrote:
To make matters worse - I found the following in the html:
body 
background=C:\tomcat\webapps\cocoon\soundpool\images\backgroundpda.gif

That would explain a lot...

Geoff

At 07:58 AM 3/11/2003, you wrote:
On 11.Mar.2003 -- 11:44 AM, Richard Cunliffe wrote:
  From: Christian Haul [mailto:[EMAIL PROTECTED]
  On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote:
   Have tried changing the image to another, and it doesn't show anymore.
   When I revert it back to the backdrop image, it starts to work
  again???
 
  Probably browser cache.
 
  I believe Charle's answer bears the key: The matches for your readers
  are outside of a map:pipeline.
 
  I have put them within the pipeline now and still only the backdrop
  works. I have also discovered if you change the image, then nothing
  shows.
This is from your sitemap.xmap:

map:match pattern=**.gif
map:read mime-type=image/gif src=soundpool/images/*.gif/
/map:match
map:match pattern=*.jpg
   map:read mime-type=image/jpg src=soundpool/images/{1}.jpg/
/map:match
The gif pipeline does not use {1} like the jpg one does -- this is a
problem. If you need to match arbitrarily deep paths, consider
switching to the regexp matcher.
If it all doesn't help, look at the access.log and sitemap.log. Try to
reconstruct which matchers fire. It will sure provide some hints.
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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



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


Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote:
 I have a pipeline in which there is my custom transformer.
 In this transformer I have a method which access to an XMLDB and get a 
 result object.
 
 I want my transformer to get the object (in a session) and get it to an xsp 
 page.
 
 Is it possible to do such a thing ?

Sure. Just add the object to the session and retrieve it in your XSP
e.g. using the session logicsheet. However, since the transformer runs
in parallel to the XSP, they may not be within the same pipeline. IOW
the XSP can reliably read the value only for a subsequent
(i.e. different) request.

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

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



Re: object in a transformer

2003-03-11 Thread Lionel Crine
If I understand well, this is possible.

But how can I add the object to the session. I think I should do that in 
the transformer.
Can you tell me some more ?



At 14:32 11/03/2003 +0100, you wrote:
On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote:
 I have a pipeline in which there is my custom transformer.
 In this transformer I have a method which access to an XMLDB and get a
 result object.

 I want my transformer to get the object (in a session) and get it to an 
xsp
 page.

 Is it possible to do such a thing ?

Sure. Just add the object to the session and retrieve it in your XSP
e.g. using the session logicsheet. However, since the transformer runs
in parallel to the XSP, they may not be within the same pipeline. IOW
the XSP can reliably read the value only for a subsequent
(i.e. different) request.
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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: problems with images

2003-03-11 Thread Richard Cunliffe
Geoff,

All the different versions of how I have tried to link the image are
different methods I tried and not been successful with. 

To summarise what I have done:

1. I have added the readers into my pipelines in my sitemap
2. I have tried the following ways to link the images:


background=/soundpool/images/background.gif (works)?

src=/soundpool/images/background.gif (doesn't work)

src=/soundpool/images/musicnews.gif (doesn't work)

src=C:/tomcat/webapps/soundpool/images/background.gif (doesn't work)

file://C:\tomcat\webapps\cocoon\soundpool\images\databasequeries.gif
(doesn't work)


I believe the first one should work when I have the readers in my
pipeline, but it only works on the backdrop?

Could someone tell me all the code that they have written in all
relevant files to make images display.


Thanks,

Richard.



-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 13:28
To: [EMAIL PROTECTED]
Subject: Re: problems with images

To make matters worse - I found the following in the html:
body
background=C:\tomcat\webapps\cocoon\soundpool\images\backgroundpda.gif


That would explain a lot...

Geoff

At 07:58 AM 3/11/2003, you wrote:
On 11.Mar.2003 -- 11:44 AM, Richard Cunliffe wrote:
   From: Christian Haul [mailto:[EMAIL PROTECTED]
   On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote:

Have tried changing the image to another, and it doesn't show
anymore.
When I revert it back to the backdrop image, it starts to work
   again???
  
   Probably browser cache.
  
   I believe Charle's answer bears the key: The matches for your
readers
   are outside of a map:pipeline.
  
   I have put them within the pipeline now and still only the
backdrop
   works. I have also discovered if you change the image, then
nothing
   shows.

This is from your sitemap.xmap:

 map:match pattern=**.gif
 map:read mime-type=image/gif src=soundpool/images/*.gif/
 /map:match

 map:match pattern=*.jpg
map:read mime-type=image/jpg
src=soundpool/images/{1}.jpg/
 /map:match

The gif pipeline does not use {1} like the jpg one does -- this is a
problem. If you need to match arbitrarily deep paths, consider
switching to the regexp matcher.

If it all doesn't help, look at the access.log and sitemap.log. Try to
reconstruct which matchers fire. It will sure provide some hints.

 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

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


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




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



Re: problems with images

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 01:46 PM, Richard Cunliffe wrote:
 Could someone tell me all the code that they have written in all
 relevant files to make images display.

Have a look at the database samples --  there's one for the modular
database actions that does image uploads to the database. In
addition, the very same XSP displays all images currently contained in
the database.

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

And if you are really cool, add a page at http://wiki.cocoondev.org

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

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



Re: Dynamically generate RSS feed for Cocoon portal from XML files

2003-03-11 Thread jmaukisch

Hi,

 I would like to dynamically generate an RSS feed from
 currently available XML files in a folder on my
 webserver to be displayed in the Cocoon portal.
I did that some days ago ...

This was my approach:
1. Use the directory generator to generate the list of files in your folder
2. Transform the file list to cinclude statements
3. Transform the the list with the cinclude transformer
4. Apply a nice xsl wich selects the stuff you want to have in your rss
feed ;-)


You pipeline will look like this:
map:match pattern=foobar
 map:generate type=dir src=your/dir//
  map:transform src=dir2cinclude.xsl/
  map:transform type=cinclude/
  map:transform src=cinclude2rss.xsl/
  map:serialize type=xml/
/map:match

don't know if it's the best way, but it simply works
maybe there are some performance problems if you have
many and/or large files


kind regards
Jens Maukisch
-
sn AG
netBank solutions
Klingenderstr. 5mailto:[EMAIL PROTECTED]
D-33100 Paderborn   http://www.s-und-n.de
-
CeBIT 2003 * Hannover * 12.-19.3.2003
Besuchen Sie uns auf dem Stand der Software AG
Halle 18 EG * Bank-Finanz-Systeme * Stand A24.15
-


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



Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 02:46 PM, Lionel Crine wrote:
 At 14:32 11/03/2003 +0100, you wrote:
 On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote:
  I have a pipeline in which there is my custom transformer.
  In this transformer I have a method which access to an XMLDB and get a
  result object.
 
  I want my transformer to get the object (in a session) and get it to an 
 xsp
  page.
 
  Is it possible to do such a thing ?
 
 Sure. Just add the object to the session and retrieve it in your XSP
 e.g. using the session logicsheet. However, since the transformer runs
 in parallel to the XSP, they may not be within the same pipeline. IOW
 the XSP can reliably read the value only for a subsequent
 (i.e. different) request.
 
 If I understand well, this is possible.
 
 But how can I add the object to the session. I think I should do that in 
 the transformer.
 Can you tell me some more ?

You need to get hold of the request object through the objectModel and
the ObjectModelHelper. Get a session object from the request and set
an attribute. Have a look at the transformers in the distribution for
sample code.

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

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



Re: Axis as Cocoon component?

2003-03-11 Thread Alexander Enns
Hi Markus,

the problem was realy the compiler settings.
I have changed the compiler setting to Javac. Now all working properly.

At last I can begin to play with SoapServer. :-)

Thanks for Your help,

Alexander

 Marcus Crafter [EMAIL PROTECTED] Tuesday, 11. March 2003 14:10:05 
On Tue, Mar 11, 2003 at 01:38:07PM +0100, Stephan Michels wrote:
 
 
 On Tue, 11 Mar 2003, Marcus Crafter wrote:
 
  Hi Alexander,
 
  On Tue, Mar 11, 2003 at 11:54:46AM +0100, Alexander Enns wrote:
  
   Java 1.3.1
   ...
  
   java.lang.UnsupportedClassVersionError: org/apache/cocoon/www/test_xsp
(Unsupported major.minor version 48.0)
 
  I suspect the XSP files have been compiled using jdk 1.4.x and
  you're attempting to run them using jdk 1.3.1. Could that be the
  case ?
 
  I'd clean out your work directory (ie. remove the xsp class files)
  and see then if the problem persists.
 
 I got the same exception, but I doesn't use a 1.4 jdk. Can it be that
 we currently using a XSP compiler, which targets at 1.4?

Could be. The default XSP compiler was changed recently from javac
to Eclipse.

There's no chance that the XSP pages were compiled with jdk 1.4
sometime in the past and are left over in your work directory ?
(it's happened to me :) )

If not, can you perform your same test using the Javac compiler
(the settings can be modified in your cocoon.xconf), and report
back your results ?

Thanks! Cheers,

Marcus

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ :'   60327 Frankfurt Germany
   ' /( 
   \_'
  .
:


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



Re: Dynamically generate RSS feed for Cocoon portal from XML files

2003-03-11 Thread Jeff Turner
On Tue, Mar 11, 2003 at 05:11:30AM -0800, [EMAIL PROTECTED] wrote:
 Dear all,
 
 I would like to dynamically generate an RSS feed from
 currently available XML files in a folder on my
 webserver to be displayed in the Cocoon portal.
 
 I have a set of equally structured XML files in a
 folder and new files are added to this folder regularly.
 
 Now I want to generate the RSS feed dynamically when
 the respective coplet displays the RSS in the portal.
 
 The RSS file should reflect the title of these XML
 files (which is in the dc:title tag of each file) and
 the URI (the path + filename).
 
 Any ideas are greatly appreciated, hope someone has
 done similar things before - otherwise I would need to
 start from scratch.

If you're using Cocoon 2.1, the XPathDirectoryGenerator might be useful.
It lets you extract XPath-specified nodes from every file in a directory.

For example, to generate http://aft.sourceforge.net/examples/index.html
I used:

   map:match pattern=examples/index.xml
 map:generate type=xpathdirectory
  src=content/xdocs/examples#/project/description/text()/
 map:transform src=resources/stylesheets/antdirectory2document.xsl/
 map:serialize type=xml/
   /map:match


--Jeff

 Kind regards,
 
 Holger
 

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



Re: esql nested queries

2003-03-11 Thread Scherler
Tim,

thank you very much!

belongs on users. - you are right (the first to dev was a mistake)



Tim Myers wrote:

Thorsten,

This message belongs on users.

You can't nest that way because as soon as you hit the nested execute-query
everything from the outer query is pushed onto a stack and is inaccessible.
You need a xsp:logicint ap_id = esql:get-int column=id/ before the 
inner query begins and then use xsp:exprap_id/xsp:expr in the inner query
to recall it.

Tim

On Mon, Mar 10, 2003 at 05:36:05PM +0100, Scherler, Thorsten wrote:
 

Hello group,

I am using cocoon 2.0.4.

I tried the following the nested esql (not working):

esql:connection
esql:poolINSTA/esql:pool
esql:execute-query
esql:query
select * from xml_verkauf 
/esql:query
esql:results
esql:row-results
data
client
ep1
esql:get-int column=ap_id/
/ep1
/client
aps
esql:execute-query
esql:query
 select * from ap_tab where ap_id =esql:get-int column=ap_id/ 
/esql:query
esql:results
esql:row-results
ap
esql:get-columns/
/ap
/esql:row-results
/esql:results
esql:no-resultsno-results//esql:no-results
esql:error-results/
/esql:execute-query
/aps
/data
/esql:row-results
/esql:results
esql:no-results/
esql:error-results/
/esql:execute-query
/esql:connection

As soon as I change 
...
 select * from ap_tab where ap_id =1 
I can nest the query!

Why can I not use esql:get-int column=ap_id/ ?

King regards

   

Mit freundlichem Gruss,

Thorsten Scherler
Marketing / Telefonmarketing
Weidmüller GmbH  Co.
P.O. Box 2807
33058 Paderborn
Tel.:+ 49 - 5252-960-350
Fax:+ 49 - 5252-960-116
eMail: [EMAIL PROTECTED]
http://www.weidmueller.de
 



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



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


RE: problems with images

2003-03-11 Thread Geoff Howard
You are not serving these images through cocoon with these urls.  Your main 
page is at (after breaking out of the frame) 
http://http.dyndns.org/cocoon/soundpool/soundpool.html, so your cocoon 
webapp is mounted at /cocoon - but you are referencing the images as 
/soundpool/images.  When I browse to 
http://http.dyndns.org/soundpool/images/background.gif I get an image, but 
http://http.dyndns.org/soundpool/images/musicnews.gif I get a 404 response 
from the webserver, not cocoon.  From this I deduce that your webserver 
(probably apache?) root is set to C:\tomcat\webapps\ ?  Which means that if 
you do a directory listing of c:\tomcat\webapps\soundpool\images\ I would 
bet there is no musicnews.gif in there.

So far, this is not a cocoon issue.

Secondly, browsing to /cocoon/soundpool/images/background.gif (and 
musicnews.gif) gives a cocoon resource not found, which implies that your 
sitemap is still not configured correctly.

Check:
- Is the resource reader configured in map:readers?
- Is your map:match in a pipeline?
- Exactly what matches you should be using depends on how you have your 
sitemaps set up.  If this is from a root sitemap, it should match 
pattern=/soundpool/images/*.gif and map:read src={1}.gif and vice versa 
for *.jpg
NOTE: because you have this webapp in /cocoon mount, these matches will 
need to be referenced as /cocoon/soundpool/images/... from the outside, 
including your src attributes.
- make absolutely sure the images are in the directory you think they are

Geoff

At 08:46 AM 3/11/2003, you wrote:
Geoff,

All the different versions of how I have tried to link the image are
different methods I tried and not been successful with.
To summarise what I have done:

1. I have added the readers into my pipelines in my sitemap
2. I have tried the following ways to link the images:
background=/soundpool/images/background.gif (works)?

src=/soundpool/images/background.gif (doesn't work)

src=/soundpool/images/musicnews.gif (doesn't work)

src=C:/tomcat/webapps/soundpool/images/background.gif (doesn't work)

file://C:\tomcat\webapps\cocoon\soundpool\images\databasequeries.gif
(doesn't work)
I believe the first one should work when I have the readers in my
pipeline, but it only works on the backdrop?
Could someone tell me all the code that they have written in all
relevant files to make images display.
Thanks,

Richard.



-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]
Sent: 11 March 2003 13:28
To: [EMAIL PROTECTED]
Subject: Re: problems with images
To make matters worse - I found the following in the html:
body
background=C:\tomcat\webapps\cocoon\soundpool\images\backgroundpda.gif

That would explain a lot...

Geoff

At 07:58 AM 3/11/2003, you wrote:
On 11.Mar.2003 -- 11:44 AM, Richard Cunliffe wrote:
   From: Christian Haul [mailto:[EMAIL PROTECTED]
   On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote:

Have tried changing the image to another, and it doesn't show
anymore.
When I revert it back to the backdrop image, it starts to work
   again???
  
   Probably browser cache.
  
   I believe Charle's answer bears the key: The matches for your
readers
   are outside of a map:pipeline.
  
   I have put them within the pipeline now and still only the
backdrop
   works. I have also discovered if you change the image, then
nothing
   shows.

This is from your sitemap.xmap:

 map:match pattern=**.gif
 map:read mime-type=image/gif src=soundpool/images/*.gif/
 /map:match

 map:match pattern=*.jpg
map:read mime-type=image/jpg
src=soundpool/images/{1}.jpg/
 /map:match

The gif pipeline does not use {1} like the jpg one does -- this is a
problem. If you need to match arbitrarily deep paths, consider
switching to the regexp matcher.

If it all doesn't help, look at the access.log and sitemap.log. Try to
reconstruct which matchers fire. It will sure provide some hints.

 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

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


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


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


RE: problems with images

2003-03-11 Thread Geoff Howard
Sorry, note the typo below


- Exactly what matches you should be using depends on how you have your 
sitemaps set up.  If this is from a root sitemap, it should match 
pattern=/soundpool/images/*.gif and map:read src={1}.gif and vice 
versa for *.jpg
Sorry for the typo, this pattern should be soundpool/images/*.gif and the 
map:read is src=soundpool/images/{1}.gif

assuming your images are in that location relative to your sitemap.

Geoff 

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


Re: Generator for OpenOffice

2003-03-11 Thread Upayavira
 Basically, it's the ZipGenerator I need with some extras, but before
 writing the code myself, I was wondering whether someone had done it
 before me.

Asking a similar question, I pointed someone at an example in the Langham/Ziegler 
book (a zip source). Someone else then made a point that the jar: protocol, built into 
the JDK, can read Zip files. So check out the accessing files with jar: in the JDK and 
let us know where you get to!

Hope this helps.

Upayavira


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



Re: Axis as Cocoon component?

2003-03-11 Thread Marcus Crafter
Hi Alexander,

Thanks for the report - I've taken this up on the dev list and
we'll come up with a solution soon.

Cheers,

Marcus

On Tue, Mar 11, 2003 at 03:01:40PM +0100, Alexander Enns wrote:
 Hi Markus,
 
 the problem was realy the compiler settings.
 I have changed the compiler setting to Javac. Now all working properly.
 
 At last I can begin to play with SoapServer. :-)
 
 Thanks for Your help,
 
 Alexander
 
  Marcus Crafter [EMAIL PROTECTED] Tuesday, 11. March 2003 14:10:05 
 On Tue, Mar 11, 2003 at 01:38:07PM +0100, Stephan Michels wrote:
  
  
  On Tue, 11 Mar 2003, Marcus Crafter wrote:
  
   Hi Alexander,
  
   On Tue, Mar 11, 2003 at 11:54:46AM +0100, Alexander Enns wrote:
   
Java 1.3.1
...
   
java.lang.UnsupportedClassVersionError: org/apache/cocoon/www/test_xsp
 (Unsupported major.minor version 48.0)
  
 I suspect the XSP files have been compiled using jdk 1.4.x and
 you're attempting to run them using jdk 1.3.1. Could that be the
 case ?
  
 I'd clean out your work directory (ie. remove the xsp class files)
 and see then if the problem persists.
  
  I got the same exception, but I doesn't use a 1.4 jdk. Can it be that
  we currently using a XSP compiler, which targets at 1.4?
 
   Could be. The default XSP compiler was changed recently from javac
   to Eclipse.
   
   There's no chance that the XSP pages were compiled with jdk 1.4
   sometime in the past and are left over in your work directory ?
   (it's happened to me :) )
 
   If not, can you perform your same test using the Javac compiler
   (the settings can be modified in your cocoon.xconf), and report
   back your results ?
   
   Thanks! Cheers,
   
   Marcus
 
 -- 
 .
  ,,$,  Marcus Crafter
 ;$'  ':Computer Systems Engineer
 $: :   ManageSoft GmbH
  $   o_)$$$:   82-84 Mainzer Landstrasse
  ;$,_/\ :'   60327 Frankfurt Germany
' /( 
\_'
   .
 :
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
.
 ,,$,  Marcus Crafter
;$'  ':Computer Systems Engineer
$: :   ManageSoft GmbH
 $   o_)$$$:   82-84 Mainzer Landstrasse
 ;$,_/\ :'   60327 Frankfurt Germany
   ' /( 
   \_'
  .
:

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



Images - Lets get this straight

2003-03-11 Thread Richard Cunliffe
Geoff,

Ok we are going to get this sorted!

My directory structure looks like this:

C:\tomcat\webapps\cocoon\soundpool\images\musicnews.gif

C:
  |-Program Files
   |-Apaache Group
|- ...
  |-tomcat
   |-webapps
|-cocoon
  \sitemap.xmap
|-soundpool
  \sitemap.xmap
|-images
\musicnews.gif


I have put the following code into my MAIN sitemap which is located in
the cocoon directory:

-
!-- soundpool Folder --
map:pipeline
map:match pattern=soundpool/**
map:mount check-reload=yes
reload-method=synchron src=soundpool/sitemap.xmap
uri-prefix=soundpool/
/map:match
/map:pipeline
-


This tells cocoon where my soundpool folder is and its sitemap.

I then have the soundpool sitemap in the soundpool folder.


In the Apache httpd file the only code I have added is:

-
JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /jk ajp13
JkMount /jk/* ajp13

JkMount /cocoon ajp13
JkMount /cocoon/* ajp13
-


Now my readers in my soundpool sitemap look like this, with my current
directory set up:


-
!-- images Readers --

map:match pattern=soundpool/images/*.gif
map:read mime-type=image/gif
src=soundpool/images/{1}.gif/
/map:match

map:match pattern=soundpool/images/*.jpg
map:read mime-type=image/jpg
src=soundpool/images/{1}.jpg/
/map:match
-


The above code is within my pipeline in the soundpool sitemap. I also
have put the following code in the components section:


-
map:readers default=resource
 map:reader logger=sitemap.reader.resource name=resource
pool-max=32
 
src=org.apache.cocoon.reading.ResourceReader/
/map:readers

/map:components
-

Finally in my xsl file I have referenced the image like so:

-
body background=soundpool/images/musicnews.gif
-

So I have done (I think) everything you have suggest.

Can you check to see if I have?

Note: Look at the live site through Internet Explorer, as the Netscape
version is currently set to PDA version, which needs a lot of work. If
you don't have IE I can change them around.


Thank you,

Richard.






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



enable getlogger error

2003-03-11 Thread Lionel Crine
How can I enable the getlogger error ? does the errors are showed in the 
console.

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


Re: Images - Lets get this straight

2003-03-11 Thread Geoff Howard
At 09:56 AM 3/11/2003, you wrote:
Geoff,

Ok we are going to get this sorted!

My directory structure looks like this:

C:\tomcat\webapps\cocoon\soundpool\images\musicnews.gif

C:
  |-Program Files
   |-Apaache Group
|- ...
  |-tomcat
   |-webapps
|-cocoon
  \sitemap.xmap
|-soundpool
  \sitemap.xmap
|-images
\musicnews.gif
Aha. See below.  Do you happen to have background.gif in the apache doc 
root tree by the way?


I have put the following code into my MAIN sitemap which is located in
the cocoon directory:
-
!-- soundpool Folder --
map:pipeline
map:match pattern=soundpool/**
map:mount check-reload=yes
reload-method=synchron src=soundpool/sitemap.xmap
uri-prefix=soundpool/
/map:match
/map:pipeline
-
snip/

Now my readers in my soundpool sitemap look like this, with my current
directory set up:
-
!-- images Readers --
map:match pattern=soundpool/images/*.gif
map:read mime-type=image/gif
src=soundpool/images/{1}.gif/
/map:match
map:match pattern=soundpool/images/*.jpg
map:read mime-type=image/jpg
src=soundpool/images/{1}.jpg/
/map:match
-


Wrong: your map:mount uses uri-prefix=soundpool (this may need to be 
soundpool/).

So your matchers here need to be pattern=images/*.gif and likewise for *.jpg
See http://wiki.cocoondev.org/Wiki.jsp?page=UnderstandingCocoonMounts.
Also, the src will need to be relative to the mounted dir (whether you keep 
uri-prefix or not) - so src=images/{1}.jpg

Isn't this like what you are using for the html?


The above code is within my pipeline in the soundpool sitemap. I also
have put the following code in the components section:
-
map:readers default=resource
map:reader logger=sitemap.reader.resource name=resource
pool-max=32
src=org.apache.cocoon.reading.ResourceReader/
/map:readers
/map:components
-
Right.


Finally in my xsl file I have referenced the image like so:

-
body background=soundpool/images/musicnews.gif
-
Right if you don't want them served by cocoon (in which case, ignore 
everything above - you don't need it)

To have this come from cocoon, use =cocoon/soundpool/images/musicnews.gif 
with the changes noted above.

Note: Look at the live site through Internet Explorer, as the Netscape
version is currently set to PDA version, which needs a lot of work. If
you don't have IE I can change them around.
I've been using IE. 

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


Re: object in a transformer

2003-03-11 Thread Lionel Crine
By the way, I have few more question

1/Can I put anything in the session ?

2/In the xsp page, haow can I get attribute from the DOM object in the 
session ?
Like that : xsp-session:get-attribute name=the_object_in_the DOM/

3/If I want the xsp generator to retreive the DOMsessionelement from my 
custom transfomer, should I use a resource ?

At 14:51 11/03/2003 +0100, you wrote:
On 11.Mar.2003 -- 02:46 PM, Lionel Crine wrote:
 At 14:32 11/03/2003 +0100, you wrote:
 On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote:
  I have a pipeline in which there is my custom transformer.
  In this transformer I have a method which access to an XMLDB and get a
  result object.
 
  I want my transformer to get the object (in a session) and get it to an
 xsp
  page.
 
  Is it possible to do such a thing ?
 
 Sure. Just add the object to the session and retrieve it in your XSP
 e.g. using the session logicsheet. However, since the transformer runs
 in parallel to the XSP, they may not be within the same pipeline. IOW
 the XSP can reliably read the value only for a subsequent
 (i.e. different) request.
 
 If I understand well, this is possible.

 But how can I add the object to the session. I think I should do that in
 the transformer.
 Can you tell me some more ?
You need to get hold of the request object through the objectModel and
the ObjectModelHelper. Get a session object from the request and set
an attribute. Have a look at the transformers in the distribution for
sample code.
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
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 04:40 PM, Lionel Crine wrote:
 By the way, I have few more question
 
 1/Can I put anything in the session ?

Yes. Shouldn't be too big, though, unless you have enough memory.

 2/In the xsp page, haow can I get attribute from the DOM object in the 
 session ?
 Like that : xsp-session:get-attribute name=the_object_in_the DOM/

Retrieve the object and use e.g. jxpath or the dom java api on it.

 3/If I want the xsp generator to retreive the DOMsessionelement from my 
 custom transfomer, should I use a resource ?

Wait - you want to generate your XSP from a session attribute? Doesn't
sound too good to me. Remember that it needs to be compiled everytime
it changes Apart from that, a source seems to be right.

Why don't you include the DOM from your XSP (or from a transformer). I
believe the session framework supports similar things. In addition,
the util logicsheet lets you include an object as XML (if it
implements certain interfaces, DOM should be OK).

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

And if you are really cool, add a page at http://wiki.cocoondev.org

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

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



Re: HTML-Generator - XPath

2003-03-11 Thread Tony Collen
On Tue, 11 Mar 2003, Harald Wehr wrote:

 Hi,

 yesterday we upated our webapp with the current changes of cocoon-2.1
 repository. I have a question concerning the HTML-Generator. The
 following sitemap-snippet matched in our previous version the body-tag
 of the google-site. This is not working anymore. Are there any changes
 concerning the xpath-expression?

Not directly that I know of, but I have run into problems with some sites
where I have to give the xpath index in the file, i.e.
/html/body/div[1]/table[1]/tr[1]/td[1]  etc which is very tedious.  I
haven't found a way around it.  the HTMLGenerator's xpath *does* seem a
lot more picky compared to when I first started using Cocoon.

   map:generate type=html src=http://www.google.de;

I've had problems with Google, mainly because they forbid fetching and
searching their page using programs (The Java useragent is banned from
their server).  If you're wanting to use Cocoon and Google search, you
might want to look into their SOAP API.

Regards,

Tony


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



Images: Outside of cocoon

2003-03-11 Thread Richard Cunliffe










Geoff,



This is obviously not working!



How do I do it if I want the image outside of cocoon, and
get then to load within a page being passed through cocoon?





Richard.








Re: Images: Outside of cocoon

2003-03-11 Thread Geoff Howard
Put them in the doc root of apache and reference them from cocoon the same 
way you would from anywhere.  If apache's docroot is in C:\Program 
Files\Apache Group\wwwroot\ for instance, and you have images in C:\Program 
Files\Apache Group\wwwroot\soundpool\images\ the url will be 
/soundpool/images/*.gif - just the way you have been referencing them up to 
this point.  Cocoon as you have it set up is only handling paths that begin 
with /cocoon/

Geoff

At 10:55 AM 3/11/2003, you wrote:



Geoff,



This is obviously not working!



How do I do it if I want the image outside of cocoon, and get then to load 
within a page being passed through cocoon?





Richard.


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


Fw: XMLForm Validation

2003-03-11 Thread Jeroen Cranendonk

- Original Message -
From: Robert Kromkamp [EMAIL PROTECTED]
To: Jeroen Cranendonk [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 5:12 PM
Subject: XMLForm Validation


 Hi,

 A Zip code (in the Netherlands) consist of numbers and letters, like
1234AB.
 In the content XML this zip code is split up in 2 input elements, namely
 zipcodenumbers and zipcodeletters. These elements are graphical placed
 behind each other. I know it's possible to do an individual validation of
 these elements. When the validation of an element will fail, an error text
 is shown behind the specific input element. Cause the zipcode number and
 letter can functional be seen as one component, i want to validate them
 together and show only one error message (Zipcode is required) for both.
 Who can help me?

 Beneath I've given the structure of my current schema ...

 schema ns=http://xml.apache.cocoon/xmlform;
   xmlns=http://www.ascc.net/xml/schematron;
 titleSchema for excerpt/title

 phase id=personaldetails
 ppersonaldetails information./p
 active pattern=personaldetailsPattern/
 /phase

 pattern name=Personal Details Pattern id=personaldetailsPattern
 rule context=/lastname
 assert test=string-length(.) gt; 0Lastname is required./assert
 /rule

 rule context=/zipcodenumbers
 assert test=/personalDetails/zipcodelettersZipcode numbers is
 required./assert
 /rule
 rule context=/zipcodeletters
 assert test=string-length(.) gt; 0Zipcode letters is
 required./assert
 /rule
 /pattern
 /schema

 Many Thanks,
 Robert Kromkamp




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



Re: object in a transformer

2003-03-11 Thread Lionel Crine

Yes. Shouldn't be too big, though, unless you have enough memory.

 2/In the xsp page, haow can I get attribute from the DOM object in the
 session ?
 Like that : xsp-session:get-attribute name=the_object_in_the DOM/
Retrieve the object and use e.g. jxpath or the dom java api on it.
I'm confused ?
Here is what I understand :
1/ get the DOM from the session with xsp tag ?
2/manipulate the DOM with jxpath or DOM api.

 3/If I want the xsp generator to retreive the DOMsessionelement from my
 custom transfomer, should I use a resource ?
Wait - you want to generate your XSP from a session attribute? Doesn't
sound too good to me. Remember that it needs to be compiled everytime
it changes Apart from that, a source seems to be right.


for now I have :
map:match pattern=search
  map:generate type=customRequest/  - create sax events
  map:transform type=customQuery
  /map:transform
  map:transform type=xslt src=proto/xsl/documents.xsl/
  map:serialize type=html/
   /map:match
and I want :

1/  this first pipeline generate a DOM object in a session.

map:match pattern=search
  map:generate type=customRequest/  - create sax events from 
a form
first possibility :
  map:transform type=customQuery/ - get the result of the 
request and put it in a DOM into a session
second possibility :
  map:transform type=writeDOMsession
map:parameter name=dom-name value=result/
map:parameter name=dom-root-element value=docs/ docs is 
the root element of the sax event which comes from the first transformer.
  /map:transform
  xml:serialize/
/map:match

2/ this second pipeline get the DOM, so I could manipulate the result in 
the xsp page.
map:match pattern=xsppage
  map:generate type=serverpages src=anyxsp.xsp/ - Get, I 
don't know how the DOM session object
  map:transform type=xslt src=demo/documents.xsl/
  map:serialize/
/map:match

Furthermore, I don't know how to link the two pipeline!

Hope that helps.

Lionel

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


FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Hello Cocooners,

I have some problems with Cocoon 2.0.3 or 2.0.4, Fop 0.20.3 or 0.20.4, 
inline SVG (because using cocoon:// protocol does not work in general) and 
fonts.

Using Cocoon 2.0.3 with Fop 0.20.3 my PDFs look really nice according to 
fonts. But I can not include SVGs using fo:instream-foreign-object: 
java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext.
This class does not exist in batik-all-1.5b2.jar used in Cocoon, but the 
reason can't be the Batik jar, because it works in Cocoon 2.0.4 with the 
same jar.

On the other hand the fonts only work in 2.0.3. They are configured in 
Cocoon's sitemap:

map:serializer name=pdf mime-type=application/pdf 
src=org.apache.cocoon.serialization.FOPSerializer
  user-config src=webapps/ROOT/doc/fop/config.xml/
/map:serializer

and the user-config looks like

configuration
  fonts
font metrics-file=webapps/ROOT/doc/fop/fonts/Verdana.xml kerning=yes
  embed-file=webapps/ROOT/doc/fop/fonts/Verdana.ttf
  font-triplet name=Verdana style=normal weight=normal/
/font
font metrics-file=webapps/ROOT/doc/fop/fonts/Verdanab.xml kerning=yes
  embed-file=webapps/ROOT/doc/fop/fonts/Verdanab.ttf
  font-triplet name=Verdana style=normal weight=bold/
/font
font metrics-file=webapps/ROOT/doc/fop/fonts/Verdanai.xml kerning=yes
  embed-file=webapps/ROOT/doc/fop/fonts/Verdanai.ttf
  font-triplet name=Verdana style=italic weight=normal/
/font
font metrics-file=webapps/ROOT/doc/fop/fonts/Verdanaz.xml kerning=yes
  embed-file=webapps/ROOT/doc/fop/fonts/Verdanaz.ttf
  font-triplet name=Verdana style=italic weight=bold/
/font
  /fonts
/configuration
They work *despite* bug 6533 
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6533) and Vadim's fix, 
which was - according to CVS commit messages - applied after Cocoon 2.0.3 
release 
(http://cvs.apache.org/viewcvs.cgi/cocoon-2-historical/src/java/org/apache/cocoon/serialization/Attic/FOPSerializer.java?only_with_tag=cocoon_2_0_3_branch).

The same does not work in Cocoon 2.0.4. I get an NullPointerException, 
because _something_ is null. The config file is loaded correctly, but 
something goes wrong with the font files:

2003-03-11 16:04:00,896 INFO  [org.jboss.web.localhost.Engine] ERROR 
(2003-03-11) 16:04.00:896   [manager.] (/conweb/stream.secure.pdf) 
Thread-8/MessageHandler: Failed to read font metrics file 
nullwebapps/ROOT/doc/fop/fonts/Verdana.xml : 
/home/jheinicke/development/IUPB/iupb/nullwebapps/ROOT/doc/fop/fonts/Verdana.xml

(see the both 'null' above)

beginning of stacktrace:
javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at org.apache.fop.render.pdf.fonts.LazyFont.getAscender(Unknown Source)
at org.apache.fop.layout.FontState.getAscender(Unknown Source)



So what should I do? Should I abstain from using fonts or from using 
dynamically generated images? I want both :-) Or is it in current CVS 
version possible to use the cocoon:// protocol, which would be the most 
prefered solution.

Has anyone solved a similar problem?

Regards,

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XInclude recursion

2003-03-11 Thread Darren Petrie
Is anybody using XInclude in a recursive manner?  I've been XInclude 
non-recursively for awhile w/o problems but recently tried to XInclude 
an XML file with it's own XInclude.

According to the XInclude specification it should be recursive but it 
doesn't appear to work in Cocoon.

http://www.w3.org/TR/xinclude/

There was some traffic on this subject a few months back but no 
resolution.

http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102865442913967w=2

Any XInclude recursion success stories out there?

Thanks,
Darren
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 05:15 PM, Lionel Crine wrote:
 
 Yes. Shouldn't be too big, though, unless you have enough memory.
 
  2/In the xsp page, haow can I get attribute from the DOM object in the
  session ?
  Like that : xsp-session:get-attribute name=the_object_in_the DOM/
 
 Retrieve the object and use e.g. jxpath or the dom java api on it.
 
 I'm confused ?
 Here is what I understand :
 1/ get the DOM from the session with xsp tag ?
 2/manipulate the DOM with jxpath or DOM api.

Exactly. Check the jxpath logicsheet for example.

  3/If I want the xsp generator to retreive the DOMsessionelement from my
  custom transfomer, should I use a resource ?
 Wait - you want to generate your XSP from a session attribute? Doesn't
 sound too good to me. Remember that it needs to be compiled everytime
 it changes Apart from that, a source seems to be right.
 
 
 for now I have :
 map:match pattern=search
   map:generate type=customRequest/  - create sax events
   map:transform type=customQuery
   /map:transform
   map:transform type=xslt src=proto/xsl/documents.xsl/
   map:serialize type=html/
/map:match
 
 and I want :
 
 1/  this first pipeline generate a DOM object in a session.
 
 
 map:match pattern=search
   map:generate type=customRequest/  - create sax events from 
 a form
 first possibility :
   map:transform type=customQuery/ - get the result of the 
 request and put it in a DOM into a session
 second possibility :
   map:transform type=writeDOMsession
 map:parameter name=dom-name value=result/
 map:parameter name=dom-root-element value=docs/ docs is 
 the root element of the sax event which comes from the first transformer.
   /map:transform
   xml:serialize/
 /map:match
 
 
 2/ this second pipeline get the DOM, so I could manipulate the result in 
 the xsp page.
 map:match pattern=xsppage
   map:generate type=serverpages src=anyxsp.xsp/ - Get, I 
 don't know how the DOM session object
   map:transform type=xslt src=demo/documents.xsl/
   map:serialize/
 /map:match
 
 Furthermore, I don't know how to link the two pipeline!

You need to put a link on the first pipeline's result that points to
the second and hope that the user requests it (or force it via refresh
/ javascript / whatever).

Perhaps it would be simpler to manipulate the DOM -- to be precise the
resulting XML -- with XSL rather than XSP?

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

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



Re: FOP, inline SVG, fonts

2003-03-11 Thread Frank Taffelt
 map:serializer name=pdf mime-type=application/pdf
 src=org.apache.cocoon.serialization.FOPSerializer
user-config src=webapps/ROOT/doc/fop/config.xml/
 /map:serializer

you should try user-config
src=context://webapps/ROOT/doc/fop/config.xml/.

On the other side the problem can be bug in batik which occurs as a NPE.
When using internal url targets in your fo:instream-foreign-object this
problem is present. This bug is fixed in current batik version 1.5 beta4.
This solved some of my problem's i had with current HEAD (cocoon-2.1).

hth,
Frank



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



Re: object in a transformer

2003-03-11 Thread Lionel Crine

Perhaps it would be simpler to manipulate the DOM -- to be precise the
resulting XML -- with XSL rather than XSP?
For now I manipulate the result object in the transformer :

for (int i = 0; i = count; i++) {
try {
SpecialDocument doc = result.Item(i);
String contenT = null;
response.append(docname+doc.GetName()+/name/doc);

But I have 3 documents and the Item method is to long. That's why I 
need to get the result out of the transformer.
So I will be able to use Item method (in the xsp page) onto how many 
documents I want.

Lionel 

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


form and pdf

2003-03-11 Thread xavier gibouin



HI

i would like to generate a pdf which includes a 
form

can i do it with cocoon

thanks !!




Xavier GIBOUINAXONIETel/Fax : 
02.40.48.53.23[EMAIL PROTECTED]


How using writeDOMsession and readDOMsession, nobody seams to know!!!

2003-03-11 Thread Lionel Crine
I'd like to use this two transformer but don't know how.

Can people who used it explain to me ?

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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Hello Frank,

sorry, but this doesn't work in both Cocoon versions. I tested it some time 
ago with Cocoon 2.0.3 and now with with 2.0.4:

2003-03-11 18:26:33,236 INFO  [org.jboss.web.localhost.Engine] DEBUG 
(2003-03-11) 18:26.33:210   [manager ] (/conweb/stream.secure.pdf) 
Thread-7/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector 
could not access the Component for hint [pdf]
org.apache.avalon.framework.configuration.ConfigurationException: Cannot 
load configuration from 
file:/home/jheinicke/development/IUPB/iupb/context:/webapps/ROOT/doc/fop/config.xml
at 
org.apache.cocoon.serialization.FOPSerializer.configure(FOPSerializer.java:196)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)

And when changing only the links to the font files in config.xml using 
context:// protocol:

2003-03-11 18:23:22,125 INFO  [org.jboss.web.localhost.Engine] ERROR 
(2003-03-11) 18:23.22:124   [manager.] (/conweb/stream.secure.pdf) 
Thread-7/MessageHandler: Failed to read font metrics file 
nullcontext://webapps/ROOT/doc/fop/fonts/Verdana.xml : unknown protocol: 
nullcontext

And with Batik: it's one of the most simplest SVG possible: basic shapes, 
rect in SVG spec. Furthermore (again the stacktrace) the NPE happens in a 
Fop class:

javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at org.apache.fop.render.pdf.fonts.LazyFont.getAscender(Unknown Source)
at org.apache.fop.layout.FontState.getAscender(Unknown Source)

Even it brought no solution, thanks for your help.

Joerg

Frank Taffelt wrote:
map:serializer name=pdf mime-type=application/pdf
src=org.apache.cocoon.serialization.FOPSerializer
  user-config src=webapps/ROOT/doc/fop/config.xml/
/map:serializer


you should try user-config
src=context://webapps/ROOT/doc/fop/config.xml/.
On the other side the problem can be bug in batik which occurs as a NPE.
When using internal url targets in your fo:instream-foreign-object this
problem is present. This bug is fixed in current batik version 1.5 beta4.
This solved some of my problem's i had with current HEAD (cocoon-2.1).
hth,
Frank
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Logicsheets

2003-03-11 Thread Marco Rolappe
just a sidenote; for testing/prototyping purposes you don't need to declare
your logicsheets in cocoon.xconf. there's an XSP element you can use to
declare a logicsheet within your xsp. example;

xsp:page ...

xsp:logicsheet location=context://logicsheets/my-cool-logicsheets.xsl/

...
!-- other stuff --
...
/xsp:page


 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Auftrag von Amelie Cordier
 Gesendet: Montag, 10. März 2003 09:09
 An: [EMAIL PROTECTED]
 Betreff: Re: Logicsheets

 Did you correctly decrlare the logicsheet in the cocoon.xconf ? Did you
 restart your server?



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



AW: xml header on delivered pages

2003-03-11 Thread Marco Rolappe



hi 
nesto,

you 
can use omit-xml-declarationyes/omit-xml-declaration in your 
serializer config.

but 
IIUC the xml declaration should be in the markup, since it's xhtml. maybe you 
have to use a mime-type different from text/html?

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Im 
  Auftrag von NestoGesendet: Montag, 10. März 2003 
  11:15An: [EMAIL PROTECTED]Betreff: xml header 
  on delivered pages
  Hi!
  
  I'm designing the interface for mobile devices 
  for a web portal using Cocoon.
  
  When I test my pages on a iPaq (with Pocket 
  Internet Explorer) I get the correct page, withouterrors, but with del 
  xml header visualized at the beginning of every page.
  ?xml version="1.0" encoding="ISO-8859-1"? 
  (and then I get the right content...)
  Of couse I want to delete it!!
  
  Here I write the informations I think are 
  importants for this problem:
  
  The XSPsthat are called in a pipeline for a 
  iPaq http request (for example) have at the beginning the xml header (?xml 
  version="1.0" encoding="ISO-8859-1"?),
  while the xsl doesn't.
  Then I deliver the markup with this 
  serializer:
  
  map:serializer 
  logger="sitemap.serializer.xhtml" mime-type="text/html" 
  name="xhtml-Transitional" pool-grow="2" pool-max="64" pool-min="2" 
  src=""
   
  doctype-public-//W3C//DTD XHTML 1.0 
  Transitional//EN/doctype-public
   
  doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/doctype-system
   
  encodingISO-8859-1/encoding
  /map:serializer
  
  
  I think the responsible of the writing of the xml 
  header is the serializer, but I have no idea on how solve the 
  problem.
  Thank you for your help!
  
  Nesto
  
  


SQLTransformer stored procedure question

2003-03-11 Thread Irv Salisbury III
I call an existing stored procedure with:

   sql:execute-query
   sql:query isstoredprocedure=true
   begin qChange.R_IMS_CHANGE( 'ALZHEIMERS', '1999 Q3', 
'NRX', ?); end;
   /sql:query
   sql:out-parameter sql:nr=1 sql:name=resultset 
sql:type=oracle.jdbc.driver.OracleTypes.CURSOR/
   /sql:execute-query

However, I get an ORA-08103: object no longer exists error at 
SQLTransformer:1250.  This line looks like it is simply calling 
getObject on the CallableStatement.  Any reason why I might be getting 
this ?

Thanks,

Irv



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


RE: SQLTransformer stored procedure question

2003-03-11 Thread Luca Morandini
 -Original Message-
 From: Irv Salisbury III [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 6:38 PM
 To: [EMAIL PROTECTED]
 Subject: SQLTransformer stored procedure question

 I call an existing stored procedure with:
 
 sql:execute-query
 sql:query isstoredprocedure=true
 begin qChange.R_IMS_CHANGE( 'ALZHEIMERS', '1999 Q3', 
 'NRX', ?); end;
 /sql:query
 sql:out-parameter sql:nr=1 sql:name=resultset 
 sql:type=oracle.jdbc.driver.OracleTypes.CURSOR/
 /sql:execute-query
 
 However, I get an ORA-08103: object no longer exists error at 
 SQLTransformer:1250.  This line looks like it is simply calling 
 getObject on the CallableStatement.  Any reason why I might be getting 
 this ?

Irv,

the syntax is correct... it could be a JDBC driver problem... hmmm... 
Could you try the same statement using Java instead of Cocoon ?

Regards,

P.S.
You're absolutely sure that SP, with those parameters' values, returns a valid cursor, 
aren't you ?

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 



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



how to parse an object

2003-03-11 Thread Lionel Crine
I have a transformer in which I want to parse a Document Object :

I use org.apache.avalon.excalibur.xml.Parser : Is it possible to give an 
object to the parser ?

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


Accessing nrofrows from SQL Transformer within Stylesheet

2003-03-11 Thread Samuel Bruce
Hello,

I can't seem to access the nrofrows value returned
from the SQL Transformer.

The resulting XML after the SQL Transformer executes
in my pipeline is as follows:

records
  rowset xmlns=http://apache.org/cocoon/SQL/2.0;
nrofrows=4
row
   ...
/row
row
   ...
/row
row
   ...
/row
row
   ...
/row
  /rowset
/records

My stylesheet snippet is:
xsl:template match=records
  NumberOfRows
xsl:value-of select=sql:rowset/@nrofrows/
  /NumberOfRows
/xsl:template

I have no problem accessing the sql rows, but I cannot
access the nrofrows attribute. What am I doing wrong?

I'm using a cocoon2 dev. snapshot from October, 2002
and TC 4.1.12.





__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



RE: Accessing nrofrows from SQL Transformer within Stylesheet

2003-03-11 Thread Luca Morandini
 -Original Message-
 From: Samuel Bruce [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 7:23 PM
 To: cocoon
 Subject: Accessing nrofrows from SQL Transformer within Stylesheet
 
 

 
 My stylesheet snippet is:
 xsl:template match=records
   NumberOfRows
 xsl:value-of select=sql:rowset/@nrofrows/
   /NumberOfRows
 /xsl:template
 
 I have no problem accessing the sql rows, but I cannot
 access the nrofrows attribute. What am I doing wrong?
 

try using the sql namespace as prefix to attributes as well as element names), like 
in:
xsl:value-of select=sql:rowset/@sql:nrofrows/

Regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 

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



Re: XInclude recursion

2003-03-11 Thread Charles Yates
Cocoon's pipeline transformation model makes this sort of recursion 
difficult to implement.  You could write a tranformer to do this, but it 
would be simpler to have multiple XIncludeTransformers in the pipeline.

Charles

Darren Petrie wrote:

Is anybody using XInclude in a recursive manner?  I've been XInclude 
non-recursively for awhile w/o problems but recently tried to XInclude 
an XML file with it's own XInclude.

According to the XInclude specification it should be recursive but it 
doesn't appear to work in Cocoon.

http://www.w3.org/TR/xinclude/

There was some traffic on this subject a few months back but no 
resolution.

http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102865442913967w=2

Any XInclude recursion success stories out there?

Thanks,
Darren
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Vadim Gritsenko
Joerg Heinicke wrote:

Hello Frank,

sorry, but this doesn't work in both Cocoon versions. I tested it some 
time ago with Cocoon 2.0.3 and now with with 2.0.4:


Frank made a mistake... New configuration syntax which supports Cocoon 
protocols looks like:

user-configcontext://webapps/ROOT/doc/fop/config.xml/user-config

Old configuration (with src attribute) does not support protocols, works 
only with file name (see FOPSerializer.java).

...

And when changing only the links to the font files in config.xml using 
context:// protocol:


FOP supports only links to the fonts in absolute file format, starting 
with C:/, because currently there is no way to tell FOP current 
context. No support for Cocoon URIs, for now. See 
http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html.


2003-03-11 18:23:22,125 INFO  [org.jboss.web.localhost.Engine] ERROR 
(2003-03-11) 18:23.22:124   [manager.] (/conweb/stream.secure.pdf) 
Thread-7/MessageHandler: Failed to read font metrics file 
nullcontext://webapps/ROOT/doc/fop/fonts/Verdana.xml : unknown 
protocol: nullcontext

And with Batik: it's one of the most simplest SVG possible: basic 
shapes, rect in SVG spec. Furthermore (again the stacktrace) the NPE 
happens in a Fop class:

javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226) 

at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135) 

at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at 
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(Unknown Source)
at org.apache.fop.layout.FontState.getAscender(Unknown Source)


Don't know solution for this one, but try disabling incremental processing.

Vadim


Even it brought no solution, thanks for your help.

Joerg




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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Hello Vadim,

Frank made a mistake... New configuration syntax which supports Cocoon 
protocols looks like:

user-configcontext://webapps/ROOT/doc/fop/config.xml/user-config

Old configuration (with src attribute) does not support protocols, works 
only with file name (see FOPSerializer.java).
Ah, thanks. So at least Cocoon 2.0.4 should work completely.

 And when changing only the links to the font files in config.xml
 using context:// protocol:

 FOP supports only links to the fonts in absolute file format, starting
 with C:/, because currently there is no way to tell FOP current
 context. No support for Cocoon URIs, for now. See
 http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html.
It was only a test. As I wrote in my original mail, I have relative 
paths in my config file, what seems to work.

Vadim, can you please add the changed configuration of pdf serializer to 
the documentation? There is only the src-attribute mentioned.

Regards,

Joerg

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


Re: Forms

2003-03-11 Thread Antonio Gallardo
Hi:

Please be a little more specific. The forms will be filled online or just
printed by your customer and sended back to you via.

Best Regards,

Antonio Gallardo

Ines Robbers dijo:
 Hello list,

 We want to use Cocoon for our forms (application forms etc.).
 It should be something like a form center.
 What is the best approach to realise this?
 Are there any examples on the net?

 Many thanks!

 Ines



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




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



RE: Forms

2003-03-11 Thread Ines Robbers
Dear Antonio,

These forms should be available online as well as being printable.
Depending on the form it can either be filled in and send back online or
in case of serious issues such as an application the form should be
printable so that people can send it back by post.
Only in the future online applications will be allowed when the digital
signature has been established.

The current format of the forms are pdf (example:
http://www.uni-potsdam.de/u/studium/formulare/a_wechsel_studiengang.pdf)

I guess it would be nice to have versions in XHTML and PDF at least.

The problem is that I have no idea how Cocoon handles forms and how I
should go about this.

I'd appreciate your help!

Ines


Antonio Gallardo:
* Please be a little more specific. The forms will be filled 
* online or just printed by your customer and sended back to you via.

 
Ines Robbers:
*  We want to use Cocoon for our forms (application forms etc.). It 
*  should be something like a form center. What is the best 
*  approach to realise this? Are there any examples on the net?



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



RE: Accessing nrofrows from SQL Transformer within Stylesheet

2003-03-11 Thread Samuel Bruce
Thanks very much. That worked.

I tried the sql namespace prefix before but I put it
in the wrong place. Previously I used sql:@nrofrows.

Thanks again.

--- Luca Morandini [EMAIL PROTECTED] wrote:
  -Original Message-
  From: Samuel Bruce [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 11, 2003 7:23 PM
  To: cocoon
  Subject: Accessing nrofrows from SQL Transformer
 within Stylesheet
  
  
 
  
  My stylesheet snippet is:
  xsl:template match=records
NumberOfRows
  xsl:value-of select=sql:rowset/@nrofrows/
/NumberOfRows
  /xsl:template
  
  I have no problem accessing the sql rows, but I
 cannot
  access the nrofrows attribute. What am I doing
 wrong?
  
 
 try using the sql namespace as prefix to
 attributes as well as element names), like in:
 xsl:value-of select=sql:rowset/@sql:nrofrows/
 
 Regards,
 
 - 
Luca Morandini 
GIS Consultant 
   [EMAIL PROTECTED] 
 http://utenti.tripod.it/lmorandini/index.html 
 -
  
 

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


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



Redirection from the action that is being a part of aggregated pipeline.

2003-03-11 Thread adam . kaczmarz
Hi,

if anyone could help with following problem I would be thankful.

I agregate 5 pipelines. 4 of them are almost simple static HTML the 5th one
handles whole logic which is handled by action-set. All of the pipelines work
separately. Aggregation also works but *only when none* of the action which
redirects to different URI is called due to user request.
All of the processing is done in the single subsitemap mounted at
/cocoon/magellan

To make it more clear I describe what excatly I try to achive. My page
provides simple user administration (Create, Remove, Update - user).

the action set that handles that looks like this

   map:action-set name=users_maintenance
  map:act type=create-user action=create_user
  /map:act
  map:act type=remove-user action=remove_user
  /map:act
  map:act type=update-user action=update_user
  /map:act
  map:act type=select-user
  /map:act
/map:action-set

(I have cut out actions cfg. params - they are not needed in this
discussion)

this action set is used in the following part of the  pipeline
(again config params are cut out)

  map:match pattern=internal/admin/users
map:act set=users_maintenance/
map:generate type=file src=admin/users_edit.xml/
map:transform type=cif-trans/
map:transform type=i18n
/map:transform
map:transform type=xslt src=admin/users_edit.xsl
/map:transform
map:transform type=i18n
/map:transform
map:serialize type=xml/
  /map:match

the aggregation is defined as follows:

map:pipeline
  map:match pattern=*/*
map:aggregate element=teweb_agg_doc
  map:part src=cocoon:/internal/header/{1}
  element=teweb_l_header/
  map:part src=cocoon:/internal/auth 
  element=teweb_r_header/
  map:part src=cocoon:/internal/navi_bar 
  element=teweb_navi_bar/
  map:part src=cocoon:/internal/context_menu 
  element=teweb_context_menu/
  map:part src=cocoon:/internal/{1}/{2} 
  element=teweb_main/
/map:aggregate
map:transform type=xslt src=common/front_page.xsl/
map:serialize type=html/
  /map:match
/map:pipeline

you can assume here for simplicity sake that {1} equals admin and {2}
equals users.
And now the problem. Let say I browse user terminator so my URI looks like
this 

   magellan/admin/users?user_login=terminator

Now I decide to remove terminator. The remove-user action is matched and
user is removed.
But at the end of action I want to redirect request to 

   /admin/users

(I do not want to browse none-existing user no more). I use redirector to do
this:

   rediarector.redirect(false, request.getRequestURI());

Redirection causes IllegalStateException :

21:26:24,347 ERROR [Engine] StandardWrapperValve[Cocoon2]: Servlet.service()
for servlet Cocoon2 thr
ew exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:252)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1037)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   
Well at least I think that redirection is a problem here - the core.log does
not even shows any exception. The one above comes from JBoss console.
Normally I can see exception in core.log but this one somehow does not appear. 
Please remeber that the administration pipeline *works when  processed
separately*
(if I change serialization to HTML and access magellan/internal/admin/users
- all the action works properly)

I have modified a little bit CocoonServlet and added few System outs ( to
see internal exception message). The internal message says:

21:26:24,307 INFO  [STDOUT] No pipeline matched request:
cocoon/magellan/admin/groups

I do not get it how it happens. I can browse URI
/cocoon/magellan/admin/users - everything is displayed correctly.
Only when I try to remove user (or execute similar action) whole thing
blows up. I have also tried to call globalRedirect method - the exception is
quie different then. It says  that XML stream was closed.
If more details are needed I will provide them on demand.

Any help is welcome. 

greetings, Adam.

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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



Re: form and pdf

2003-03-11 Thread J.Pietschmann
Thomas Hamlin wrote:
You can use FOP, which implements much of the W3C XSL-FO standard and 
comes with Cocoon.  I'm not sure if FOP supports form generation, though.
The XSLFO REC does not cover interactive forms. I'd suggest to use
another PDF library which either implements extensions or uses its
own input format to generate PDF with forms.
J.Pietschmann

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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Vadim Gritsenko
Joerg Heinicke wrote:

Vadim, can you please add the changed configuration of pdf serializer 
to the documentation? There is only the src-attribute mentioned. 


Not only documentation is outdated... Javadoc is missing too!

Care to provide a patch? ;-)

Vadim



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


SQL

2003-03-11 Thread Richard Cunliffe








Hi,



Once an XML SQL statement has been passed through the Cocoon
SQL Transformer, I would like it to parse through the XSLT to generate the
results as HTML.



Does anyone know how to represent the XML SQL query in the
DTD?



Thanks,



Richard.










Image doesn't display

2003-03-11 Thread Ines Robbers
Hello!

I have a problem displaying an image in a stylesheet:

I have read the stuff on
http://wiki.cocoondev.org/Wiki.jsp?page=ServingStaticFiles Serving
Static Files but I can't get it to work.
It sais in the end there is another why serving images through apache.
How does that work?

For now I tried to generate, transform and serialize the image because
as is explain on wiki: the Reader method won't work for a static HTML
document 

What generator do I use to generate images?

Can anybody please help?


This is what I wrote in the sitemap:

!-- images -- 
map:match pattern=img
   map:generate src=img type=imagedirectory/
   map:transform src=img.xsl/
   map:serialize type=html/
/map:match
map:match pattern=img/**
   map:read src=img/{1}/
/map:match

Many thanks!

Ines 



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



Re: writing excel files with merge and coloured cells

2003-03-11 Thread neil
In reply to: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=104725042020751w=2

Although gnumeric xml allows any colour to be specified, excel only has a 56 colour 
palette.
This page shows excel's default palette (some details depend on the version):
  http://www.mvps.org/dmcritchie/excel/colors.htm
If you choose a colour that isn't in the palette I think you get white. All the 
colours I've tried
from this palette have worked except no. 45: #FF9900.




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



RE: Image doesn't display

2003-03-11 Thread Richard Cunliffe
Ok I have had this trouble today as well.

Do you have your xml files under the cocoon folder or one of your own.
If so put the images into a folder like shown:

C:\Program Files\Apache Group\Apache2\htdocs\YOUR FOLDER\images

YOUR FOLDER = if you have your xml files in a folder called 'guitars'
under the cocoon folder then your folder would be guitars.

The htdocs folder is the folder that serves to the web from apache, it
might be different for you e.g. wwwROOT


You then reference your images in the xsl file like so:

img src=/YOUR FOLDER/images/backgroundpda.jpg/

Your images will then display when the webpage is loaded


Hope this helps,

Richard.





-Original Message-
From: Ines Robbers [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 21:54
To: Cocoon Mailingliste
Subject: Image doesn't display

Hello!

I have a problem displaying an image in a stylesheet:

I have read the stuff on
http://wiki.cocoondev.org/Wiki.jsp?page=ServingStaticFiles Serving
Static Files but I can't get it to work.
It sais in the end there is another why serving images through apache.
How does that work?

For now I tried to generate, transform and serialize the image because
as is explain on wiki: the Reader method won't work for a static HTML
document 

What generator do I use to generate images?

Can anybody please help?


This is what I wrote in the sitemap:

!-- images -- 
map:match pattern=img
   map:generate src=img type=imagedirectory/
   map:transform src=img.xsl/
   map:serialize type=html/
/map:match
map:match pattern=img/**
   map:read src=img/{1}/
/map:match

Many thanks!

Ines 



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




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



Re: Image doesn't display

2003-03-11 Thread adam . kaczmarz
 Hello!
Hi

I am not expert and I cannot point out where your problem
exactly is  anyway I use following pipeline (placed somewhere
at the end of subsitemap)

map:pipeline
  map:match pattern=**/*.css
map:read mime-type=text/css src=styles/{2}.css/
  /map:match
  map:match pattern=**/*.gif
map:read mime-type=image/gif src=images/{2}.gif/
  /map:match
  map:match pattern=**/*.jpg
map:read mime-type=image/jpeg src=images/{2}.jpg/
  /map:match
  map:match pattern=**/*.js
map:read mime-type=text/plain src=scripts/{2}.js/
  /map:match
/map:pipeline

the images in the xsl (actually part of javascript that is inserted by xslt)

have src attributes like this

var RADIO_ON_IMG = new Image();
RADIO_ON_IMG.src = images/radio_on.gif;

images are located physicaly in the images subdirectory of mounted
subsitemap.

cheers, A.

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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



AW: Image doesn't display

2003-03-11 Thread Ines Robbers
Many thanks, Richard!

I have all the files under Programme/Apache Group/Tomcat
4.1/webapps/cocoon/MYFOLDER/img

I have searched for something like a htdocs or wwwROOT - but without
success.
Not sure how to search for the folder you were talking about. ?

Do you mean to save ALL my files under that directory or just the
images?

Ines



* -Ursprüngliche Nachricht-
* Von: Richard Cunliffe [mailto:[EMAIL PROTECTED] 
* Gesendet: Dienstag, 11. März 2003 23:05
* An: [EMAIL PROTECTED]
* Betreff: RE: Image doesn't display
* 
* 
* Ok I have had this trouble today as well.
* 
* Do you have your xml files under the cocoon folder or one of 
* your own. If so put the images into a folder like shown:
* 
* C:\Program Files\Apache Group\Apache2\htdocs\YOUR FOLDER\images
* 
* YOUR FOLDER = if you have your xml files in a folder called 
* 'guitars' under the cocoon folder then your folder would be guitars.
* 
* The htdocs folder is the folder that serves to the web from 
* apache, it might be different for you e.g. wwwROOT
* 
* 
* You then reference your images in the xsl file like so:
* 
* img src=/YOUR FOLDER/images/backgroundpda.jpg/
* 
* Your images will then display when the webpage is loaded
* 
* 
* Hope this helps,
* 
* Richard.
* 
* 
* 
* 
* 
* -Original Message-
* From: Ines Robbers [mailto:[EMAIL PROTECTED] 
* Sent: 11 March 2003 21:54
* To: Cocoon Mailingliste
* Subject: Image doesn't display
* 
* Hello!
* 
* I have a problem displaying an image in a stylesheet:
* 
* I have read the stuff on 
* http://wiki.cocoondev.org/Wiki.jsp?* page=ServingStaticFiles 
* Serving Static Files but I can't 
* get it to work. It sais in the end there is another why 
* serving images through apache. How does that work?
* 
* For now I tried to generate, transform and serialize the 
* image because as is explain on wiki: the Reader method won't 
* work for a static HTML document 
* 
* What generator do I use to generate images?
* 
* Can anybody please help?
* 
* 
* This is what I wrote in the sitemap:
* 
* !-- images --   
* map:match pattern=img
*map:generate src=img type=imagedirectory/
*map:transform src=img.xsl/
*map:serialize type=html/
* /map:match
* map:match pattern=img/**
*map:read src=img/{1}/
* /map:match
* 
* Many thanks!
* 
* Ines 
* 
* 
* 
* -
* To unsubscribe, e-mail: [EMAIL PROTECTED]
* For additional commands, e-mail: [EMAIL PROTECTED]
* 
* 
* 
* 
* -
* To unsubscribe, e-mail: [EMAIL PROTECTED]
* For additional commands, e-mail: [EMAIL PROTECTED]
* 
* 



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



[OT] Vacation, going to San Fran

2003-03-11 Thread Tony Collen
not that anybody *really* cares, since i tend to lurk, but i'll be
unsubscribing from -users and -dev for the 5 days when i will probably
have little or no net access.  i'm taking my spring break and visiting
(probably rainy) san francisco.  Blogging will be light, too.

ciao!

Tony


-
Cocoon: Internet Glue (An Apache Cocoon Weblog)
http://manero.org/weblog/
-


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



Re: Redirection from the action that is being a part of aggregated pipeline.

2003-03-11 Thread adam . kaczmarz
Hi,

I just wanted to fix some misspeling in previous post (see end of this
mail).
The console output I have added states that 
cocoon/magellan/admin/groups cannot be matched - of course 
it should be cocoon/magellan/admin/users - I have exactly 
the same problem with groups maintanace page. By accident
I have copied log output from the session with the groups maintenance page

 21:26:24,307 INFO  [STDOUT] No pipeline matched request:
 cocoon/magellan/admin/groups

-- 
+++ GMX - Mail, Messaging  more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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



RE: Forms

2003-03-11 Thread Antonio Gallardo
The (X)HTML forms can be easily done using Cocoon. You can use the
FormValidator Transformer to Validate the forms.

If you wish database support you can also make use of Modular Database
Actions.

On the other hand. I have no experience in writting XSL-FO forms. I dont
know if we can use the PDF Serializer to create PDF Forms. :-(

I already use XSL-FO but not to create forms.

Best Regards,

Antonio Gallardo

Ines Robbers dijo:
 Dear Antonio,

 These forms should be available online as well as being printable.
 Depending on the form it can either be filled in and send back online or
 in case of serious issues such as an application the form should be
 printable so that people can send it back by post.
 Only in the future online applications will be allowed when the digital
 signature has been established.

 The current format of the forms are pdf (example:
 http://www.uni-potsdam.de/u/studium/formulare/a_wechsel_studiengang.pdf)

 I guess it would be nice to have versions in XHTML and PDF at least.

 The problem is that I have no idea how Cocoon handles forms and how I
 should go about this.

 I'd appreciate your help!

 Ines


 Antonio Gallardo:
 * Please be a little more specific. The forms will be filled
 * online or just printed by your customer and sended back to you via.


 Ines Robbers:
 *  We want to use Cocoon for our forms (application forms etc.). It  *
 should be something like a form center. What is the best
 *  approach to realise this? Are there any examples on the net?



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




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



double namespace attribute

2003-03-11 Thread Robert Douglass
Does anyone know why my sql transformation returns an element with two xmlns
attributes?

rowset xmlns=http://apache.org/cocoon/SQL/2.0;
xmlns=http://apache.org/cocoon/SQL/2.0;

Using cocoon-2.0.4-bm14

map:pipeline
map:match pattern=browse
map:generate src=Rob/browse/browse.xml/
map:transform src=Rob/browse/browse.xslt
map:parameter name=use-request-parameters value=true/
/map:transform
map:transform src= type=sql
map:parameter name=use-connection value=sites/
/map:transform
map:serialize/
/map:match
/map:pipeline

The xml going into the sql transformation looks like this:
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
queryselect type from all_documents where id='4711'/query
/execute-query

Thanks,

Robert Douglass


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



Re: double namespace attribute

2003-03-11 Thread Charles Yates
  Don't know why, exactly, but this has been discussed here before and 
the work around is to use namespace prefixes on all elements, ie don't 
use a default namespace in the document with the query.  Something along 
those lines anyway.  This works for me.

Charles

Robert Douglass wrote:

Does anyone know why my sql transformation returns an element with two xmlns
attributes?
rowset xmlns=http://apache.org/cocoon/SQL/2.0;
xmlns=http://apache.org/cocoon/SQL/2.0;
Using cocoon-2.0.4-bm14

map:pipeline
map:match pattern=browse
map:generate src=Rob/browse/browse.xml/
map:transform src=Rob/browse/browse.xslt
map:parameter name=use-request-parameters value=true/
/map:transform
map:transform src= type=sql
map:parameter name=use-connection value=sites/
/map:transform
map:serialize/
/map:match
/map:pipeline
The xml going into the sql transformation looks like this:
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
queryselect type from all_documents where id='4711'/query
/execute-query
Thanks,

Robert Douglass

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



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


xsl:comment disappears!?

2003-03-11 Thread Michael Wechner
Hi

if I set

xsl:output method=html/ within my XSLT, then all the
comments xsl:comment disappear from the actual output.
Is this a feature or a bug?

Thanks

Michael

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


RE: Generator for OpenOffice

2003-03-11 Thread Conal Tuohy
Good point, Upayavira!

I've taken your suggestion and implemented an example:
http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample

Cheers!

Con

  Basically, it's the ZipGenerator I need with some extras, but before
  writing the code myself, I was wondering whether someone had done it
  before me.
 
 Asking a similar question, I pointed someone at an example in 
 the Langham/Ziegler 
 book (a zip source). Someone else then made a point that the 
 jar: protocol, built into 
 the JDK, can read Zip files. So check out the accessing files 
 with jar: in the JDK and 
 let us know where you get to!


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



Re: FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Is there any reason, why the src-attribute is not used in the new 
implementation? Backwards compatibility could not be the reason, because 
as you can see for my example, it only breaks the working without any 
claiming on the changed configuration. And if it is the general 
configuration scheme (not using attributes, but the text nodes), why 
src-attribute is not completely deactivated or at least throwing a warning?

Hmm, I had a look on the FOPSerializer and saw the deprecated url 
resolving. I tried to jump into the excalibur sourceresolve water, but 
the water is to deep, I got lost ;-) I would need Carsten's help or an 
already working example of the new source resolving.

Of course I can provide a patch for the userdocs. I will have a look on 
it in the next days. But what about Javadoc? I don't know what to do ...

Regards,

Joerg

Vadim Gritsenko wrote:
Joerg Heinicke wrote:

Vadim, can you please add the changed configuration of pdf serializer 
to the documentation? There is only the src-attribute mentioned. 


Not only documentation is outdated... Javadoc is missing too!

Care to provide a patch? ;-)

Vadim


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


Xindice question

2003-03-11 Thread Irv Salisbury III
I thought I had followed the directions at cocooncenter for setting up 
xindice on my box with cocoon, but I am getting:

org.xmldb.api.base.XMLDBException: Collection No IndexManager

   at 
org.apache.cocoon.components.source.XMLDBSource.resourceToSAX(XMLDBSource.java:215)

   at 
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:175)

   at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)

This is really stumping me.  I am currently running with JDK1.4 and 
Cocoon 2.0.4.

What is this IndexManager, and why isn't mine working ;-)

Irv



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


RE: Image doesn't display

2003-03-11 Thread Geoff Howard


 -Original Message-
 From: Ines Robbers [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 4:54 PM
 To: Cocoon Mailingliste
 Subject: Image doesn't display


 For now I tried to generate, transform and serialize the image because
 as is explain on wiki: the Reader method won't work for a static HTML
 document

I really don't think this statement is true, unless I have gone crazy.  You
absolutely _can_ serve static html pages with a reader.  I don't see what
it has to do with your situation, though.  Can whoever wrote that statement
on the wiki explain?


 What generator do I use to generate images?

Well, remember a generator generates xml.  So (except for svg format
images,
which are xml) you don't generate images.  You can choose to serve them
with
Cocoon with the one concept that cocoon introduces to bypass the normal xml
pipeline: Readers.  The only problem I saw with the reader you set up is
that
you were not declaring the mime-type, which will cause problems. See the
wiki
page you mentioned for correct examples.

Alternatively, you can choose to have the web server handle images - and
the rest of the thread is answering that.  You asked about where your
document
root is: in apache, go to %APACHE_HOME%\conf\http.conf and look for the
document root configuration line.

Geoff Howard


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



Re: Xindice question

2003-03-11 Thread Irv Salisbury III
Just solved my own problem.  Turns out I simply needed to add a trailing 
slash to my xmldb URL string.  You'd think that this would be a pretty 
common problem.

Irv

Irv Salisbury III wrote:

I thought I had followed the directions at cocooncenter for setting up 
xindice on my box with cocoon, but I am getting:

org.xmldb.api.base.XMLDBException: Collection No IndexManager

   at 
org.apache.cocoon.components.source.XMLDBSource.resourceToSAX(XMLDBSource.java:215) 

   at 
org.apache.cocoon.components.source.XMLDBSource.toSAX(XMLDBSource.java:175) 

   at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143) 

This is really stumping me.  I am currently running with JDK1.4 and 
Cocoon 2.0.4.

What is this IndexManager, and why isn't mine working ;-)

Irv



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




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


Re: Images - Lets get this straight

2003-03-11 Thread Niclas Hedhman

On Tuesday 11 March 2003 22:56, Richard Cunliffe wrote:

Richard,

IMHO, you have a whole set of problems, and inadequate analysis behind each. 
And the only way to sort things out is a systematic check from top to bottom.

If we start at the Apache Webserver httpd.conf.

 In the Apache httpd file the only code I have added is:

 -
 JkMount /examples ajp13
 JkMount /examples/* ajp13

 JkMount /jk ajp13
 JkMount /jk/* ajp13

 JkMount /cocoon ajp13
 JkMount /cocoon/* ajp13
 -

The /cocoon/ mounting will connect the Web server with Tomcat, and in the 
process /cocoon/ is stripped, and the rest is passed to Tomcat.

If you have not changed the default config of Tomcat, then Tomcat will have 
the cocoon app mounted at its /cocoon/ URL, i.e. you will need;
http://www.cunliffe.net/cocoon/cocoon/soundpool/ to reach the directory

-- o --

The changing of image, as I suggested, shows that you are not getting what you 
are seeing, i.e. the browser is caching images. My suggestion was to actually 
change the image, without changing the name, and you would see the still old 
image.

-- o --

It is now time for you to decide what you want to do.
Do you want to use Apache Webserver as the front end? (Recommended)
Do you want Apache WS, Tomcat or Cocoon to serve the static content (WS 
recommended)?
How do you want your URL space divided?

It is then a matter of systematic configuration, from top to bottom, with 
verification of each step.

I have a pretty straight forward setup. Apache WS is the frontend, Tomcat is 
acting as a Cocoon-only container, mounted at /site/.

In httpd.conf;
JkMount /site/* worker1
JkWorkersFile /home/tomcat/conf/workers.properties
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

In /home/tomcat/conf/workers.properties

worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

Now (after restart?), make sure that you get the Tomcat greeting page when 
accessing the /site/ URL, making sure that ApacheWS - Tomcat works.


In Tomcat's server.xml I changed the ROOT context under
Context path= reloadable=true docBase=/home/cocoon/site debug=0/


And in /home/cocoon/site/ there is the cocoon sitemap, and so on.


I hope this should get you on the right track.

Niclas

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



WebServiceProxy Example

2003-03-11 Thread Saurabh Arora
I have been looking for the webserviceproxy example in 2.0.4 and 2.0.3
cocoon release but cannot find the same. Only documentation exist.

I have also tried to look a cvs project cocoon-2.0, but cannot find the
same. Where is this Example?



saurabh arora

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



Some problems in the installation of Cocoon

2003-03-11 Thread César Ahmedt
Good Evening!!!

I would like to ask u for a exception that i´m getting when i configure and 
install the cocoon, i had follow all the instructions but when i access the 
principal page http://localhost/cocoon/ i get the follow esception

Language Exception: org.apache.cocoon.components.language.LanguageException: 
Error compiling sitemap_xmap: Line 0, column 0: could not parse error 
message: error: Invalid class file format in 
C:\forte_jdk\j2sdk1.4.0\jre\lib\rt.jar(java/io/OutputStream.class). The 
major.minor version '48.0' is too recent for this tool to understand. 
C:\Program Files\Apache Tomcat 
4.0\work\Standalone\localhost\cocoon\cocoon-files\org\apache\cocoon\www\sitemap_xmap.java:12: 
Class java.io.OutputStream not found in import. import java.io.OutputStream;

I wpuld like to thank any help u can give me.

César Andrés Ahmedt



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

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


Cache in logicsheet!!!!

2003-03-11 Thread Hong Gia Dinh
Title: Cache in logicsheet





Hi All,


Can somebody tell me how to remove cache in logicsheets???
because everytime i call a page having logicsheet access, change something , and call that page again (with submit action for eg.) it doesn't change , i must access other pages and then back to this page then this time it will change!!!

how to remove cache in logicsheet?


Thanks a lot in advance
GD





Re: Generator for OpenOffice

2003-03-11 Thread Alexandru COSTIN
Hello,
You should check www.axkit.com for an Open Office XSL filter (AxKit is
a Perl version of Cocoon)
However, I don't know if this is free.

Alexandru
On Tue, 2003-03-11 at 10:43, Yves Vindevogel wrote:
 Anyone who knows whether there's a generator for OpenOffice files ?
 
 Kind regards,
 Yves Vindevogel
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 411 2610


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