Re: Running cocoon2.0.4 on weblogic7.0 with JSPs

2003-02-10 Thread Konstantin Piroumian
From: Girish Bhakta [EMAIL PROTECTED]

 Hi,
 i am facing problems with respect to JSPs of Cocoon on
 Weblogic 7.0 . I have successfully setup the Cocoon
 2.0.4 on weblogic 7.0 and can see all the samples
 running but it gives folloing error when trying to run
 the hello jsp page of cocoon sample.

 org.apache.cocoon.ProcessingException: Exception
 JspGenerator.generate(): java.lang.ClassCastException:
 weblogic.utils.classloaders.ChangeAwareClassLoader

This happens because JSP engine in Cocoon uses container specific classes
and it should be customized for each server (It is setup for Tomcat by
default). Basically, you should specify the servlet that will handle JSP
requests in cocoon.xconf. Search for jsp-engine in WEB-INF/cocoon.xconf
and read comments. You should also try to modify the cocoon.roles (it's in
cocoon.jar: org/apache/cocoon/ package) to use another JSP engine class.

But there were known problems with WebLogic 6 and higher because of the
changes in their Http API implementation. You can try to use the Request
dispatcher include version (it's somewhere in
src/java/org/apache/cocoon/components/jsp/).

-- Konstantin


 I have setup the classpath to have xml-apis,xalan
 parsers in the beginning.
 Anybody facing the same problem?R there any
 alternatives ?

 GB.

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: A note about the best(?) (cocoon-) development environment...

2003-02-10 Thread SAXESS - Hussayn Dabbous
Hy, All;

Would you mind to open another thread about your JDO-theme ?

regards, Hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Running cocoon2.0.4 on weblogic7.0 with JSPs

2003-02-10 Thread Schaper, Christoph
Hi, we have the problem as well.
Unfortunatly, the request dispatcher way does not work either, even if we
try to customise it specifically for Weblogic Request dispatcher (the
customisation is needed, as the WL request dispatcher requires WL specific
wrapper classes, but due to the great avalon role implementation
customisation possibilities in Cocoon, all this is possible).
Unfortunatly, WL is still having problem to correctly process the JSP
request. We have an open call with BEA regarding that.
Will post the solution here (and maybe provide a custom JSPEngine class for
WL7) once we have any.

Christoph


-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 09:13
To: [EMAIL PROTECTED]
Subject: Re: Running cocoon2.0.4 on weblogic7.0 with JSPs


From: Girish Bhakta [EMAIL PROTECTED]

 Hi,
 i am facing problems with respect to JSPs of Cocoon on
 Weblogic 7.0 . I have successfully setup the Cocoon
 2.0.4 on weblogic 7.0 and can see all the samples
 running but it gives folloing error when trying to run
 the hello jsp page of cocoon sample.

 org.apache.cocoon.ProcessingException: Exception
 JspGenerator.generate(): java.lang.ClassCastException:
 weblogic.utils.classloaders.ChangeAwareClassLoader

This happens because JSP engine in Cocoon uses container specific classes
and it should be customized for each server (It is setup for Tomcat by
default). Basically, you should specify the servlet that will handle JSP
requests in cocoon.xconf. Search for jsp-engine in WEB-INF/cocoon.xconf
and read comments. You should also try to modify the cocoon.roles (it's in
cocoon.jar: org/apache/cocoon/ package) to use another JSP engine class.

But there were known problems with WebLogic 6 and higher because of the
changes in their Http API implementation. You can try to use the Request
dispatcher include version (it's somewhere in
src/java/org/apache/cocoon/components/jsp/).

-- Konstantin


 I have setup the classpath to have xml-apis,xalan
 parsers in the beginning.
 Anybody facing the same problem?R there any
 alternatives ?

 GB.

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




what is the common delopment environment used by the cocoon-userscomunity ...

2003-02-10 Thread SAXESS - Hussayn Dabbous
Hy, all;

I want to ask again for some opinions on the most commonly used
tools of the cocoon-users. I want to setup a Wiki-page on this
theme, so that new users can get most out of cocoon. And since
we already write about howto install Servlet Containers to
get cocoon users happy, in the next step it seems natural for
me to write about development environement for cocoon users ...

I opened another thread this weekend,
but it quickly left off the theme...

The original thread start can be found at

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg24320.html


Here the short list of what i grabbed together into my development
workbench:

free tools:
1.) OS: linux and solaris (maybe a mater of taste)
2.) apache 1.3.26 (mod_jk2, mod_SSL)
3.) tomcat 4.1.18
4.) cocoon-2.0.4
5.) eclipse
6.) sunbow eclipse tools (xml/sitemap)
7.) ant
8.) java-1.3.1 (sun JDK on all platforms)
9.) Secureway LDAP Server (i'll switch to Open LDAP soon)

Besides this i use some comercial tools like clearcase and xml-spy.
although i know most of the OS comunity does not like such tools,
i use them with great success. I mentioned these tools too in my
first mailing (see link above)just to be complete.


Any hints on what you think is missing in the list, or could
be replaced by something more convenient would help me getting
the (not yet existing) Wiki page into a cleaner shape.

regards, Hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




[HELP]java.lang.RuntimeException: Invalid conversion from 'reference' to 'java.lang.String'.

2003-02-10 Thread Halgurt



Description:org.apache.cocoon.ProcessingException: Could not 
read resource 
file:/C:/jakarta-tomcat-5.0/jakarta-tomcat-5.0/webapps/cocoon/samples/docs/samples/hello-page.xml: 
javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid 
conversion from 'reference' to 'java.lang.String'.
-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


[HELP]java.lang.RuntimeException: Invalid conversion from 'reference' to 'java.lang.String'.

2003-02-10 Thread Halgurt



Can anybody tell me how to configer und run Deli, I 
get this error message:
Description:org.apache.cocoon.ProcessingException: Could not read resource 
file:/C:/jakarta-tomcat-5.0/jakarta-tomcat-5.0/webapps/cocoon/samples/docs/samples/hello-page.xml: 
javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid 
conversion from 'reference' to 'java.lang.String'.

Thanks,
Halgurt
-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


Re: A note about the best(?) (cocoon-) development environment ...

2003-02-10 Thread Jeremy Quinn

On Sunday, February 9, 2003, at 04:50 PM, Frank Ridderbusch wrote:


On Sun, 9 Feb 2003 12:26:50 +
Jeremy Quinn [EMAIL PROTECTED] wrote:
...


I don't have the $$$ to try Framemaker, but if you are prepared to put
in the work, you could try XMLMind XMLEditor (XXE).

	http://www.xmlmind.com/xmleditor/

You need to write a config for XXE, for your docset.
You need to write CSS to display your XML.
You can use either XSD or DTD for validation.

If you want to use XSD (and use the editor for free) you must have a
default namespace starting with
'http://xmlmind.com/xmleditor/Schema/[yourdoc]', in your document
root.

I have managed to produce a satisfactory environment for 'corporate
document jockeys' to use.

regards Jeremy



Hi,

I'm just curious. I assume you XXE used only with UTF-8 or ascii. I 
also
gave XXE a short whirl, but I was unable to load documents with
encoding=ISO-8859-1 that contained german öäü... characters.

XXE reads the encoding from the first line of your file, if there is 
not one there, it uses whatever you have set for the default in 
'options'.

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



highlighting with Lucene

2003-02-10 Thread Cyril Vidal
Hi,

 I have a question about using highlighting with Lucene.
What I only want to do:
start from an xml document, by example:
flower
This is a beautiful yellow flower
/flower

that I have first indexed in Lucene's index.

 And when making a query such : flower:yellow
get an XML document from the following form:

flower
This is a beautiful emyellow/em flower
/flower

I don't want ANYsearch function, but just gain benefit from the highlight
function in Lucene.

At first glance, I think it's quite a easy task:
1°) Download the java classes from Maik Screiber, make the few modifications
on Lucene's code.
2°) Compile the Highlight Transformer java class from article
www.cocooncenter.org
3°) Write my sitemap, as written in the same article:

map:transformer
  logger=sitemap.transformer.highlight
  name=highlight
   pool-grow=2 pool-max=16 pool-min=2
   src=nl.datagram.cocoon.transformation.HighlightTransformer/

map:match pattern=flora
map:generate type=file
src=flora.xml/
map:transform type=highlight /
map:serialize/
  /map:match

And when pointing to the url:
http://localhost:8080/cocoon/flora?query=flower:yellow

I should have the desired document:
flower
This is a beautiful emyellow/em flower
/flower

Is this right, or highlighting is a much more difficult task?

Thanks for your response,
Cyril.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Call a css into an xsl

2003-02-10 Thread Lionel Crine
I'd like to generate an html document using a css file, with an xsl 
transformation.

Here is what i wrote :


xsl:template match=content
 html
 head
 /head
 link rel=stylesheet type=text/css href=style.css/
   body
   h1 align=centerDEMO/h1
  xsl:apply-templates/
   /body
 /html
/xsl:template
...

I think this is not the way to use css with cocoon?
I read about a resource tag but I don't figure out how to join my documents.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: Call a css into an xsl

2003-02-10 Thread Emmanuil Batsis (Manos)

When the result of the transformation goes to the browser, the latter 
will make a new request for the resource style.css.

You can handle that request as any other with a matcher (for *.css). You 
need a reader for css files, not the generatortransformerserializer 
usual. Try something like the following in your sitemap:

map:match pattern=style.css
   map:read mime-type=text/css src=path/to/style.css/
/map:match


Usefull tips on that and other things are on the wiki.

hth,

Manos

Lionel Crine wrote:
I'd like to generate an html document using a css file, with an xsl 
transformation.

Here is what i wrote :


xsl:template match=content
 html
 head
 /head
 link rel=stylesheet type=text/css href=style.css/
   body
   h1 align=centerDEMO/h1
  xsl:apply-templates/
   /body
 /html
/xsl:template


I think this is not the way to use css with cocoon?
I read about a resource tag but I don't figure out how to join my 
documents.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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






-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Call a css into an xsl

2003-02-10 Thread Upayavira
Lionel,

 I'd like to generate an html document using a css file, with an xsl 
 transformation.

What you suggest is the correct way to do it. What you need though is a little bit of 
code in your sitemap to tell Cocoon how to handle requests for CSS files. This 
would do it:

   map:match pattern=*.css
map:read src=html/{1}.css mime-type=text/css/
   /map:match

What this is saying is 'for any file ending in .css, pass the equivalent file from the 
html directory. The fact that you are using a reader means that you will pass the 
content out unprocessed, i.e. not going through an XML pipeline.

Hope that helps.

Regards, Upayavira
 
 Here is what i wrote :
 
 
 xsl:template match=content
   html
   head
   /head
   link rel=stylesheet type=text/css href=style.css/
 body
 h1 align=centerDEMO/h1
xsl:apply-templates/
 /body
   /html
 /xsl:template
 ...
 
 I think this is not the way to use css with cocoon?
 I read about a resource tag but I don't figure out how to join my documents.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Extending Cocoon original Doc. via Subsitemap produces no add'l pages

2003-02-10 Thread Douglas Reames
Hello,
I have just started learning Cocoon and I have been trying to test my 
understanding of the relationship between sitemap and subsitemaps using the 
Cocoon2 Documentation site that comes with the binary installation.

I have modified the installed version (extended it using a subsitemap; I 
made no entries to sitemap) as described below.

{PROBLEM IS: Cocoon will not produce the requested pages for the 
extended website. }

MODIFICATIONS:-
[1] copied the directory tree ( and all of its contents ) 
:  /webapps/cocoon/samples/poi

[2] created a new directory:  /webapps/cocoon/samples/reames

[3] pasted the contents into the 'reames' directory, so that I now have the 
following additional files  directories:

 /webapps/cocoon/samples/reames/sitemap.xmap
 /webapps/cocoon/samples/reames/content/
 /webapps/cocoon/samples/reames/stylesheets/

 /webapps/cocoon/samples/reames/content/static/
 /webapps/cocoon/samples/reames/content/static/anova-2w-wrep.xml

 /webapps/cocoon/samples/reames/content/samples.xml


 /webapps/cocoon/samples/reames/stylesheets/simple-page2xls.xsl
 /webapps/cocoon/samples/reames/stylesheets/simple-sql2xls.xsl

[4] added a sample entry to /webapps/cocoon/docs/samples/samples.xml:

sample name=Reames samples href=samples/reames/
Samples showing how to use RMS Finance to execute common corp fin tasks
with Cocoon.
   /sample


{   I am not aware of any further required modifications.  }


OBSERVATIONS: - Determining sitemap / subsitemap entries for POI seem to be:

[A]  Sitemap (  /webapps/cocoon/sitemap.xmap ) --

!--  'mount other sample pages'   --
 map:match pattern=samples/**
  map:mount check-reload=yes src=samples/ uri-prefix=samples/
/map:match
  /map:pipeline

[B]  Subsitemap ( /webapps/cocoon/samples/sitemap.xmap ) --

map:match pattern=*/**
map:mount uri-prefix={1} src={1}/ check-reload=yes/
   /map:match


TROUBLESHOOTING data recovered:
[x] I do not get errors when I attempt to access the new directory contents 
- 'samples/reames/**' - from the main samples page.  However, I get the 
Cocoon Logo and nothing else.  Of course this would indicate that ' 
/webapps/cocoon/samples/reames/content/samples.xml '  specified NO web 
pages; which is not true.

[y] Nothing seems to be out of order in the sitemap log --  ' 
/webapps/cocoon/WEB-INF/logs/sitemap.log ' - parameter values {0, 1} for 
'reames' are being generated just as they are for 'poi'.

[z]  I have commented out entry [B] above in 
--  /webapps/cocoon/samples/sitemap.xmap  - and then attempted to select 
the POI sample page.  I get a Cocoon error, rather than the blank page 
described in [x] above:

map:match pattern=*/**
!--map:mount uri-prefix={1} src={1}/ 
check-reload=yes/--
   /map:match


Cocoon version number:  2.0.4 ;
Operating system:  Win2K ;
JDK version:  1.3.1_04 ;
Servlet engine:  Tomcat 4.1

Anyone have additional troubleshooting suggestions?

Thanks for any help,
Douglas Reames



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: CInclude problems on Mac 10.2.3

2003-02-10 Thread Hugh Field-Richards
My problem with CInclude on a Mac OS 10.2.3 with JDK1.3 has
been solved by using JDK1.4. What the underlying cause was is
still unclear.

Hugh F-R

On Friday, February 7, 2003, at 10:39  am, Hugh Field-Richards wrote:

Hi

Has anybody come across this problem with cinclude. I am running Cocoon
successfully on the following system

Mac OS X 10.2.3 with JDK 1.3
Tomcat 4.1.18
Cocoon 2.0.4

But ... I have a sitemap entry of

 map:pipeline>
map:match pattern="nb*.xml">
map:generate src="content/nb{1}.xml"/>
map:transform type="cinclude"/>
map:transform src="transforms/notebooks-html.xsl"/>
map:serialize type="html"/>
/map:match>
/map:pipeline>

and I am getting the following when accessing the file nb2003.xml (which has no include statements yet)

ERROR   (2003-02-07) 10:23.11:723   [sitemap] (/notebooks/nb2003.xml) Thread-25/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Could not read resource file:/Library/Tomcat/jakarta-tomcat-4.1.18/webapps/notebooks/content/nb2003.xml: java.lang.NullPointerException
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:156)
at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
at org.apache.cocoon.www.sitemap_xmap.matchN1007C(/Library/Tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/notebooks/cocoon-files/org/	apache/cocoon/www/sitemap_xmap.java:965)
at org.apache.cocoon.www.sitemap_xmap.process(/Library/Tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/notebooks/cocoon-files/org/apache/	cocoon/www/sitemap_xmap.java:581)
at org.apache.cocoon.www.sitemap_xmap.process(/Library/Tomcat/jakarta-tomcat-4.1.18/work/Standalone/localhost/notebooks/cocoon-files/org/apache/	cocoon/www/sitemap_xmap.java:427)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)

This is all the clue that the log files give. If I remove the line

map:transform type="cinclude"/>

then all is well again. I have tried this is several places including a vanilla Cocoon install and I still
get the same problem. It seems to work for the main Cocoon sitemap

	map:match pattern="news/aggregate">
map:generate type="serverpages" src="docs/samples/xsp/aggregate.xsp"/>
map:transform type="cinclude"/>
map:transform src="stylesheets/news/news.xsl"/>
map:serialize/>
/map:match>

Anybody got any ideas here? I am clearly missing something vital and I have searched around
without much success so any thoughts would be gratefully received. (I think that XInclude is the
same as well, but I have not exhaustively checked this.)

TIA

Hugh F-R

Hugh S. Field-Richards
QinetiQ, St Andrew's Road, Malvern, Worcs, WR14 3PS, UK
Tel: ++1684 895075   Fax: ++1684 896113
Email: [EMAIL PROTECTED]



Re: Call a css into an xsl

2003-02-10 Thread Ugo Cei
Lionel Crine wrote:

xsl:template match=content
 html
 head
 /head
 link rel=stylesheet type=text/css href=style.css/


I assume this was just a typo, but you need to put the link element 
inside the head element, not outside.

	Ugo

--
Ugo Cei - http://www.beblogging.com/blog/


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Accessing named session attributes in XSP?

2003-02-10 Thread Derek Hohls
I know I am missing something *very* obvious, but
I have end of day stare here, and cannot figure what
mistake I am making.
 
I am using the Database Authenticator to process a
login - the user ID is stored in a session attribute called
userrname  The auth.xml used looks like:

auth-descriptor
  connectionmyDB/connection
  table name=user
select dbcol=UserName request-param=username
to-session=username/
select dbcol=UserPassword request-param=userpass /
  /table
/auth-descriptor

This process seems to be working, as I can now get 
access to the protected part of the pipeline: ie.
 
map:match type=sessionstate pattern=*
   map:parameter name=attribute-name value=username/
!-- all this is accessible after login --
/map:match 

However, when I try and use the username attribute in
an XSP file, I just get a null returned - here's the snippet
from the file:

xsp:page
  language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-session=http://apache.org/xsp/request/2.0;


!-- Page-level logic --
page

  xsp:logic  
//session
String sUserName = xsp-session:get-attribute name=username
as=string/; 
  /xsp:logic

  elementxsp:exprsUserName/xsp:expr/element

/page


The element now contains null (wihtout the )


Any idea how to get the username out into the XSP??

Thanks
Derek
 

-- 
This message has been scanned for viruses and dangerous content by 
MailScanner, and is believed to be clean.

The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.  
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and 
Internet Policy.


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Cocoon 2.0.4 and subsitemaps

2003-02-10 Thread Douglas Reames
Would someone familiar with the Cocoon D ocumentation web app please give 
me a tip about extending it.

I have:
[1]  Added a branch to:  /webapps/cocoon/samples/
[2] New branch ( /webapps/cocoon/samples/reames ) is a mirror image of 
/webapps/cocoon/samples/poi,
[3] Finally, I added an entry to the Sample Index page: 
/webapps/cocoon/docs/samples/samples.xml

When I select my new directory from the Index page, I do not get errors, 
but I also get nothing but a Cocoon Logo.  I expected the mirror image's 
(poi's) content.

Any ideas?  Are the modifications described above all that I should have to 
make?

Regards,
Douglas Reames


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Tomcat error!

2003-02-10 Thread Maxime.Gheysen
Hi,
I had some troubles with cocoon and tomcat last week. I completely re-install my 
computer, and now apache just stops at this line :

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initialisation de Coyote HTTP/1.1 sur le port 8080
Démarrage du service Tomcat-Standalone Apache Tomcat/4.1.18
[INFO] Http11Protocol - -Démarrage de Coyote HTTP/1.1 sur le port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/311  config=C:\Program Files\Apache 
Group\Tomcat 4.1\conf\jk2.properties


I tried with other (newer) versions of apache, but they all make the same error!

Thank you for you help!

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Call a css into an xsl

2003-02-10 Thread Lionel Crine
I did, my mistake.

At 14:09 10/02/2003 +0100, you wrote:

Lionel Crine wrote:

xsl:template match=content
 html
 head
 /head
 link rel=stylesheet type=text/css href=style.css/


I assume this was just a typo, but you need to put the link element 
inside the head element, not outside.

Ugo

--
Ugo Cei - http://www.beblogging.com/blog/


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




rt.jar error

2003-02-10 Thread Maxime.Gheysen
I clearly install tomcat and I get following error on each page.


org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\osworkflow_example\login_jsp.java:13:
cannot access java.lang.Object
bad class file: C:\Program
Files\Java\j2re1.4.1_01\lib\rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
  private static java.util.Vector _jspx_includes;
 ^
1 error

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




How to load Cocoon into Eclipse-Tomcat plugin from Sysdeo

2003-02-10 Thread Sylvain.Thevoz
Is there someone that could explain me how to load Cocoon into a Tomcat project in 
Eclipse?
This type of project comes from the Sysdeo plugin which allow to run Tomcat into 
Eclipse.

Thanks
Regards
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: A note about the best(?) (cocoon-) development environment ...

2003-02-10 Thread Hunsberger, Peter
snip

 Ones you didnt talk about:
 
 13) Together control center. If you can afford it, it 
 absolutely kills any other IDE on the planet.

Hmm, I use it, but I wouldn't quite say that: it's got it's share of bugs
that make it sometimes quite painful to use.  However, we're getting good
support and I expect these to eventually be solved.

 14) eXcelon Stylus Studio. A great XML editor. It has a bonus 
 of being easy to use and allot less confusing than XML Spy.

This is probably a personal preference kind of thing: I prefer Xslerator
over either Stylus or XML Spy, but my main focus is writing and debugging
XSLT.  If your main focus is XSLT to HTML transformation or XML authoring
then Stylus is probably the best choice.  If you need something sort of half
way in between then XML Spy does a reasonable job.

snip

 
  * I also managed to setup eclipse with Cocoon in less than 10
 minutes. OK, i did a lousy trick, but for debugging and
 learning how cocoon internals  work it's absolutley
 satisfying...
 
 Shouldnt be tough, just run tomcat (or JBoss) in debug mode 
 with a socket attach. Then you can remote attach to the 
 socket and you are on your way!

Yes it works, but get some powerful hardware if you're using Together on the
other side of the debug socket!

more snip

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Cocoon User Meeting - Wuerzburg - Germany

2003-02-10 Thread Gerstel, Rachel
I live in Frankfurt and would love to come to a meeting if one gets set up.
Please keep me posted!!

Thanks,
Rachel

-Original Message-
From: Robert Simmons [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 1:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Cocoon User Meeting - Wuerzburg - Germany


I currently live in Munich and I believe in this technology enough to
consider beating it in the head until its user friendly. =) After I get my
book done (almost damnit!!!) I will be volunteering to work on some
usability
stuff if they will have me.

-- Robert

- Original Message -
From: Michael Mertel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 9:46 AM
Subject: Cocoon User Meeting - Wuerzburg - Germany


 Hi there,

 are there any cocoon users in the wuerzburg area to meet
 on a regular/nonregular base ... we can provide the space
 for up to 10-15 people.

 Beginners (like me) and advanced users are more than welcome.

 If this sounds good to anyone, please drop me a note at
 [EMAIL PROTECTED]

 Sorry for bothering all the other cocoon users around, but
 thats currently all what I can give back to the community.

 --Michael


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




AW: Accessing named session attributes in XSP?

2003-02-10 Thread Marco Rolappe
hi derek,

could you tell me please how the XSP is accessed? the problem might be that
your XSP is dealing with a different session (XSPs default to creating a new
session).

 -Ursprungliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im
 Auftrag von Derek Hohls
 Gesendet: Montag, 10. Februar 2003 14:33
 An: [EMAIL PROTECTED]
 Betreff: Accessing named session attributes in XSP?


 I know I am missing something *very* obvious, but
 I have end of day stare here, and cannot figure what
 mistake I am making.

 I am using the Database Authenticator to process a
 login - the user ID is stored in a session attribute called
 userrname  The auth.xml used looks like:

 auth-descriptor
   connectionmyDB/connection
   table name=user
 select dbcol=UserName request-param=username
 to-session=username/
 select dbcol=UserPassword request-param=userpass /
   /table
 /auth-descriptor

 This process seems to be working, as I can now get
 access to the protected part of the pipeline: ie.

 map:match type=sessionstate pattern=*
map:parameter name=attribute-name value=username/
 !-- all this is accessible after login --
 /map:match

 However, when I try and use the username attribute in
 an XSP file, I just get a null returned - here's the snippet
 from the file:

 xsp:page
   language=java
   xmlns:xsp=http://apache.org/xsp;
   xmlns:xsp-session=http://apache.org/xsp/request/2.0;
 

 !-- Page-level logic --
 page

   xsp:logic
 //session
 String sUserName = xsp-session:get-attribute name=username
 as=string/;
   /xsp:logic

   elementxsp:exprsUserName/xsp:expr/element

 /page


 The element now contains null (wihtout the )


 Any idea how to get the username out into the XSP??

 Thanks
 Derek


 --
 This message has been scanned for viruses and dangerous content by
 MailScanner, and is believed to be clean.

 The CSIR exercises no editorial control over E-mail messages and/or
 attachments thereto/links referred to therein originating in the
 organisation and the views in this message/attachments thereto are
 therefore not necessarily those of the CSIR and/or its employees.
 The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
 of Service, subject to compliance with the CSIR's internal E-mail and
 Internet Policy.


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




AW: global sitemap parameters and programatic cocoon configuration

2003-02-10 Thread Marco Rolappe
hi hussayn,

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im
 Auftrag von SAXESS - Hussayn Dabbous
 Gesendet: Montag, 10. Februar 2003 15:20
 An: [EMAIL PROTECTED]
 Betreff: global sitemap parameters and programatic cocoon
 configuration


 Hy, all

 I just fall over a configuration issue:

 1.) assume you like to use a global parameter ${myserver}
  within several places in your sitemap AND all subsitemaps.
  Is the following (or something equivalent) possible
  to do:

  map:sitemap
map:parameter name=myserver value=http://myserver; /

...

map:match pattern=*/canvas/collection
  map:read src=html:${/myserver}/index.xml/
/map:match

...

I think there's an input module available for stuff like that which IIRC
makes those variables also available to subsitemaps.


 2.) Is it possible to also add such parameters programatically
  to the rootsitemap and use them all over in cocoon?

  I.e. i want the variable ${myserver} be preset from an
  external configuration, which happens to be separate from
  sitemap.xmap.
  background: I would like to keep the customisation at one
  place and keep my customers away from sitemap.xmap if possible.

  is something like this possible with cocoon:

  1.) on-startup of cocoon process an additional java-class-instance
  (a servlet, or better an initilisation-component
   specified in cocoon.xconf)

you can of course have another servlet declared in the web.xml and have it
automatically loaded/started via load-on-startup (see servlet spec).

the other alternative you pointed out also works and is probably the better
way to go (also thought about this, needing to have something like an
application core running which could be accessible as a Component). I think
for this to work you have to make your 'instance' an avalon component (i.e.
implements Component interface) with a defined role (you can specify your
own roles in a separate file which you can reference from the cocoon.xconf,
/cocoon/@user-roles IIRC).

  2.) the initialisation-class reads a customisationfile and
  adds a set of global variables to the rootsitemap.

it might be possible to get hold of the above mentioned input module via a
ComponentManager (within your Component) and add those variables
programmatically.

  3.) After cocoon came up the global sitemap parameters are
  available within any sitemap.xmap 


as I said, I think the variables should be visible in sub-sitemaps also, but
I might be wrong. But from the fact that the modules declared in the root
sitemap are available in sub-sitemaps I assume that the global variable
module's scope is not limited to the root sitemap.

  Does anyone know, if this could be achieved and if yes, could you
  point me to an example or a document about this ?


Just had a quick look and I think the DefaultsMetaModule is what I had in
mind.

  thanks you
  Hussayn


HTH

 --
 Dr. Hussayn Dabbous
 SAXESS Software Design GmbH
 Neuenhöfer Allee 125
 50935 Köln
 Telefon: +49-221-56011-0
 Fax: +49-221-56011-20
 E-Mail:  [EMAIL PROTECTED]


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




AW: Tomcat error!

2003-02-10 Thread Marco Rolappe
why don't you have a look at your tomcat logs?

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im
 Auftrag von [EMAIL PROTECTED]
 Gesendet: Montag, 10. Februar 2003 15:52
 An: [EMAIL PROTECTED]
 Betreff: Tomcat error!


 Hi,
 I had some troubles with cocoon and tomcat last week. I
 completely re-install my computer, and now apache just stops at
 this line :

 [INFO] Registry - -Loading registry information
 [INFO] Registry - -Creating new Registry instance
 [INFO] Registry - -Creating MBeanServer
 [INFO] Http11Protocol - -Initialisation de Coyote HTTP/1.1 sur le
 port 8080
 Démarrage du service Tomcat-Standalone Apache Tomcat/4.1.18
 [INFO] Http11Protocol - -Démarrage de Coyote HTTP/1.1 sur le port 8080
 [INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
 [INFO] JkMain - -Jk running ID=0 time=0/311  config=C:\Program
 Files\Apache Group\Tomcat 4.1\conf\jk2.properties


 I tried with other (newer) versions of apache, but they all make
 the same error!

 Thank you for you help!

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Instal Cocoon on Mac OS X

2003-02-10 Thread Astor Rivera



From 
my experience this has always been the case.
Of 
course this delay happened whenI initiated cocoon for the first time, as 
it has to unpack cocoon.war

My 
current config::

jaguar 
10.2.3
tomcat 
4.1.12
cocoon 
2.0.4

Astor


  -Original Message-From: Thor Heinrichs-Wolpert 
  [mailto:[EMAIL PROTECTED]]Sent: Sunday, February 09, 2003 4:28 
  PMTo: [EMAIL PROTECTED]Subject: Re: Instal 
  Cocoon on Mac OS X
  Check out the instructions for the installation: 
  http://xml.apache.org/cocoon/installing/index.html 
  depending on the version of Tomcat you are using you'll have to copy files 
  into different directories. 
  Now, if you use Jetty, you don't have to copy any directories. If you want 
  to use Jetty/\Jboss you can follow these directions to get everything 
  downloaded and setup on your Mac 
  http://developer.apple.com/internet/java/enterprisejava.html 
  Cheers, 
  Thor HW 
  On Saturday, February 8, 2003, at 06:23 PM, Ross wrote: 
  I have installed the tomcat server on 
  MacOSX and it works fine. I downloaded cocoon and put the 
  cocoon.war file in webapps. I stopped and started tomcat and it created the 
  cocoon folder in webapps. When I go to http://localhost:8080/cocoon the browserdoes not respondfor a long time. Do 
  I have to move some .jar files? 
   
  Anyassistance is appreciated. 
   
  Thanks, 
   
  Ross. 


Reporting Engine

2003-02-10 Thread Irv Salisbury III
I have been tasked to build/find/modify a reporting engine inside 
cocoon.  I have looked at the POI project, and it will not fit, as we 
don't want Excel to be the client.  I am hoping for any information on 
any engines that people have used inside cocoon, or if anyone knows of 
any engines that are XML based that could be integrated.  Our ideal 
solution would be:

1. Has an XML based template mechanism to let end users create templates.
2. Uses XSL to translate to HTML/PDF.  (We can build these, but if the 
engine has them already, great)
3. Has a mechanism for plugging in SQL into the pipeline for the data to 
put in the template.  (We can build this as well, but if it is already 
in there, great)

Thanks in advance for any info.

Irv



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: AW: global sitemap parameters and programatic cocoon configuration

2003-02-10 Thread SAXESS - Hussayn Dabbous
Hy, Marco;

Thank you for your infos so far. The keyword DefaultsMetaModule
brought me to a thread within the users archive:

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg18831.html

From the thread i learned, that DefaultsMetaModule would NOT
pass parameters to subsitemaps when mounted. But there seems
to be the concept of global parameters around in cocoon, although
some problems are reported (i.e. /myserver would not work either).

hmm... i didn't find the docs about global parameters yet...

I also learned, that input modules is something not yet released,
and under discussion...

I'll start experimenting with DefaultsMetaModule and add some
stuff into cocoon.xconf and look into this in more depth. I would
appreciate, if anyone could add a little more light to this ...

regards, Hussayn


Marco Rolappe wrote:

hi hussayn,



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von SAXESS - Hussayn Dabbous
Gesendet: Montag, 10. Februar 2003 15:20
An: [EMAIL PROTECTED]
Betreff: global sitemap parameters and programatic cocoon
configuration


Hy, all

I just fall over a configuration issue:

1.) assume you like to use a global parameter ${myserver}
within several places in your sitemap AND all subsitemaps.
Is the following (or something equivalent) possible
to do:

map:sitemap
  map:parameter name=myserver value=http://myserver; /

  ...

  map:match pattern=*/canvas/collection
map:read src=html:${/myserver}/index.xml/
  /map:match

  ...



I think there's an input module available for stuff like that which IIRC
makes those variables also available to subsitemaps.



2.) Is it possible to also add such parameters programatically
to the rootsitemap and use them all over in cocoon?

I.e. i want the variable ${myserver} be preset from an
external configuration, which happens to be separate from
sitemap.xmap.
background: I would like to keep the customisation at one
place and keep my customers away from sitemap.xmap if possible.

is something like this possible with cocoon:

1.) on-startup of cocoon process an additional java-class-instance
(a servlet, or better an initilisation-component
 specified in cocoon.xconf)



you can of course have another servlet declared in the web.xml and have it
automatically loaded/started via load-on-startup (see servlet spec).

the other alternative you pointed out also works and is probably the better
way to go (also thought about this, needing to have something like an
application core running which could be accessible as a Component). I think
for this to work you have to make your 'instance' an avalon component (i.e.
implements Component interface) with a defined role (you can specify your
own roles in a separate file which you can reference from the cocoon.xconf,
/cocoon/@user-roles IIRC).



2.) the initialisation-class reads a customisationfile and
adds a set of global variables to the rootsitemap.



it might be possible to get hold of the above mentioned input module via a
ComponentManager (within your Component) and add those variables
programmatically.



3.) After cocoon came up the global sitemap parameters are
available within any sitemap.xmap 




as I said, I think the variables should be visible in sub-sitemaps also, but
I might be wrong. But from the fact that the modules declared in the root
sitemap are available in sub-sitemaps I assume that the global variable
module's scope is not limited to the root sitemap.



Does anyone know, if this could be achieved and if yes, could you
point me to an example or a document about this ?




Just had a quick look and I think the DefaultsMetaModule is what I had in
mind.



thanks you
Hussayn




HTH



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


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

RE: Reporting Engine

2003-02-10 Thread Sean McKaharay
xReporter...I am using xReporter right now. It takes a little time to
understand all the stylesheets but I think it works great for reporting.
Check it out: http://xreporter.cocoondev.org/index.html
 
 

-Original Message- 
From: Irv Salisbury III [mailto:[EMAIL PROTECTED]] 
Sent: Mon 2/10/2003 1:41 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Reporting Engine



I have been tasked to build/find/modify a reporting engine inside
cocoon.  I have looked at the POI project, and it will not fit, as we
don't want Excel to be the client.  I am hoping for any information
on
any engines that people have used inside cocoon, or if anyone knows
of
any engines that are XML based that could be integrated.  Our ideal
solution would be:

1. Has an XML based template mechanism to let end users create
templates.
2. Uses XSL to translate to HTML/PDF.  (We can build these, but if
the
engine has them already, great)
3. Has a mechanism for plugging in SQL into the pipeline for the data
to
put in the template.  (We can build this as well, but if it is
already
in there, great)

Thanks in advance for any info.

Irv



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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






Re: Cinclude issues...

2003-02-10 Thread Ben Young
Sorry Jeff, I guess I never gave an example of the what the proposed pipeline should 
look like.

map:match pattern=**/index.htm*
  map:act type=sourcetype src=/home/htdocs/content/{1}/index.xml
   map:generate src=cocoon:/{../1}/index.{sourcetype}/
  /map:act
  map:transform src=/home/htdocs/design/shell.xsl
map:parameter name=path value={1}/
  /map:transform
  map:transform type=cinclude/
  map:serialize/
/map:match

I've looked into the Forrest site.xml work and I like it for the most part, but the 
thought of managing a single navigational map for an entire 7,000+ page site seems a 
bit unruly. I'm trying to break it up into managable, human tolerant pieces. 8o) That, 
sarcasmoddly enough/sarcasm, is proving to be a daunting task. 8o)

Thoughts,
Ben

 Jeff Turner [EMAIL PROTECTED] 02/09/03 07:33 AM 
On Fri, Feb 07, 2003 at 09:00:19PM -0500, Ben Young wrote:
 I've recently attempted to use the cinclude to aggregate some files that I'm
 currently aggregating with the map:aggregate command, but I've run into some
 issues that I'm not sure how to resolve.
 
 My current map:match section looks like this:
 
 map:match pattern=**/index.htm*
   map:act type=sourcetype src=/home/htdocs/content/{1}/index.xml
map:aggregate element=document
   map:part src=cocoon:/{../1}/../_navigation.xml
 element=navigation/
   map:part src=cocoon:/{../1}/index.{sourcetype}/
/map:aggregate
   /map:act
   map:transform src=/home/htdocs/design/shell.xsl
 map:parameter name=nav_filename
 value=/home/htdocs/content/nav_home.xml/
 map:parameter name=path value={1}/
   /map:transform
   map:serialize/
 /map:match
 
 I use an internal-only pipeline to find the nearest _navigation.xml file
 in existence.
 
 map:pipeline internal-only=true
   map:match pattern=**/_navigation.xml
 map:act type=resource-exists
map:parameter name=url
 value=/home/htdocs/content/{1}/_navigation.xml/
map:generate src=/home/htdocs/content/{../1}/_navigation.xml/
map:serialize type=xml/
 /map:act
 map:redirect-to uri=cocoon:/{1}/../_navigation.xml/
   /map:match
 /map:pipeline
 
 I'd like to move the aggregation step after the shell.xsl is applied. The
 plan is to have the shell.xsl output a cinclude tag that uses the
 cocoon:// psuedo-protocol in the appropriate place using the $path
 parameter plus _navigation.xml
 
 My current trouble is that the cinclude only runs through the internal
 pipeline once.

Perhaps my brain slipped out of gear, but that seems a bit cryptic..
Don't you need a map:transform type=cinclude/ tag somewhere to get
cinclude processing?


--Jeff

PS: in case you didn't know: Forrest does this kind of nav + body
integration to generate pages like http://xml.apache.org/forrest/


 Thank you for any help you might be able to give,
 Ben
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: highlighting with Lucene

2003-02-10 Thread Hugo Burm
Hi,

The steps you describe below are correct. But it may not be as easy as you
may wish.

Some points:
- The Cocooncenter article was written before Lucene support was integrated
in Cocoon.
Because of this:
- I did not use the indexer integrated in Cocoon, but used my own classes to
index xml files.
- I used my own xsp-logicsheet to pass the query to Lucene and get the
results back.
(you can download the classes and xsp sheet from the Cocooncenter site)

- The highlight transformer has to know about the terms of the query. If I
remember correctly, my xsp page creates a query tag out of the request,
and passes that to the transformer.

So the answer to your question: if you follow the article step by step, it
may work. If you want to mix with Lucene functionality integrated in Cocoon,
it will not.

Off course this is a bad thing. It should work as you describe below. So I
have to change this Tranformer in order to make it fit better in the current
Cocoon/Lucene environment. And meanwhile hope that the modifications of Maik
Schreiber are incorporated into the current branch of Lucene, so you could
skip recompiling Lucene

Hugo

-Original Message-
From: Cyril Vidal [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 1:21 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: highlighting with Lucene


Hi,

 I have a question about using highlighting with Lucene.
What I only want to do:
start from an xml document, by example:
flower
This is a beautiful yellow flower
/flower

that I have first indexed in Lucene's index.

 And when making a query such : flower:yellow
get an XML document from the following form:

flower
This is a beautiful emyellow/em flower
/flower

I don't want ANYsearch function, but just gain benefit from the highlight
function in Lucene.

At first glance, I think it's quite a easy task:
1°) Download the java classes from Maik Screiber, make the few modifications
on Lucene's code.
2°) Compile the Highlight Transformer java class from article
www.cocooncenter.org
3°) Write my sitemap, as written in the same article:

map:transformer
  logger=sitemap.transformer.highlight
  name=highlight
   pool-grow=2 pool-max=16 pool-min=2
   src=nl.datagram.cocoon.transformation.HighlightTransformer/

map:match pattern=flora
map:generate type=file
src=flora.xml/
map:transform type=highlight /
map:serialize/
  /map:match

And when pointing to the url:
http://localhost:8080/cocoon/flora?query=flower:yellow

I should have the desired document:
flower
This is a beautiful emyellow/em flower
/flower

Is this right, or highlighting is a much more difficult task?

Thanks for your response,
Cyril.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: AW: global sitemap parameters and programatic cocoon configuration

2003-02-10 Thread Jeremy Quinn

On Monday, February 10, 2003, at 06:44 PM, SAXESS - Hussayn Dabbous 
wrote:


I also learned, that input modules is something not yet released,
and under discussion...

I'll start experimenting with DefaultsMetaModule and add some
stuff into cocoon.xconf and look into this in more depth. I would
appreciate, if anyone could add a little more light to this ...



Here's an example from my config in Cocoon 2.1:

WEB-INF/cocoon.xconf:

component-instance
  class=org.apache.cocoon.components.modules.input.XMLFileModule
  logger=core.modules.xml name=my-org-conf
 file src=WEB-INF/my-org.xconf/
/component-instance

component-instance
  class=org.apache.cocoon.components.modules.input.ChainMetaModule
  logger=core.modules.input name=my-org
 input-module name=request-param/
 input-module name=simple-map
   prefix/vars//prefix
   input-module name=my-org-conf/
 /input-module
/component-instance


WEB-INF/my-org.xconf:
vars
  start0/start
  count25/count
  xsltparts/xsl/xslt
  
/vars

my-org.xmap (a sub site-map)

map:transform src={my-org:xslt}/process-sql.xsl
  map:parameter name=count value={my-org:count}/
  map:parameter name=start value={my-org:start}/
/map:transform


Values from the xml file can be used as values in the sitemap.
In this example, any of the 'vars' can be overridden by a request 
parameter.

Hope this helps

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: AW: global sitemap parameters and programatic cocoon configuration

2003-02-10 Thread SAXESS - Hussayn Dabbous
Hy, Jeremy;

Thank you for this hint. That's great, because this comes
in fact very close to what i want. The only thing
i would have to change in my current setup is switching
from property-notation to XML-notation in my customisation
files. I planned this move anyway.

Only one last question, before i dive into it. Does this
also work on cocoon-2.0.4, or do i have to wait until 2.1
is released ?

regards, Hussayn

Jeremy Quinn wrote:


On Monday, February 10, 2003, at 06:44 PM, SAXESS - Hussayn Dabbous wrote:



I also learned, that input modules is something not yet released,
and under discussion...

I'll start experimenting with DefaultsMetaModule and add some
stuff into cocoon.xconf and look into this in more depth. I would
appreciate, if anyone could add a little more light to this ...



Here's an example from my config in Cocoon 2.1:

WEB-INF/cocoon.xconf:

component-instance
  class=org.apache.cocoon.components.modules.input.XMLFileModule
  logger=core.modules.xml name=my-org-conf
 file src=WEB-INF/my-org.xconf/
/component-instance

component-instance
  class=org.apache.cocoon.components.modules.input.ChainMetaModule
  logger=core.modules.input name=my-org
 input-module name=request-param/
 input-module name=simple-map
   prefix/vars//prefix
   input-module name=my-org-conf/
 /input-module
/component-instance


WEB-INF/my-org.xconf:
vars
  start0/start
  count25/count
  xsltparts/xsl/xslt
  
/vars

my-org.xmap (a sub site-map)

map:transform src={my-org:xslt}/process-sql.xsl
  map:parameter name=count value={my-org:count}/
  map:parameter name=start value={my-org:start}/
/map:transform


Values from the xml file can be used as values in the sitemap.
In this example, any of the 'vars' can be overridden by a request 
parameter.

Hope this helps

regards Jeremy


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Instal Cocoon on Mac OS X

2003-02-10 Thread Markus Vaterlaus
Hi there, 

I'm not quite sure If we are talking about the same. But cocoon w/ tomcat always takes it's time if it's run for the for the first time. That's, because a lot of files have to be  compiled (check the contents of "work"  in your tomcat directory). If your computer is quite slow it may take a couple of minutes till you see the welcome-page of cocoon. This behavior is the same on all OS, and not just Mac OS X. To speed things up, make sure your computer has a lot of RAM, that you have set all sitemaps according to your needs, that you aren't performing mounts  from outside of cocoon's root (don't know why coccon on mac behaves like that) and check http://xml.apache.org/cocoon/performancetips.html>.

Markus 



Am Sonntag, 09.02.03 um 03:23 Uhr schrieb Ross:

I have installed the tomcat server on Mac OS X and it works fine. I downloaded cocoon and put the cocoon.war file in webapps. I stopped and started tomcat and it created the cocoon folder in webapps. When I go to http://localhost:8080/cocoon the browser does not respond for a long time. Do I have to move some .jar files?
 
Any assistance is appreciated.
 
Thanks,
 
Ross.


Re: Cocoon 2.0.4 and subsitemaps

2003-02-10 Thread Stephan Kassanke
Douglas Reames wrote:
 Would someone familiar with the Cocoon D ocumentation web app please
 give me a tip about extending it.

 I have:
 [1]  Added a branch to:  /webapps/cocoon/samples/
 [2] New branch ( /webapps/cocoon/samples/reames ) is a mirror image of
 /webapps/cocoon/samples/poi,
 [3] Finally, I added an entry to the Sample Index page:
 /webapps/cocoon/docs/samples/samples.xml

 When I select my new directory from the Index page, I do not get
 errors, but I also get nothing but a Cocoon Logo.  I expected the
 mirror image's (poi's) content.

 Any ideas?  Are the modifications described above all that I should
 have to make?

 Regards,
 Douglas Reames


Douglas,

have a look at the Sitemap, especially the sub-sitemap example. This is
essentially a pipeline which announces the subdirectory to Cocoon. make
sure, your new branch is also declared there.

HTH,
Stephan



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Content editor [was: Re: A note about the best(?) (cocoon-) development environment ...]

2003-02-10 Thread Markus Vaterlaus
Hi there,

I'm just facing the same problem as you do. About 30 persons are 
contributing to our documentation (a single document runs from 10 to 
100 pages with about as much graphics in it). Actually all this is done 
in MS Word. I have the Vision that in the near future all this content 
will no longer be stored in a proprietary format. Instead of that it 
will be stored in XML and cocoon will be a good helper to manage and 
publish this content. However, for me the biggest problem actually is, 
what kind of alternatives for an editor are existing? All users are 
mentally bound to Word. They like it's functionality, it's ability to 
write in WYSIWYG-mode et cetera. Actually I'm thinking about using 
OpenOffice as an editor. Has anyone of you cocoonistas any experiences 
or best practices on this behalf (and also on the interaction with 
cocoon)?

--mv


Am Samstag, 08.02.03 um 20:28 Uhr schrieb Robert Simmons:

snip/



The only other comment I have is that I'm still searching for a content
editor for Static XML. I'm currently investigating using adobe 
FrameMaker.
The idea being that I would have a WYSIWYG way of editing documents 
that any
one of my clients could use and I could write XSLT processors to 
convert that
to the web format using cocoon. Right now the current XML editors are 
too
primitive. Usable for a programmer but for a corporate document 
jockey, no
chance.

-- Robert

/snip


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: custom generator not working on a fresh install

2003-02-10 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi again!

nobody any idea? i'm getting desperate here, so any hint/pointer/tip would be 
very very welcome!

thanks,

rick



On Friday 07 February 2003 22:52, peter riegersperger wrote:
 Hi all!

 We reactivated a Cocoon-based project that I haven't touched for a while,
 and I try to get Cocoon (and that project) running on my notebook.
 Included in this project is a custom generator, and this seems to be a bit
 of a problem.

 On the development server, all is running fine, but as soon as I add the
 custom generator to the sitemap on my notebook, I get the following error:

 org.apache.cocoon.ProcessingException: Error compiling sitemap:
 java.lang.NoClassDefFoundError:
 org/apache/cocoon/generation/AbstractGenerator

 Our custom generator extends AbstractGenerator, but why can't Cocoon find
 it? On our server, there's no problem with the custom generator.
 (The rest of cocoon is running excellent, as is everything else I modified.
 It's just the mention of the generator)

 The server is running on cocoon-2.0.3, I'm using 2.0.4 (Source
 distribution) on my notebook.
 All in all, I'm running:
 Linux
 Tomcat 4.0.4
 Cocoon 2.0.4 (the source distribution)
 j2sdk1.4.1_01

 First, I built Cocoon with
 ./build.sh  -Dinclude.webapp.libs=yes -Dinstall.war=$TOMCAT_HOME/webapps
 webapp

 Then, I copied it to /tomcat/webapps

 I copied the following files to tomcat/common/lib:
 xalan-2.3.1.jar
 xercesImpl-2.0.0.jar
 these two where present:
 xercesImpl.jar
 xmlParserAPIs.jar

 I copied the following files to jdk1.4-home/jre/endorsed:
 xalan-2.3.1.jar
 xercesImpl-2.0.0.jar
 xml-apis.jar

 The jar with our custom generator is in
 cocoon/WEB-INF/lib
 and
 tomcat/common/lib

 I've been fiddling around with this the whole day, and obviously I've
 forgotten something.

 I hope anyone can help me, and that this mail makes any sense (after 13
 hours of copying, deleting and modifying files on a 12-screen),

 rick

 ps: In my desperation, I even tried copying the complete cocoon-directory
 from our server, but the error is exactly the same.

- -- 
|-
| peter riegersperger  [EMAIL PROTECTED]
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SBTuIMP39JYOy9IRAkpDAKDEfKf1C8XyBEd600yRj2YxZTx+twCgtKJ1
iMyuvq4cyWUL+Pn5xjqj+bY=
=/mC5
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Content editor [was: Re: A note about the best(?) (cocoon-) development environment ...]

2003-02-10 Thread Conal Tuohy
Markus Vaterlaus wrote:

 I'm just facing the same problem as you do. About 30 persons are
 contributing to our documentation (a single document runs from 10 to
 100 pages with about as much graphics in it). Actually all
 this is done
 in MS Word. I have the Vision that in the near future all
 this content
 will no longer be stored in a proprietary format. Instead of that it
 will be stored in XML and cocoon will be a good helper to manage and
 publish this content. However, for me the biggest problem
 actually is,
 what kind of alternatives for an editor are existing? All users are
 mentally bound to Word. They like it's functionality, it's ability to
 write in WYSIWYG-mode et cetera. Actually I'm thinking about using

If you can get your users to save their docs (from Word) in HTML format,
then Cocoon can read it with the HTMLGenerator. Perhaps a little VB macro
might help to automate the File/SaveAs/HTML operation, to ensure that Word's
proprietary format isn't used by mistake.

Cheers

Con



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Reporting Engine

2003-02-10 Thread Steven Noels
Sean McKaharay wrote:


xReporter...I am using xReporter right now. It takes a little
time to understand all the stylesheets but I think it works great for
reporting.


... and our stylesheets are under serious rework to show off xReporter
can look nice, too ;-)

/Steven
--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Reporting Engine

2003-02-10 Thread Conal Tuohy
Looks interesting... but where is the live demo?

 -Original Message-
 From: Sean McKaharay [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 11 February 2003 07:53
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Reporting Engine
 
 
 xReporter...I am using xReporter right now. It takes a 
 little time to
 understand all the stylesheets but I think it works great for 
 reporting.
 Check it out: http://xreporter.cocoondev.org/index.html

attachment: winmail.dat-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


RE: Reporting Engine

2003-02-10 Thread Bruno Dumon
On Mon, 2003-02-10 at 22:25, Conal Tuohy wrote:
 Looks interesting... but where is the live demo?

Here:
http://xreporter.cocoondev.org/cocoon/mount/xreporter/en-US/datasources
(log in with demo/demo)

the link is at the bottom of the homepage, but maybe you are confused by
the TOC on top?

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java  XML Competence Support Center
[EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Reporting Engine

2003-02-10 Thread Irv Salisbury III
Thanks for the info.  This looks really good.  Any other things I should 
know about this before digging in?

Irv

Sean McKaharay wrote:
xReporter...I am using xReporter right now. It takes a little time to
understand all the stylesheets but I think it works great for reporting.
Check it out: http://xreporter.cocoondev.org/index.html
 
 

	-Original Message- 
	From: Irv Salisbury III [mailto:[EMAIL PROTECTED]] 
	Sent: Mon 2/10/2003 1:41 PM 
	To: [EMAIL PROTECTED] 
	Cc: 
	Subject: Reporting Engine
	
	

	I have been tasked to build/find/modify a reporting engine inside
	cocoon.  I have looked at the POI project, and it will not fit, as we
	don't want Excel to be the client.  I am hoping for any information
on
	any engines that people have used inside cocoon, or if anyone knows
of
	any engines that are XML based that could be integrated.  Our ideal
	solution would be:
	
	1. Has an XML based template mechanism to let end users create
templates.
	2. Uses XSL to translate to HTML/PDF.  (We can build these, but if
the
	engine has them already, great)
	3. Has a mechanism for plugging in SQL into the pipeline for the data
to
	put in the template.  (We can build this as well, but if it is
already
	in there, great)
	
	Thanks in advance for any info.
	
	Irv
	
	
	
	-
	Please check that your question  has not already been answered in the
	FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
	
	To unsubscribe, e-mail: [EMAIL PROTECTED]
	For additional commands, e-mail:   [EMAIL PROTECTED]
	
	




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




want to volunteer my writing skill but how?

2003-02-10 Thread David Novogrodsky
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I would love to volunteer for the Cocoon project. I love to write and 
combined with my technical skill the combination could be potent; 
however, I am having some problems joining the docs mail list. When I 
send an e-mail to: cocoon-docs-subscribe.at.xml.apache.org I get a bad 
e-mail address error:

- 
To: [EMAIL PROTECTED]
Subject: Undelivered Mail Returned to Sender

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to postmaster

If you do so, please include this problem report. You can
delete your own text from the message returned below.

			The Postfix program

[EMAIL PROTECTED]: 
unknown
user: cocoon-docs-subscribe.at.xml.apache.org
Arrival-Date: Mon, 10 Feb 2003 15:38:51 -0600 (CST)
- 

Any way to fix this?

David Novogrodsky
http://www.novogrodsky.net
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+SB20vgTNkiw+nMcRAplSAKCI9sdtGzQ1K34C4OJxfI3sdlfhRQCcDRQS
9bGLsbMKDCCvZB8hEbOevJY=
=CYmU
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



Re: want to volunteer my writing skill but how?

2003-02-10 Thread Tai
[EMAIL PROTECTED]

On Tue, 2003-02-11 at 08:46, David Novogrodsky wrote:
 I am having some problems joining the docs mail list. When I 
 send an e-mail to: cocoon-docs-subscribe.at.xml.apache.org I get a bad 
 e-mail address error:
 



signature.asc
Description: This is a digitally signed message part


AW: custom generator not working on a fresh install

2003-02-10 Thread Jan Harms
Hi Rick,

have you tried to call the java VM with the -verbose:class option? You will have to 
modify the tomcat startup skripts for that. With this option you can see which classes 
are actually loaded (and from where).

Are the cocoon classes loaded? What if you use a FileGenerator (inherits from 
AbstractGenerator), does that work? Which classes does your Generator import? You 
could try to write a simple CustomGenerator which does nothing. Just inherit from 
AbstractGenerator and see if it gets loaded...

Don´t panic  ;-)

-Jan Harms


 -Ursprüngliche Nachricht-
 Von: peter riegersperger [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 10. Februar 2003 22:09
 An: [EMAIL PROTECTED]
 Betreff: Re: custom generator not working on a fresh install
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 hi again!
 
 nobody any idea? i'm getting desperate here, so any 
 hint/pointer/tip would be 
 very very welcome!
 
 thanks,
 
 rick
 
 
 
 On Friday 07 February 2003 22:52, peter riegersperger wrote:
  Hi all!
 
  We reactivated a Cocoon-based project that I haven't 
 touched for a while,
  and I try to get Cocoon (and that project) running on my notebook.
  Included in this project is a custom generator, and this 
 seems to be a bit
  of a problem.
 
  On the development server, all is running fine, but as soon 
 as I add the
  custom generator to the sitemap on my notebook, I get the 
 following error:
 
  org.apache.cocoon.ProcessingException: Error compiling sitemap:
  java.lang.NoClassDefFoundError:
  org/apache/cocoon/generation/AbstractGenerator
 
  Our custom generator extends AbstractGenerator, but why 
 can't Cocoon find
  it? On our server, there's no problem with the custom generator.
  (The rest of cocoon is running excellent, as is everything 
 else I modified.
  It's just the mention of the generator)
 
  The server is running on cocoon-2.0.3, I'm using 2.0.4 (Source
  distribution) on my notebook.
  All in all, I'm running:
  Linux
  Tomcat 4.0.4
  Cocoon 2.0.4 (the source distribution)
  j2sdk1.4.1_01
 
  First, I built Cocoon with
  ./build.sh  -Dinclude.webapp.libs=yes 
 -Dinstall.war=$TOMCAT_HOME/webapps
  webapp
 
  Then, I copied it to /tomcat/webapps
 
  I copied the following files to tomcat/common/lib:
  xalan-2.3.1.jar
  xercesImpl-2.0.0.jar
  these two where present:
  xercesImpl.jar
  xmlParserAPIs.jar
 
  I copied the following files to jdk1.4-home/jre/endorsed:
  xalan-2.3.1.jar
  xercesImpl-2.0.0.jar
  xml-apis.jar
 
  The jar with our custom generator is in
  cocoon/WEB-INF/lib
  and
  tomcat/common/lib
 
  I've been fiddling around with this the whole day, and 
 obviously I've
  forgotten something.
 
  I hope anyone can help me, and that this mail makes any 
 sense (after 13
  hours of copying, deleting and modifying files on a 12-screen),
 
  rick
 
  ps: In my desperation, I even tried copying the complete 
 cocoon-directory
  from our server, but the error is exactly the same.
 
 - -- 
 |-
 | peter riegersperger  [EMAIL PROTECTED]
 |-
 | ein windows switcher tagebuch:
 | http://forum.subnet.at/viewforum.php?f=22
 |-
 | subnet
 | platform for media art and experimental technologies
 |-
 | http://www.subnet.at/
 |-
 | muehlbacherhofweg 5 // 5020 salzburg // austria
 |-
 | fon/fax +43/662/842 897
 |- 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.7 (GNU/Linux)
 
 iD8DBQE+SBTuIMP39JYOy9IRAkpDAKDEfKf1C8XyBEd600yRj2YxZTx+twCgtKJ1
 iMyuvq4cyWUL+Pn5xjqj+bY=
 =/mC5
 -END PGP SIGNATURE-
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: AW: custom generator not working on a fresh install

2003-02-10 Thread peter riegersperger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 10 February 2003 23:06, Jan Harms wrote:
 Don´t panic  ;-)

too late. I managed to not pass out, but if i didn't have KMahjongg, i'd be in 
real trouble ;)

 have you tried to call the java VM with the -verbose:class option? You
 will have to modify the tomcat startup skripts for that. With this option
 you can see which classes are actually loaded (and from where).

when i do this, the startup process stops somewhwere in the jre. is this 
normal?

 Are the cocoon classes loaded?

i suppose, because cocoon is running fine.

What if you use a FileGenerator (inherits
 from AbstractGenerator), does that work? 

yes, that works fine.

Which classes does your Generator
 import? You could try to write a simple CustomGenerator which does nothing.
 Just inherit from AbstractGenerator and see if it gets loaded...

MyGenerator  extends AbstractGenerator

i've just created a TestGenerator extends AbstractGenerator, and this one 
works (meaning: the sitemap compiles).

can there be a problem with imports?
the TestGenerator imports:
import java.io.IOException;
import org.apache.cocoon.ProcessingException;
import org.apache.cocoon.generation.AbstractGenerator;
import org.xml.sax.SAXException;

and MyGenerator imports a lot more classes.

is it possible that cocoon isn't missing the AbstractGenerator, but something 
else? i'll dig into this, i was so focused on AbstractGenerator that this 
actually never came to my mind.

thanks, that definitely helped!

rick


- -- 
|-
| peter riegersperger  [EMAIL PROTECTED]
|-
| ein windows switcher tagebuch:
| http://forum.subnet.at/viewforum.php?f=22
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SCtmIMP39JYOy9IRAl4eAJ9wDOFdO0fLljYfynZ8cBLl7UlMNwCgyCC3
U62S0rSaPkAcPx6jrKkQYAE=
=uG0E
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Cocoon 2.0.4 and subsitemaps

2003-02-10 Thread Douglas Reames
Thanks for replying Stephen.

The relevant  Sitemap / Subsitemap pipeline entries are:
[A]  Sitemap (  /webapps/cocoon/sitemap.xmap ) --

!--  'mount other sample pages'   --
 map:match pattern=samples/**
  map:mount check-reload=yes src=samples/ uri-prefix=samples/
/map:match

[B]  Subsitemap ( /webapps/cocoon/samples/sitemap.xmap ) --

map:match pattern=*/**
map:mount uri-prefix={1} src={1}/ check-reload=yes/
   /map:match

The reason why I am so puzzled about the outcome that I am getting is, 
based on my understanding of sitemaps, if a request 
for:  /webapps/cocoon/samples/poi produces the appropriate Index Page:

MATCH in sitemap:  samples/poi
MATCH in subsitemap: poi

Then, I would believe the same would happen for a request 
for:  /webapps/cocoon/samples/reames

MATCH in sitemap:  samples/reames
MATCH in subsitemap: reames

The sitemap log appears to confirm my understanding.

Thanks again.  I am looking for ways to reduce the site content, so that 
maybe then the problem will become visible.

Regards,
Douglas Reames


At 09:33 PM 2/10/2003 +0100, you wrote:
Douglas Reames wrote:
 Would someone familiar with the Cocoon D ocumentation web app please
 give me a tip about extending it.

 I have:
 [1]  Added a branch to:  /webapps/cocoon/samples/
 [2] New branch ( /webapps/cocoon/samples/reames ) is a mirror image of
 /webapps/cocoon/samples/poi,
 [3] Finally, I added an entry to the Sample Index page:
 /webapps/cocoon/docs/samples/samples.xml

 When I select my new directory from the Index page, I do not get
 errors, but I also get nothing but a Cocoon Logo.  I expected the
 mirror image's (poi's) content.

 Any ideas?  Are the modifications described above all that I should
 have to make?

 Regards,
 Douglas Reames


Douglas,

have a look at the Sitemap, especially the sub-sitemap example. This is
essentially a pipeline which announces the subdirectory to Cocoon. make
sure, your new branch is also declared there.

HTH,
Stephan



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Javadoc in XML Format?

2003-02-10 Thread Robert Simmons



Greetings,I have been looking for a doclet 
that will create Javadoc API documentation but in XML format. This could then be 
used with cocoon to give far mroe control over rendering javadoc. I have looked 
through the internet and it appears Apache had a project on it at one time but 
now i cant find any links to it. Anyone know where i could find such an animal? 
The default HTML Javadoc is such a drag. =) 


-- Robert


AW: AW: global sitemap parameters and programatic cocoon configuration

2003-02-10 Thread Marco Rolappe
hi hussayn,

I see the classes available and modules declared in cocoon.xconf in 2.0.4,
so; 1. they seem to be released stuff and 2. you should be able to use them
in 2.0.4.

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im
 Auftrag von SAXESS - Hussayn Dabbous
 Gesendet: Montag, 10. Februar 2003 21:15
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: global sitemap parameters and programatic cocoon
 configuration


 Hy, Jeremy;

 Thank you for this hint. That's great, because this comes
 in fact very close to what i want. The only thing
 i would have to change in my current setup is switching
 from property-notation to XML-notation in my customisation
 files. I planned this move anyway.

 Only one last question, before i dive into it. Does this
 also work on cocoon-2.0.4, or do i have to wait until 2.1
 is released ?

 regards, Hussayn



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: want to volunteer my writing skill but how?

2003-02-10 Thread David Crossley
David Novogrodsky wrote:
 I would love to volunteer for the Cocoon project. I love to write and
 combined with my technical skill the combination could be potent;
 however, I am having some problems joining the docs mail list. When I
 send an e-mail to: cocoon-docs-subscribe.at.xml.apache.org I get a bad
 e-mail address error:

The address is obsfuscated to attempt to limit spam.

... replace the .at. with @

--David


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Cinclude issues...

2003-02-10 Thread Jeff Turner
On Mon, Feb 10, 2003 at 02:09:17PM -0500, Ben Young wrote:
 Sorry Jeff, I guess I never gave an example of the what the proposed pipeline should 
look like.
 
 map:match pattern=**/index.htm*
   map:act type=sourcetype src=/home/htdocs/content/{1}/index.xml
map:generate src=cocoon:/{../1}/index.{sourcetype}/
   /map:act
   map:transform src=/home/htdocs/design/shell.xsl
 map:parameter name=path value={1}/
   /map:transform
   map:transform type=cinclude/
   map:serialize/
 /map:match

And doesn't it work?  What is the output just before the cinclude?

(sorry, I still haven't twigged.. what does shell.xsl do?)

 I've looked into the Forrest site.xml work and I like it for the most
 part, but the thought of managing a single navigational map for an
 entire 7,000+ page site seems a bit unruly.

Ouch.. yes it would.  With a sitemap tweak, site.xml could xinclude
site.xml's from subdirectories though.

 I'm trying to break it up into managable, human tolerant pieces. 8o)
 That, sarcasmoddly enough/sarcasm, is proving to be a daunting
 task. 8o)

Oh well, *humans*, there's your problem :o)  Upgrade to a species more
tolerant of complexity, and everything will be fine.

--Jeff

 Thoughts,
 Ben
 
  Jeff Turner [EMAIL PROTECTED] 02/09/03 07:33 AM 
 On Fri, Feb 07, 2003 at 09:00:19PM -0500, Ben Young wrote:
  I've recently attempted to use the cinclude to aggregate some files that I'm
  currently aggregating with the map:aggregate command, but I've run into some
  issues that I'm not sure how to resolve.
  
  My current map:match section looks like this:
  
  map:match pattern=**/index.htm*
map:act type=sourcetype src=/home/htdocs/content/{1}/index.xml
 map:aggregate element=document
map:part src=cocoon:/{../1}/../_navigation.xml
  element=navigation/
map:part src=cocoon:/{../1}/index.{sourcetype}/
 /map:aggregate
/map:act
map:transform src=/home/htdocs/design/shell.xsl
  map:parameter name=nav_filename
  value=/home/htdocs/content/nav_home.xml/
  map:parameter name=path value={1}/
/map:transform
map:serialize/
  /map:match
  
  I use an internal-only pipeline to find the nearest _navigation.xml file
  in existence.
  
  map:pipeline internal-only=true
map:match pattern=**/_navigation.xml
  map:act type=resource-exists
 map:parameter name=url
  value=/home/htdocs/content/{1}/_navigation.xml/
 map:generate src=/home/htdocs/content/{../1}/_navigation.xml/
 map:serialize type=xml/
  /map:act
  map:redirect-to uri=cocoon:/{1}/../_navigation.xml/
/map:match
  /map:pipeline
  
  I'd like to move the aggregation step after the shell.xsl is applied. The
  plan is to have the shell.xsl output a cinclude tag that uses the
  cocoon:// psuedo-protocol in the appropriate place using the $path
  parameter plus _navigation.xml
  
  My current trouble is that the cinclude only runs through the internal
  pipeline once.
 
 Perhaps my brain slipped out of gear, but that seems a bit cryptic..
 Don't you need a map:transform type=cinclude/ tag somewhere to get
 cinclude processing?
 
 
 --Jeff
 
 PS: in case you didn't know: Forrest does this kind of nav + body
 integration to generate pages like http://xml.apache.org/forrest/
 
 
  Thank you for any help you might be able to give,
  Ben

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: AW: Accessing named session attributes in XSP?

2003-02-10 Thread Derek Hohls



I am not sure by what you mean "How is it accessed";
it is called by the sitemap as a generator at the start
of a match entry... in fact, the same XSP may be called
from more than one match; with different processing
and transformation taking place thereafter. 

How can I avoid each XSP creating a new session?

Thanks
Derek
 [EMAIL PROTECTED] 10/02/2003 08:20:53 hi 
derek,could you tell me please how the XSP is accessed? the problem 
might be thatyour XSP is dealing with a different session (XSPs default to 
creating a newsession). -Ursprungliche 
Nachricht- Von: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im 
Auftrag von Derek Hohls Gesendet: Montag, 10. Februar 2003 14:33 
An: [EMAIL PROTECTED] Betreff: Accessing named session 
attributes in XSP? I know I am missing something *very* 
obvious, but I have "end of day" stare here, and cannot figure 
what mistake I am making. I am using the Database 
Authenticator to process a login - the user ID is stored in a session 
attribute called "userrname" The auth.xml used looks 
like: auth-descriptor 
connectionmyDB/connection table 
name="user" select dbcol="UserName" 
request-param="username" 
to-session="username"/ select 
dbcol="UserPassword" request-param="userpass" / 
/table /auth-descriptor This process 
seems to be working, as I can now get access to the protected part of 
the pipeline: ie. map:match type="sessionstate" 
pattern="*" map:parameter 
name="attribute-name" value="username"/ !-- all this is 
accessible after login -- /map:match 
However, when I try and use the username attribute in an XSP file, I 
just get a "null" returned - here's the snippet from the 
file: xsp:page 
language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-session="http://apache.org/xsp/request/2.0"  !-- 
Page-level logic -- page 
xsp:logic 
//session String sUserName = 
xsp-session:get-attribute name="username" 
as="string"/; 
/xsp:logic 
elementxsp:exprsUserName/xsp:expr/element 
/page The element now contains "null" 
(wihtout the ") Any idea how to get the username out 
into the XSP?? Thanks Derek 
-- This message has been scanned for viruses and dangerous content 
by MailScanner, and is believed to be clean. "The CSIR 
exercises no editorial control over E-mail messages and/or attachments 
thereto/links referred to therein originating in the organisation and 
the views in this message/attachments thereto are therefore not 
necessarily those of the CSIR and/or its employees. The sender of this 
e-mail is, moreover, in terms of the CSIR's Conditions of Service, 
subject to compliance with the CSIR's internal E-mail and Internet 
Policy." 
- 
Please check that your question has not already been answered in 
the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html 
To unsubscribe, e-mail: 
[EMAIL PROTECTED] For additional commands, 
e-mail: 
[EMAIL PROTECTED]-Please 
check that your question has not already been answered in theFAQ 
before posting. http://xml.apache.org/cocoon/faq/index.htmlTo 
unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, 
e-mail: 
[EMAIL PROTECTED]-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."