Re: !HELP! Cocoon global errors !HELP!

2003-02-06 Thread SAXESS - Hussayn Dabbous
If you look into the logs and search for the FIRST occurence
of a stack trace, you see this message:


org.apache.cocoon.ResourceNotFoundException: The element type content 
must be terminated by the matching end-tag /content.: 
org.xml.sax.SAXParseException: The element type content must be 
terminated by the matching end-tag /content.

This means, that in one of your XML or XSL files you have a
problem with wellformedness.

what can you do against it ?

1.) search for the content tag in your document, or your XSL file
that you retrieve with your request.

2.) consider using an XML aware editor.
there was a discussion about this recently on
this mailing list. just look into the archives...

regards, hussayn



[EMAIL PROTECTED] wrote:
Hi,
Sorry, I have just receive a mailer-deamon message that my mail failed.
So are the complete logs.


-Original Message-


Hello everybody,

I've installed Cocoon and developed a bit with it. I didn't change 
anything special in cocoon, but now I get following error on all my 
pages :

HTTP Status 404 -
typeStatus report
message
descriptionThe requested resource () is not available.

And my logfile is like this (here is my last request): Thanks for your



HELP! Maxi


me




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




Error

2003-02-06 Thread Halgurt



Hallo,

I am trying to transform an xml source to wml, but 
I am getting this Error, can anyone help me please:


type 
fatal
message 
null
description java.lang.NullPointerException
sender 
org.apache.cocoon.servlet.CocoonServlet
source 
Cocoon servlet
stack-tracejava.lang.NullPointerException
	at java.util.Hashtable.remove(Hashtable.java:431)
	at org.apache.excalibur.store.impl.MRUMemoryStore.remove(MRUMemoryStore.java:217)
	at org.apache.cocoon.caching.impl.CacheImpl.remove(CacheImpl.java:140)
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.validatePipeline(AbstractCachingProcessingPipeline.java:497)
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:545)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:497)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:463)
	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:148)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:600)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:194)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:996)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:996)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2570)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:996)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 

Re: AW: convert String into Sax events into my own transformer

2003-02-06 Thread Lionel Crine
OK, it's allmost working because i still have :

?xml version=1.0 encoding=UTF-8?

and In my browser I have :


?xml version=1.0 encoding=UTF-8?
xsp:page xmlns:xsp=http://apache.org/xsp; 
xmlns:ixia-query=http://www.ixiasoft.com/ixia/query/1.0;


ixia-query:document
  ?xml version=1.0 encoding=UTF-8?
test/
/ixia-query:document

/xsp:page


I would like the parser to not keep the ?xml version=1.0 encoding=UTF-8?.

Is it possible ?


-
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: SQLtransformer repeats namespace

2003-02-06 Thread Martin Holz
I-Lin Kuo [EMAIL PROTECTED] writes:

 I've been working with Cocoon for a week. I have a simple xml page to
 be run through an SQLTransformer
 
 
 page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 titleSQLTransformer Test/title
 content
   para
   execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
   query
   select  count(*) as total,
   sum(XID) as IDSUM
   from XMAN
   /query
   /execute-query
   /para
 /content
 /page
 ==
 and this is what I get back (note that xmlns is declared twice in the
 rowset element):
 
 ==
 ?xml version=1.0 encoding=UTF-8?
 page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
 titleSQLTransformer Test/title
 content
   para
   rowset nrofrows=1 xmlns=http://apache.org/cocoon/SQL/2.0;
   
xmlns=http://apache.org/cocoon/SQL/2.0;rowtotal2/totalidsum25/idsum/row/rowset
 
   /para
 /content
 /page
 ===
 Is this a bug, or did I configure something incorrectly? I can get
 around this by explicitly naming the namespace via execute-query
 xmlns:cocsqlt=http://apache.org/cocoon/SQL/2.0; but that's annoying.


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




remove header in the sax parser

2003-02-06 Thread Lionel Crine
I'm using the avalon component sax parser and I parse a string value. but 
it returns
the header .

I don't want it because the String value is inline in the document :

here is what I have in my browser :



?xml version=1.0 encoding=UTF-8?
xsp:page xmlns:xsp=http://apache.org/xsp; 
xmlns:ixia-query=http://www.ixiasoft.com/ixia/query/1.0;


ixia-query:document
  ?xml version=1.0 encoding=UTF-8?
coucou/
/ixia-query:document

/xsp:page

How do I not handle the header during the parsing ? 


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



XSL FO

2003-02-06 Thread Tom Place
Hi all,

I am new to XSL FO and have been working through some tutorials.

I have successfully managed to create the Fop font xml files and
config.xml file for the folder, and have setup cocoons sitemap so the
fo2pdf serializer find the config file. 

However the problem comes when I try to parse simple XML through an XSL
template and serialize it as PDF. I think the error lies in my XSL
however after following several examples to the letter I'm tearing my
hair out! The XML, XSL and Error are outlined below:

!----
!-- Sample simple XML below : --
?xml version=1.0?
page
  main
item
  titleHELLO WORLD!/title
  bodyPDF is getting on my wick/body
/item
  /main
/page

!----
!-- Sample XSL below : --
?xml version=1.0?

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 
xmlns:fo=http://www.w3.org/1999/XSL/Format;

  xsl:template match=/

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;

  fo:layout-master-set
fo:simple-page-master master-name = first
  fo:region-body margin-top=1in
  margin-bottom=1in
  margin-left=1.5in
  margin-right=1.5in/
  fo:region-before extent=1in
margin-top=0.2in
margin-bottom=0.2in
margin-left=0.2in
margin-right=0.2in/
/fo:simple-page-master

fo:page-sequence-master master-name = run1
  fo:single-page-master-reference 
  master-name = first/
/fo:page-sequence-master

  /fo:layout-master-set

  fo:page-sequence master-name = run1   
xsl:apply-templates/
  /fo:page-sequence

/fo:root

  /xsl:template
  
  xsl:template match=page

fo:static-content flow-name=xsl-region-before
  fo:block font-size=10pt
line-height=12pt
font-family=Arial
text-align=center
Page fo:page-number/
  /fo:block
/fo:static-content

fo:flow flow-name=xsl-body
  xsl:for-each select=main/item

fo:block font-size=10pt
  line-height=12pt
  font-family=Arial
  text-align=center
  font-weight=bold
  xsl:value-of select=title/
/fo:block

fo:block font-size=10pt
  line-height=12pt
  font-family=Arial
  text-align=center
  xsl:value-of select=body/
/fo:block
 
  /xsl:for-each 
/fo:flow

  /xsl:template

/xsl:stylesheet

!----
!-- Print of the error below : --
!-- This error is generated by the tomcat window--
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: org.apache.for.apps.FOPException: 'master-referance' for
'fo:page-sequence matches no 'simple-page-master' or
'page-sequence-master'

   at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
70)
   at java.lang.Thread.run(Thread.java:536)

!----

The error I get from Acrobat in File damaged!

If anyone can spot the error it would be most appreciated however as I
say this has been copied CLOSELY from a textbook so I'm at a loss

Cheers

Tom Place
 



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




Location of cocoon webapp on server

2003-02-06 Thread Anna Afonchenko



Hi all.

We have our web app under 
CATALINA_HOME/webapps/cocoon/ub

which can be accessed on the webserver by http://domain.name:8080/cocoon/ub/*

However, we want to put the ub directory under 
/home/cocoon/ub and to access it by http://domain.name/ub/* 

We can move the directory to /home/cocoon/ub, 
and therefore not under webapps/cocoonand call it by using a sub sitemap 
with the URL http://domain.name:8080/cocoon/ub/* 


But how do we lose the :8080/cocoon from the 
request URL?

We are using apache 1.1 and the latest tomcat 
and cocoon and the jk1 bridge between tomcat and apache. The system is a 
linux box.

I can modify the workers.properties file so that 
it mounts http://domain.name/ub to tomcat 
and then put a symbolic link in the tomcat web-apps directory to /home/cocoon/ub 
but this is both an ugly and not very stable solution.

Thank you very much for your help

Anna Afonchenko and Spencer 
Bruce


Using the results of an aggregate part.

2003-02-06 Thread SAXESS - Hussayn Dabbous
Hy,

I need to transform one source into two different views
and finally collect these views into one single output page.

I do this with an aggregation, that implicitly calls the
same source twice and feeds the result into different
transformers:


map:match pattern=search/canvas
  map:aggregate element=canvas
map:part element = coll src=cocoon:/search/coll/
map:part element = mask src=cocoon:/search/mask/
  /map:aggregate
  map:transform src = canvas.xsl/
  map:serialize type = html/
/map:match

map:match pattern=/search/coll
  map:generate src=http://myserver/collection.xml/
  map:transform src=collection.xsl/
  map:serialize type = xml/
/map:match

map:match pattern=/search/mask
  map:generate src=http://myserver/collection.xml/
  map:transform src=mask.xsl/
  map:serialize type = xml/
/map:match

The goal is to call the http: request only once,
not twice as is done with the sitemap above.

One possible solution would be to create one single
XSL-transform by merging the rules of canvas.xsl
and collection.xsl into one merge.xsl and add a template that
actually controls the merge. That would result in calling
the http only once, but i do not want to solve it like this,
because the only place, where i want to define the merge shall
be the sitemap i.e. within the first match rule above.

Now the question raises, how i can gather an xml-fragment,
put it into some temporary place (ideally in memory) and
refer to this fragement from another part of the pipeline.
On top of this the xml-fragment should be kept local to the
request (each request retrieves the fragment and puts it
into a request-bound place and after the request terminates throw
away the fragment)

any ideas, how this could be achieved ?

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: Location of cocoon webapp on server

2003-02-06 Thread SAXESS - Hussayn Dabbous
There is a brand new wiki page on this.

You may look into it at

http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerSimpleWebappOrganisation

It is in the draft state right now, but i would be pleased, if you
comment on it.

the page misses one step that is needed for your requirements.
Howto omitt cocoon from your http request.

there is some documentation on this withion the official
cocoon docs.

in short terms:

go to tomcat conf/server.xml

add a Default Context for your app.
If you use a NEWER version of tomcat, (tomcat-4.1.16++)
you MUST take out cocoon from the default webapps directory
and put it somewherre else and define that location
within the Context. this is very brief answer.
for more detailed look into the Wiki or the cocoon docs.


regards, hussayn

Anna Afonchenko wrote:

Hi all.
 
We have our web app under CATALINA_HOME/webapps/cocoon/ub
 
which can be accessed on the webserver by 
http://domain.name:8080/cocoon/ub/*
 
However, we want to put the ub directory under /home/cocoon/ub and to 
access it by http://domain.name/ub/*
 
We can move the directory to /home/cocoon/ub, and therefore not under 
webapps/cocoon and call it by using a sub sitemap with the URL 
http://domain.name:8080/cocoon/ub/*
 
But how do we lose the :8080/cocoon from the request URL?
 
We are using apache 1.1 and the latest tomcat and cocoon and the jk1 
bridge between tomcat and apache.  The system is a linux box.
 
I can modify the workers.properties file so that it mounts 
http://domain.name/ub to tomcat and then put a symbolic link in the 
tomcat web-apps directory to /home/cocoon/ub but this is both an ugly 
and not very stable solution.
 
Thank you very much for your help
 
Anna Afonchenko and Spencer Bruce

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhofer Allee 125
50935 Koln
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]




AW: AW: convert String into Sax events into my own transformer

2003-02-06 Thread Jan Harms
Sorry, I forgot to tell you that you can wrap your xmlConsumer into a 
org.apache.cocoon.xml.IncludeXMLConsumer.
This class basically ignores the start/endDocument() and start/endDTD() method call:

parser.parse(inputSource, new IncludeXMLConsumer(xmlConsumer()));


BTW, where does your String come from? If you just want to emit one single tag, e.g. 
test/ it will be easier to just call the sax methods directly.

I assume that your transformer extends AbstractTransformer. Then you can do the 
following

//create test/ in consumer
super.startElement(, test, test, new org.xml.sax.helpers.AttributesImpl()); 
super.endElement(, test, test);


If you really want to build your own transformer, I can only recommend to have a look 
at the sources of cocoon-transformers. This helps a lot.

What confused me a bit about your last post, is that you have xsp code in your 
browser... Maybe you could explain in more detail what you are trying to do, then we 
might help you better.

Regards,

-Jan

 -Ursprüngliche Nachricht-
 Von: Lionel Crine [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Februar 2003 10:33
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: convert String into Sax events into my own 
 transformer
 
 
 OK, it's allmost working because i still have :
 
 ?xml version=1.0 encoding=UTF-8?
 
 and In my browser I have :
 
 
 ?xml version=1.0 encoding=UTF-8?
 xsp:page xmlns:xsp=http://apache.org/xsp; 
 xmlns:ixia-query=http://www.ixiasoft.com/ixia/query/1.0;
 
 
 ixia-query:document
?xml version=1.0 encoding=UTF-8?
 test/
 /ixia-query:document
 
 /xsp:page
 
 
 I would like the parser to not keep the ?xml version=1.0 
 encoding=UTF-8?.
 
 Is it possible ?
 
 

-
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: AW: convert String into Sax events into my own transformer

2003-02-06 Thread Lionel Crine
I Found IT!!! thanks a lot

At 11:50 06/02/2003 +0100, you wrote:

Sorry, I forgot to tell you that you can wrap your xmlConsumer into a 
org.apache.cocoon.xml.IncludeXMLConsumer.
This class basically ignores the start/endDocument() and start/endDTD() 
method call:

parser.parse(inputSource, new IncludeXMLConsumer(xmlConsumer()));


BTW, where does your String come from? If you just want to emit one single 
tag, e.g. test/ it will be easier to just call the sax methods directly.

I assume that your transformer extends AbstractTransformer. Then you can 
do the following

//create test/ in consumer
super.startElement(, test, test, new 
org.xml.sax.helpers.AttributesImpl());
super.endElement(, test, test);


If you really want to build your own transformer, I can only recommend to 
have a look at the sources of cocoon-transformers. This helps a lot.

What confused me a bit about your last post, is that you have xsp code in 
your browser... Maybe you could explain in more detail what you are trying 
to do, then we might help you better.

Regards,

-Jan

 -Ursprüngliche Nachricht-
 Von: Lionel Crine [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Februar 2003 10:33
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: convert String into Sax events into my own
 transformer


 OK, it's allmost working because i still have :

 ?xml version=1.0 encoding=UTF-8?

 and In my browser I have :


 ?xml version=1.0 encoding=UTF-8?
 xsp:page xmlns:xsp=http://apache.org/xsp;
 xmlns:ixia-query=http://www.ixiasoft.com/ixia/query/1.0;


 ixia-query:document
?xml version=1.0 encoding=UTF-8?
 test/
 /ixia-query:document

 /xsp:page


 I would like the parser to not keep the ?xml version=1.0
 encoding=UTF-8?.

 Is it possible ?



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




Parsing XML from text

2003-02-06 Thread Jani Kaarnalehto

Hey all,

I'm developing a content management system with cocoon and torque. (I will 
make it public as open source, when I get version 0.0 ready.) 

I have a problem with parsing text from database in to a XML-document.

My app stores (X)HTML as XML into a relational database. I store only 
elements not full XML-documents. Here is an example:



document-body
   content
  h1Sample page/h1
  pThis is text with an entity: nbsp;/p
   /content
/document-body



I'm using dom4j for handling XML inside my app.

I use DocumentHelper.parseText()-method for creating XML-document. But
like in the example there might be entities in the text (nbsp; auml;
etc.) The result is an exception complaining about missing entity
declarations.

It seems that dom4j isn't suitable for my needs after all and noe I'm 
seeking alternatives.

Is there an api for doing this build inside Cocoon? 
Any other suggestions?

Thanks for reading this far...

-Jani



-
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: AW: convert String into Sax events into my own transformer

2003-02-06 Thread Lionel Crine
My string comes from an XML Database.

there are java methods to access the database and they return XML results.

1/I will do an xsp generation to transform my document the first time.( 
reguler expression).- the request query is na xml document.
2/Then I use my transformer to request in the XML DB
3/then I Transform with whatever
and I serialize.


hope you understand what i am trying to do

Don't hesitate to ask me more question if you want to know more.

Lionel




At 11:50 06/02/2003 +0100, you wrote:
Sorry, I forgot to tell you that you can wrap your xmlConsumer into a 
org.apache.cocoon.xml.IncludeXMLConsumer.
This class basically ignores the start/endDocument() and start/endDTD() 
method call:

parser.parse(inputSource, new IncludeXMLConsumer(xmlConsumer()));


BTW, where does your String come from? If you just want to emit one single 
tag, e.g. test/ it will be easier to just call the sax methods directly.

I assume that your transformer extends AbstractTransformer. Then you can 
do the following

//create test/ in consumer
super.startElement(, test, test, new 
org.xml.sax.helpers.AttributesImpl());
super.endElement(, test, test);


If you really want to build your own transformer, I can only recommend to 
have a look at the sources of cocoon-transformers. This helps a lot.

What confused me a bit about your last post, is that you have xsp code in 
your browser... Maybe you could explain in more detail what you are trying 
to do, then we might help you better.

Regards,

-Jan

 -Ursprüngliche Nachricht-
 Von: Lionel Crine [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Februar 2003 10:33
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: convert String into Sax events into my own
 transformer


 OK, it's allmost working because i still have :

 ?xml version=1.0 encoding=UTF-8?

 and In my browser I have :


 ?xml version=1.0 encoding=UTF-8?
 xsp:page xmlns:xsp=http://apache.org/xsp;
 xmlns:ixia-query=http://www.ixiasoft.com/ixia/query/1.0;


 ixia-query:document
?xml version=1.0 encoding=UTF-8?
 test/
 /ixia-query:document

 /xsp:page


 I would like the parser to not keep the ?xml version=1.0
 encoding=UTF-8?.

 Is it possible ?



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




macros vs. resources

2003-02-06 Thread Lorenzo De Sio
Hi all,

I was wondering about a way to group together several transformations in a
single reusable pipeline fragment.

Currently, map:resource/ seems to not allow that, since a resource doesn't
return control to its caller:

wiki-snip uri=http://wiki.cocoondev.org/Wiki.jsp?page=Resources;
However resources are not like a macro, which might describe a pipeline
fragment. The flow of processing does not return from the point at which the
resource is called. Therefore a resource must be a complete pipeline, or
must invoke another resource which is a complete pipeline. To put this
differently, a resource is called and this call must eventually end up at a
Serializer or Reader. The call may progress through several other resources
which might, for example, contain Selector or Actions that further affect
the flow of processing but must end up at a pipeline terminating component. 
/wiki-snip

It seems like there is no easy way to do this. And writing a custom
Transformer seems a big problem to me, since I need to combine three XSL
transformations and a CInclude transformation.

Any ideas? :-)


L.





-
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: matcher of a request

2003-02-06 Thread Nesto



Thank you Jan for your help!!
Finally I wrote a matcher that works 
fine!
Ipost it to the group because it could be 
interesting.

I wanted to write a matcher for anURI of this 
type:
http://myhost.com:8080/cocoon/myApp/list.jsp?user=tompassword=tom

The matcher is:

map:match 
pattern="*.jsp" 
map:act type="request" map:parameter name="parameters" value="true" 
/map:generate type="file" 
src="" 
mime-type="text/xml"/ map:transform 
src=""/ map:serialize type="xhtml"/ 
 /map:act/map:match
Hope this helps someone else!
Nesto!


  - Original Message - 
  From: 
  Jan Harms 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, February 05, 2003 3:29 
  PM
  Subject: AW: matcher of a request
  
  Nesto,
  
  I´m 
  not sure if this works, but try 
  
  /map:match 
  map:match pattern="*.jsp" map:generate type="file" 
  src=""http://anotherHost:8080/theApp/{1}.jsp?user={request:user}password={request:password}">http://anotherHost:8080/theApp/{1}.jsp?user={request:user}password={request:password}" 
  /  map:transform 
  src=""/ 
  map:serialize type="xhtml"//map:match
  
  The 
  {request:yourparam} parts are so called input-modules. 
See:
  
  http://xml.apache.org/cocoon/userdocs/concepts/modules.html
  
  Be 
  careful with the generator type you choose. The JSP generator expects the 
  location of a JSP-File. You are calling a jsp from another server, that means 
  you have to use a generator that matches the *output* of this jsp. I.e if the 
  jsp producesHTML you need the HTML-generator. In your case you need the 
  file-generator since the jsp produces XML.
  
  Hope 
  this helps,
  
  -Jan 
  Harms


Re: matcher of a request

2003-02-06 Thread SAXESS - Hussayn Dabbous
You can make this even more generic:

map:match pattern=*.jsp
  map:act type=request
 map:generate type=file
  src=http://anotherhost:8080/anotherApp{../1}.jsp{requestQuery};
  mime-type=text/xml/
 map:transform src=stylesheets/{../1}.xsl/
 map:serialize type=xhtml/
   /map:act
/map:match

This will simply copy the GET-parameters from your original request ;-)
and i think it's slightly more performant ...
regards, Hussayn

Nesto wrote:

Thank you Jan for your help!!
Finally I wrote a matcher that works fine!
I post it to the group because it could be interesting.
 
I wanted to write a matcher for an URI of this type:
http://myhost.com:8080/cocoon/myApp/list.jsp?user=tompassword=tom 
http://myhost.com:8080/cocoon/myApp/list.jsp?user=tompassword=tom
 
The matcher is:

map:match pattern=*.jsp
  map:act type=request
 map:parameter name=parameters value=true /
 map:generate type=file 
src=http://anotherhost:8080/anotherApp{../1}.jsp?username={username}amp;password={password}; 
mime-type=text/xml/
 map:transform src=stylesheets/{../1}.xsl/
 map:serialize type=xhtml/
   /map:act
/map:match

Hope this helps someone else!

Nesto!

 

- Original Message -
*From:* Jan Harms mailto:[EMAIL PROTECTED]
*To:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, February 05, 2003 3:29 PM
*Subject:* AW: matcher of a request

Nesto,
 
I´m not sure if this works, but try
 
/map:match
   map:match pattern=*.jsp
   map:generate type=file
src=http://anotherHost:8080/theApp/{1}.jsp?user={request:user}password={request:password}
http://anotherHost:8080/theApp/{1}.jsp?user={request:user}password={request:password}
/
   map:transform src={1}.xsl/
   map:serialize type=xhtml/
/map:match
 
The {request:yourparam} parts are so called input-modules. See:
 
http://xml.apache.org/cocoon/userdocs/concepts/modules.html
 
Be careful with the generator type you choose. The JSP generator
expects the location of a JSP-File. You are calling a jsp from
another server, that means you have to use a generator that matches
the *output* of this jsp. I.e if the jsp produces HTML you need the
HTML-generator. In your case you need the file-generator since the
jsp produces XML.
 
Hope this helps,
 
-Jan Harms


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




Configuring Cocoon to run under Apache/Tomcat virtual host?

2003-02-06 Thread Derek Hohls



Hi

I am looking for help with configuring an Apache/Tomcat
setup, trying to support a password-protected Cocoon 
site that must be accessed by a virtual host name.

The UNIX support has tried to set it up (see below), 
but trying to access the site results in an error 302, 
which just repeats over and over in the log file:
111.11.1.1 - - [06/Feb/2003:14:11:00 -0200] "GET /cocoon/myapp/index 
HTTP/1.1" 302 0and of course the site is not accessible.

Any help with this is *much* appreciated; maybe
a small help file can be added to the Wiki.

Thanks
Derek

***

The configuration entry looks as follows:

VirtualHost 111.11.11.2ServerAdmin joe@mydomainServerName 
myapp.csir.co.za:80DocumentRoot 
/usr/local/tomcat/webappsDirectory 
/usr/local/tomcat/webappsAuthType BasicAuthName "myappis a 
restricted area !"AuthUserFile /usr/local/apache/usersRequire 
valid-user/DirectoryRewriteEngine 
onRewriteRule ^/(.*) /cocoon/appdir 
[PT]WebAppConnection appdirConnection warp 
server.host.com:8008WebAppDeploy cocoon appdirConnection 
/cocoon//VirtualHost-- 
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."



How to use LuceneXMLIndexer?

2003-02-06 Thread Peter Klotz
Hi,

first please don't answer with see the search web app in the Cocoon
distribution, I looked at that very thoroughly.
But I'm still not clear what role the LuceneXMLIndexer plays.
Can anybody please give an example?

I think that the build(URL url) method of LuceneXMLIndexer  returns a List
of Document. But the CocoonLuceneIndexer does not take a list of documents
but a directory and there seems not to be a way to construct a directory
from Documents.

So when one has a Cocoon pipeline or maybe already XML files that one
wants to index. Am I right that principally I would create Lucene
Document's from the XML files using the LuceneXMLIndexer and then would
use the LuceneCocoonIndexer to create a index from the these Lucene
Documents.
But how exactly, the API docu is so unclear about this?
And the search webapp only uses LuceneXMLIndexer constants but not the
class itself and strange enough only in the search-index.xsp not the
create-index.xsp?

When I understand the search sample correctly it indexes all HMTL pages of
the Cocoon docu not XML files?

And finally the docu of the SearchGenerator of Cocoon talks about
configuring the component in cocoon.xconf. Has anybody a example?
I see the component in there so do I just globally put a index/index
configuration in there?


Thanks for any help,

Peter



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




change encoding of avalon SAX parser

2003-02-06 Thread Lionel Crine
I 'd like to change the encoding in the header of my file.
How can I do that.

For example with DOM I do :

TransformerFactory tFactory = TransformerFactory.newInstance();	
Transformer transformer = tFactory.newTransformer();	
java.util.Properties properties = transformer.getOutputProperties();
properties.setProperty(OutputKeys.ENCODING,iso-8859-1);
properties.setProperty(OutputKeys.STANDALONE,yes);
transformer.setOutputProperties(properties);


Is it possible to do it with sax parser in avalon ?

Is there a big diagram of avalon components (not htat one on wiki) to see 
the classes, interfaces and methods ...

If yes, I would be easier to me.


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



Training others on Cocoon - suggestions?

2003-02-06 Thread Derek Hohls
Hi
 
I am planning on running a small training session with 
some colleagues, and need to communicate my learning
and insights (!?)  to them in an effective a way as 
possible.
 
Obviously I am planning to make use of all available 
resources (Cocoon website; wiki site; various mailing 
list archive messages + 2 cocoon books) - but I would 
welcome any suggestions on how to structure the sessions 
(eg. order of presenting topics etc). I am planning on 
covering XSLT in the first part, as their skills are 
weak in this field and I believe this is a key topic 
for effective use of Cocoon.

Comments?  Ideas?  Links?!

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]




Re: Training others on Cocoon - suggestions?

2003-02-06 Thread Bertrand Delacretaz
 I am planning on
covering XSLT in the first part, as their skills are
weak in this field and I believe this is a key topic
for effective use of Cocoon.


I don't know your public, but what I've found when mentoring or 
teaching people to use Cocoon is that they are often overwhelmed by the 
many different technologies and skills involved.

IMHO you can do a lot with some XSLT, some sitemap config, some log 
exploration skills, etc. without having to go deep in any of these at 
first.

What my students/colleagues found distracting was using all the 
different components involved without understanding any of them in 
detail (at first).

OTOH I think it's a good idea to start with some XSLT, which can be 
disturbing enough for people to warrant being treated separately from 
Cocoon.

Hope this helps,
Bertrand


-
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: Training others on Cocoon - suggestions?

2003-02-06 Thread Derek Hohls



Thanks Bertrand

I know I always make the mistake of trying to cover
too much! OTOH, when you say your students did not 
cope with "using all the different components involved 
without understanding any of them in detail (at first)."
I smile because thats *exactly* the way I do learn; 
trying things out to see if they work and only worrying
about understanding much later - that way I quickly 
build up a "big picture" without being bogged down.

Derek [EMAIL PROTECTED] 06/02/2003 04:43:39 
 I am planning on covering XSLT in the first 
part, as their skills are weak in this field and I believe this is a key 
topic for effective use of Cocoon.I don't know your public, but 
what I've found when mentoring or teaching people to use Cocoon is that they 
are often overwhelmed by the many different technologies and skills 
involved.IMHO you can do a lot with some XSLT, some sitemap config, some 
log exploration skills, etc. without having to go deep in any of these at 
first.What my students/colleagues found distracting was using all 
the different components involved without understanding any of them in 
detail (at first).OTOH I think it's a good idea to start with some 
XSLT, which can be disturbing enough for people to warrant being treated 
separately from Cocoon.Hope this 
helps,Bertrand-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."



Re: Configuring Cocoon to run under Apache/Tomcat virtual host?

2003-02-06 Thread SAXESS - Hussayn Dabbous
i am running an apache/tomcat/cocoon combination with authentication
driven by tomcat (just setting the correct security-constraints within
the web.xml and adding the right REALM in tomcat/server.xml ...

i did never touch the apache server itself for authentification
issues...

And i'm using form based authentification.

regards, hussayn


Derek Hohls wrote:

Hi
 
I am looking for help with configuring an Apache/Tomcat
setup, trying to support a password-protected Cocoon
site that must be accessed by a virtual host name.
 
The UNIX support has tried to set it up (see below),
but trying to access the site results in an error 302,
which just repeats over and over in the log file:
111.11.1.1 - - [06/Feb/2003:14:11:00 -0200] GET /cocoon/myapp/index 
HTTP/1.1 302 0
and of course the site is not accessible.
 
Any help with this is *much* appreciated; maybe
a small help file can be added to the Wiki.
 
Thanks
Derek
 
***
 
The configuration entry looks as follows:
 
VirtualHost 111.11.11.2

ServerAdmin joe@mydomain mailto:joe@mydomain
ServerName myapp.csir.co.za:80
DocumentRoot /usr/local/tomcat/webapps

Directory /usr/local/tomcat/webapps
AuthType Basic
AuthName myappis a restricted area !
AuthUserFile /usr/local/apache/users
Require valid-user
/Directory

RewriteEngine   on
RewriteRule ^/(.*)  /cocoon/appdir [PT]
WebAppConnection appdirConnection warp server.host.com:8008
WebAppDeploy cocoon appdirConnection /cocoon/

/VirtualHost

--
This message has been scanned for viruses and dangerous content by
*MailScanner* http://www.mailscanner.info/, 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.

--
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: Training others on Cocoon - suggestions?

2003-02-06 Thread Irv Salisbury III
Derek, I tried to send a PDF of the training that we used, but it was 
too large for the list to accept.  (It is 288K)  Send me an email 
directly if you want it.  Here are the topics in it:

1. Basics
   a. Directory Structure
   b. cocoon.xconf
   c. web.xml
   d. sitemap
   e. pipeline basics
   f. built in generators
   g. built in transformers
   h. built in serializers
   i. protocols (cocoon, context, etc)
   j. lab
2. Custom components
   a. Selectors
   b. actions
   c. transformers
   d. generators
   e. avalon interfaces
   f. lab
3. XSP	
   a. basics
   b. advanced
   c. lab

I also have a PDF of our XLST training, but it is too large as well.  I 
can send it to you directly if you want.

Irv

Derek Hohls wrote:
Thanks Bertrand
 
I know I always make the mistake of trying to cover
too much!  OTOH, when you say your students did not
cope with using all the different components involved
without understanding any of them in detail (at first).
I smile because thats *exactly* the way I do learn;
trying things out to see if they work and only worrying
about understanding much later - that way I quickly
build up a big picture without being bogged down.
 
Derek

  [EMAIL PROTECTED] 06/02/2003 04:43:39 
   I am planning on
  covering XSLT in the first part, as their skills are
  weak in this field and I believe this is a key topic
  for effective use of Cocoon.

I don't know your public, but what I've found when mentoring or
teaching people to use Cocoon is that they are often overwhelmed by the
many different technologies and skills involved.

IMHO you can do a lot with some XSLT, some sitemap config, some log
exploration skills, etc. without having to go deep in any of these at
first.

What my students/colleagues found distracting was using all the
different components involved without understanding any of them in
detail (at first).

OTOH I think it's a good idea to start with some XSLT, which can be
disturbing enough for people to warrant being treated separately from
Cocoon.

Hope this helps,
Bertrand


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


--
This message has been scanned for viruses and dangerous content by
MailScanner http://www.mailscanner.info/, 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]




Re: Training others on Cocoon - suggestions?

2003-02-06 Thread Bertrand Delacretaz
...I smile because thats *exactly* the way I do learn;
trying things out to see if they work and only worrying
about understanding much later - that way I quickly
build up a big picture without being bogged down.


Yes, I do the same, but it seems like many junior coworkers or 
students have a hard time with this, they feel unsecure if they don't 
know *everything* ;-)

-Bertrand


-
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: Location of cocoon webapp on server

2003-02-06 Thread Jonathan Patrick Freeman
Hussayn, the samples look really good, I'll check them out this evening. I
realize now that cocoon has more hooks than I original thought. I'd be
interested in (perhaps others) seeing a tutorial on the following URL
example with just Tomcat and Cocoon:

From:
http://localhost:8080/cocoon/myapp/index.html

To:
http://localhost/index.html

Thank you for your help,
Jonathan

And that's good to know about Tomcat 4.1.16++ by the way.

- Original Message -
From: SAXESS - Hussayn Dabbous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 5:16 AM
Subject: Re: Location of cocoon webapp on server


 There is a brand new wiki page on this.

 You may look into it at

 http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerSimpleWebappOrganisation

 It is in the draft state right now, but i would be pleased, if you
 comment on it.

 the page misses one step that is needed for your requirements.
 Howto omitt cocoon from your http request.

 there is some documentation on this withion the official
 cocoon docs.

 in short terms:

 go to tomcat conf/server.xml

 add a Default Context for your app.
 If you use a NEWER version of tomcat, (tomcat-4.1.16++)
 you MUST take out cocoon from the default webapps directory
 and put it somewherre else and define that location
 within the Context. this is very brief answer.
 for more detailed look into the Wiki or the cocoon docs.


 regards, hussayn

 Anna Afonchenko wrote:
  Hi all.
 
  We have our web app under CATALINA_HOME/webapps/cocoon/ub
 
  which can be accessed on the webserver by
  http://domain.name:8080/cocoon/ub/*
 
  However, we want to put the ub directory under /home/cocoon/ub and to
  access it by http://domain.name/ub/*
 
  We can move the directory to /home/cocoon/ub, and therefore not under
  webapps/cocoon and call it by using a sub sitemap with the URL
  http://domain.name:8080/cocoon/ub/*
 
  But how do we lose the :8080/cocoon from the request URL?
 
  We are using apache 1.1 and the latest tomcat and cocoon and the jk1
  bridge between tomcat and apache.  The system is a linux box.
 
  I can modify the workers.properties file so that it mounts
  http://domain.name/ub to tomcat and then put a symbolic link in the
  tomcat web-apps directory to /home/cocoon/ub but this is both an ugly
  and not very stable solution.
 
  Thank you very much for your help
 
  Anna Afonchenko and Spencer Bruce

 --
 Dr. Hussayn Dabbous
 SAXESS Software Design GmbH
 Neuenhofer Allee 125
 50935 Koln
 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]




RE: Training others on Cocoon - suggestions?

2003-02-06 Thread Steve Homer
Would it be possible to have these two pdf's hosted somewhere? Tutorial
material on XSLT and Cocoon would be very useful for me.

Thanks
Steve

-Original Message-
From: Irv Salisbury III [mailto:[EMAIL PROTECTED]] 
Sent: 06 February 2003 15:00
To: [EMAIL PROTECTED]
Subject: Re: Training others on Cocoon - suggestions?


Derek, I tried to send a PDF of the training that we used, but it was 
too large for the list to accept.  (It is 288K)  Send me an email 
directly if you want it.  Here are the topics in it:

1. Basics
a. Directory Structure
b. cocoon.xconf
c. web.xml
d. sitemap
e. pipeline basics
f. built in generators
g. built in transformers
h. built in serializers
i. protocols (cocoon, context, etc)
j. lab
2. Custom components
a. Selectors
b. actions
c. transformers
d. generators
e. avalon interfaces
f. lab
3. XSP  
a. basics
b. advanced
c. lab

I also have a PDF of our XLST training, but it is too large as well.  I 
can send it to you directly if you want.

Irv

Derek Hohls wrote:
 Thanks Bertrand
  
 I know I always make the mistake of trying to cover
 too much!  OTOH, when you say your students did not
 cope with using all the different components involved without 
 understanding any of them in detail (at first). I smile because thats

 *exactly* the way I do learn; trying things out to see if they work 
 and only worrying about understanding much later - that way I quickly
 build up a big picture without being bogged down.
  
 Derek
 
   [EMAIL PROTECTED] 06/02/2003 04:43:39 
I am planning on
   covering XSLT in the first part, as their skills are
   weak in this field and I believe this is a key topic
   for effective use of Cocoon.
 
 I don't know your public, but what I've found when mentoring or 
 teaching people to use Cocoon is that they are often overwhelmed by 
 the many different technologies and skills involved.
 
 IMHO you can do a lot with some XSLT, some sitemap config, some log 
 exploration skills, etc. without having to go deep in any of these at 
 first.
 
 What my students/colleagues found distracting was using all the 
 different components involved without understanding any of them in 
 detail (at first).
 
 OTOH I think it's a good idea to start with some XSLT, which can be 
 disturbing enough for people to warrant being treated separately from 
 Cocoon.
 
 Hope this helps,
 Bertrand
 
 
 -
 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]
 
 
 --
 This message has been scanned for viruses and dangerous content by
 MailScanner http://www.mailscanner.info/, 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]




Re: Location of cocoon webapp on server

2003-02-06 Thread Derek Hohls



And also from

http://localhost:8080/cocoon/myapp/index.html

to

http://myapp.com/index.html
on a "real" Apache/Tomcat server...

Derek
 [EMAIL PROTECTED] 06/02/2003 05:07:08 
Hussayn, the samples look really good, I'll check them out this 
evening. Irealize now that cocoon has more hooks than I original thought. 
I'd beinterested in (perhaps others) seeing a tutorial on the following 
URLexample with just Tomcat and Cocoon:From:http://localhost:8080/cocoon/myapp/index.htmlTo:http://localhost/index.htmlThank 
you for your help,JonathanAnd that's good to know about Tomcat 
4.1.16++ by the way.- Original Message -From: "SAXESS - 
Hussayn Dabbous" [EMAIL PROTECTED]To: 
[EMAIL PROTECTED]Sent: Thursday, February 06, 2003 5:16 
AMSubject: Re: Location of cocoon webapp on server There is 
a brand new wiki page on this. You may look into it 
at http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerSimpleWebappOrganisation 
It is in the draft state right now, but i would be pleased, if you 
comment on it. the page misses one step that is needed for your 
requirements. Howto omitt "cocoon" from your http 
request. there is some documentation on this withion the 
official cocoon docs. in short terms: go 
to tomcat conf/server.xml add a Default Context for your 
app. If you use a NEWER version of tomcat, (tomcat-4.1.16++) you 
MUST take out cocoon from the default webapps directory and put it 
somewherre else and define that location within the Context. this is 
very brief answer. for more detailed look into the Wiki or the cocoon 
docs. regards, hussayn Anna Afonchenko 
wrote:  Hi all.   We have our web app under 
CATALINA_HOME/webapps/cocoon/ub   which can be accessed 
on the webserver by  http://domain.name:8080/cocoon/ub/* 
  However, we want to put the ub directory under /home/cocoon/ub 
and to  access it by http://domain.name/ub/*  
 We can move the directory to /home/cocoon/ub, and therefore not 
under  webapps/cocoon and call it by using a sub sitemap with the 
URL  http://domain.name:8080/cocoon/ub/* 
  But how do we lose the :8080/cocoon from the request 
URL?   We are using apache 1.1 and the latest tomcat and 
cocoon and the jk1  bridge between tomcat and apache. The 
system is a linux box.   I can modify the 
workers.properties file so that it mounts  http://domain.name/ub to tomcat and then put a 
symbolic link in the  tomcat web-apps directory to /home/cocoon/ub 
but this is both an ugly  and not very stable solution. 
  Thank you very much for your help   
Anna Afonchenko and Spencer Bruce -- Dr. Hussayn 
Dabbous SAXESS Software Design GmbH Neuenho"fer Allee 
125 50935 Ko"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 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."



Cocoon Javadoc XML Doclet?

2003-02-06 Thread derisor
Greetings. 

Concerning the cocoon javadoc api, I was currious how this was generated? I like the 
look of that documentation better than the standard Java default. 

In addition, I was wondering if there was a doclet that i could use in javadoc to 
generate javadoc in XML form for later translation into the method of my choice. 

-- Robert Simmons Jr.

Sichern Sie sich jetzt den neuen Otto Katalog mit über 40.000
Artikeln auf über 1.300 Seiten - kostenlos und ganz unverbindlich.
http://www.arcor.de/home/redir.php/email.otto
---


-
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: Training others on Cocoon - suggestions?

2003-02-06 Thread Irv Salisbury III
Our whole training environment here at DOTech is actually based on 
Cocoon.  We write our slides in XML and use Cocoon to transform them 
while training into HTML.  It works great and people love it here.  We 
also use XSL:FO to transform them to PDF for printing.  It is a little 
rough around the edges, but I'll see if I can get the thing hosted on 
our company's website.  As a minimum, I can at least get the PDFs up 
there later.

Irv

Steve Homer wrote:
Would it be possible to have these two pdf's hosted somewhere? Tutorial
material on XSLT and Cocoon would be very useful for me.

Thanks
Steve

-Original Message-
From: Irv Salisbury III [mailto:[EMAIL PROTECTED]] 
Sent: 06 February 2003 15:00
To: [EMAIL PROTECTED]
Subject: Re: Training others on Cocoon - suggestions?


Derek, I tried to send a PDF of the training that we used, but it was 
too large for the list to accept.  (It is 288K)  Send me an email 
directly if you want it.  Here are the topics in it:

1. Basics
a. Directory Structure
b. cocoon.xconf
c. web.xml
d. sitemap
e. pipeline basics
f. built in generators
g. built in transformers
h. built in serializers
i. protocols (cocoon, context, etc)
j. lab
2. Custom components
a. Selectors
b. actions
c. transformers
d. generators
e. avalon interfaces
f. lab
3. XSP	
a. basics
b. advanced
c. lab

I also have a PDF of our XLST training, but it is too large as well.  I 
can send it to you directly if you want.

Irv

Derek Hohls wrote:

Thanks Bertrand

I know I always make the mistake of trying to cover
too much!  OTOH, when you say your students did not
cope with using all the different components involved without 
understanding any of them in detail (at first). I smile because thats



*exactly* the way I do learn; trying things out to see if they work 
and only worrying about understanding much later - that way I quickly
build up a big picture without being bogged down.

Derek

 [EMAIL PROTECTED] 06/02/2003 04:43:39 
  I am planning on
 covering XSLT in the first part, as their skills are
 weak in this field and I believe this is a key topic
 for effective use of Cocoon.

I don't know your public, but what I've found when mentoring or 
teaching people to use Cocoon is that they are often overwhelmed by 
the many different technologies and skills involved.

IMHO you can do a lot with some XSLT, some sitemap config, some log 
exploration skills, etc. without having to go deep in any of these at 
first.

What my students/colleagues found distracting was using all the 
different components involved without understanding any of them in 
detail (at first).

OTOH I think it's a good idea to start with some XSLT, which can be 
disturbing enough for people to warrant being treated separately from 
Cocoon.

Hope this helps,
Bertrand


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


--
This message has been scanned for viruses and dangerous content by
MailScanner http://www.mailscanner.info/, 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]





-
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: XSL FO

2003-02-06 Thread Perry Molendijk
You probably got caught out with an older version of FOP before.
This:

  fo:page-sequence master-name = run1   
xsl:apply-templates/
  /fo:page-sequence

should read:

  fo:page-sequence master-reference = run1   
xsl:apply-templates/
  /fo:page-sequence

Bye,

Perry Molendijk

-
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: Training others on Cocoon - suggestions?

2003-02-06 Thread Steven Noels
Irv Salisbury III wrote:


Derek, I tried to send a PDF of the training that we used, but it was 
too large for the list to accept.  (It is 288K)  Send me an email 
directly if you want it.  Here are the topics in it:

Irv has sent me the PDFs and they are up on the Wiki: 
http://wiki.cocoondev.org/Wiki.jsp?page=Tutorials

Very kind of you, Irv - thanks!

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



Problem with SQL Transformer

2003-02-06 Thread Cedric Claus
Hi,

I have a problem with a pipeline :

map:match pattern=AOS/page1.html
	map:generate src=xml/page1.xml/
	map:transform type=sql/
	map:transform type=xslt src=xsl/SortAndReplace.xsl/
	map:transform type=xslt src=xsl/HAbstract.xsl/
	map:serialize/
/map:match

This pipeline doesn't work : After SQL transformation the sort and 
replace.xsl does wrong. But if I copy the xml result of the SQL 
transform and then apply the same xsl , no problem (with xalan and 
MSXML)


My configuration : cocoon 2.0  - tomcat 4.0.5 - JDK 1.4.03 et xalan 2.3.1

What 's wrong??? Is it in configuration??

thx for response

Ced

page1.xml:

document
	elements
		element position=1 type=title
			textMon titre 1/text
		/element
		element position=2 type=paragraphe
			textc'est beau /text
			sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0;
sql:use-connectiondatabase_connection/sql:use-connection
sql:queryselect data from DataRessources where ( ID_fk_dataDesc=1 
and ID_fk_dataLangue=1 )/sql:query
			/sql:execute-query
		/element
	/elements
/document
___

SortAndReplace.xsl:

xsl:template match=/
	document
		elements
			xsl:apply-templates select=document/elements/
		/elements
	/document
	
/xsl:template


xsl:template match=document/elements
	
	xsl:for-each select=element
	xsl:sort  select=@position/
		element
			xsl:attribute name=type
xsl:value-of select=@type/
			/xsl:attribute
			xsl:attribute name=position
xsl:value-of select=@position/
			/xsl:attribute
			xsl:for-each select=text
	xsl:value-of select=./
	xsl:if test=following-sibling::rowset
		xsl:apply-templates select=following::rowset/row/data/
	/xsl:if

			/xsl:for-each
		/element
	
	/xsl:for-each
/xsl:template

xsl:template match=rowset/row/data
	xsl:value-of select=./
/xsl:template
/xsl:stylesheet




-
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 help! My apache server doesn't start!

2003-02-06 Thread Maxime.Gheysen
Here are my logs from /cocoon/WEB-INF/Logs. I don't find anything
strange in these! But my server don't start!

Thanks for your help!



logs.zip
Description: logs.zip
-
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]


variable i not found in XSP!

2003-02-06 Thread Cyril Vidal
Hi,

Since yesterday, I'm still stuck on the following problem: I can't list the
items contained in a session's attribute of type Vector:
Always the same following error is thrown:
Line 236, column 59:  variable i not found in class
org.apache.cocoon.www.mount.essai.session3_xsp

Below is my code:
?xml version=1.0?

xsp:page

xmlns:xsp=http://apache.org/xsp;

xmlns:xsp-session=http://apache.org/xsp/session/2.0;

xmlns:xsp-request=http://apache.org/xsp/request/2.0;

create-session=true

xsp:structure

xsp:includejava.util.Vector/xsp:include

/xsp:structure

content

xsp:logic

Vector items = (Vector)xsp-session:get-attribute name=cart.items/;

if (items == null) items = new Vector(10,5);

items.add(xsp-request:get-parameter name=item/);

session.setAttribute(cart.items,items);

 the snippet below works fine *


if (!xsp-session:is-new/) {

ul

bThe list of items is:/b xsp-session:get-attribute name=cart.items

default=not set/

/ul

}

*** the snippet below doesn't work :-(( *

if (!xsp-session:is-new/) {

ul

for (int i = 0; i lt; items.size(); i++) {

lixsp:expritems.get(i)/xsp:expr/li

}

/ul

}


/xsp:logic

/content

/xsp:page

SOmeone one can help me, please?

Regards,

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]




Re: Problem with SQL Transformer

2003-02-06 Thread Martin Holz
Cedric Claus [EMAIL PROTECTED] writes:
 This pipeline doesn't work : After SQL transformation the sort and
 replace.xsl does wrong. But if I copy the xml result of the SQL
 transform and then apply the same xsl , no problem (with xalan and
 MSXML)
 
 
 
 My configuration : cocoon 2.0  - tomcat 4.0.5 - JDK 1.4.03 et xalan 2.3.1
 
 What 's wrong??? Is it in configuration??

Your configuration looks okay.

If something goes wrong in pipeline, but works when copying
the intermediate result, this is almost always a namespace
problem. Namespace handling in SAX is sometimes strange
(its even stranger in DOM). 
The information in the namespace argument and 
the localname argument of the method org.sax.ContentHandler.startElement
should be redundant to the qname argument and calls to 
ContentHandler.startPrefixMapping.
But if there is a bug somewhere in the pipeline, this might not be the case. The bug 
might be undetected for a long time, because many components including the Serializer
use only a part of the information. The XMLSerialzer has the tendency to silently
correct a mismatch between the qname and the namespace.

Carsten Ziegler fixed a bug in namespace handling of SQLTransformer at 2002/11/14
cocoon 2.0 is older. Maybe you should try a  newer version of cocoon.


Martin

 



-
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: variable i not found in XSP!

2003-02-06 Thread Christian Haul
On 06.Feb.2003 -- 05:09 PM, Cyril Vidal wrote:
 Hi,
 
 Since yesterday, I'm still stuck on the following problem: I can't list the
 items contained in a session's attribute of type Vector:
 Always the same following error is thrown:
 Line 236, column 59:  variable i not found in class
 org.apache.cocoon.www.mount.essai.session3_xsp
 
 Below is my code:
 ?xml version=1.0?
 
 xsp:page
 
 xmlns:xsp=http://apache.org/xsp;
 
 xmlns:xsp-session=http://apache.org/xsp/session/2.0;
 
 xmlns:xsp-request=http://apache.org/xsp/request/2.0;
 
 create-session=true
 
 xsp:structure
 
 xsp:includejava.util.Vector/xsp:include
 
 /xsp:structure
 
 content
 
 xsp:logic
 
 Vector items = (Vector)xsp-session:get-attribute name=cart.items/;
 
 if (items == null) items = new Vector(10,5);
 
 items.add(xsp-request:get-parameter name=item/);
 
 session.setAttribute(cart.items,items);
 
 if (!xsp-session:is-new/) {
 
 ul

  When nesting logic inside markup inside logic, new xsp:logic tags
  are needed! IOW, you can put markup inside logic without manually
  switching to e.g. text mode. That is done automatically. But once
  you are in text mode, logic needs to be escaped again. HTH.

  xsp:logic

 for (int i = 0; i lt; items.size(); i++) {
 
 lixsp:expritems.get(i)/xsp:expr/li
 
 }

  /xsp:logic

 /ul
 
 }
 
 
 /xsp:logic
 
 /content
 
 /xsp:page

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

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

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




Re: Pipeline, or Resource from transformer

2003-02-06 Thread David Trammell
We are using version 2.0.4.

Brian Johnson wrote:

 Almost forgot, are you using 2.0.x or 2.1? There are some small
 differences in the way the processor is called. I'm pretty sure all the
 Environment classes are the same. I'm currently using 2.1, but I should
 have the classes for 2.0.x in CVS.

 On Wednesday, February 5, 2003, at 06:59  PM, David Trammell wrote:

  Brian,
 
  Thank you for your response!  I would be interested in looking at what
  you
  have.
 
  David
 
  Brian Johnson wrote:
 
  I am working on a transformer that allows you to take XML fragments
  from a pipeline and run them through other pipelines. The transformer
  itself is very specific to my application, but if you're interested,
  you might be able to adapt parts of it to whatever you're doing. It
  creates a new environment and sends it through the processor. As far
  as
  I know, there is no other way to call an external pipeline/resource
  and
  return to the calling pipeline.
  Brian
 
  On Wednesday, February 5, 2003, at 02:17  PM, David Trammell wrote:
 
  Is there anyway to optain a sitemap Pipeline or Resource from a
  transformer?
  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]
 
 
  -
  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]




-
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: Not handle the XML header in the sax parser

2003-02-06 Thread Heiko Milke
Hey there,

well actually i dont recommend doing that but here is a way to do it.

You simple write yourself a documenthandler transmitter or whatever you
call it (i named it FragmentHandler in the Example):P

--
public class FragmentHandler implements ContentHandler {

ContentHandler parent = null;
public FragmentHandler(ContentHandler parent) {
this.parent = parent;
}
}
--


you have to implement ALL memberfunction of the ContentHandler interface
and send all the events to the parent like this.

--
public void characters(char[] ch, int start, int length) throws
SAXException {
parent.characters( ch,  start,  length);
}
--

and in the last step you simply catch the startDocument and endDocument
events and dont tell the parent 


BUT like i said i'd only use it for testing. You never know which
complications you can get into with this =))


Greetings Heiko



Am Don, 2003-02-06 um 11.00 schrieb Lionel Crine:
 I'm using the avalon component sax parser and I parse a string value. but 
 it returns
 the header .
 
 I don't want it because the String value is inline in the document :
 
 here is what I have in my browser :
 
 
 
 ?xml version=1.0 encoding=UTF-8?
 xsp:page xmlns:xsp=http://apache.org/xsp; 
 xmlns:ixia-query=http://www.ixiasoft.com/ixia/query/1.0;
 
 
 ixia-query:document
?xml version=1.0 encoding=UTF-8?
 coucou/
 /ixia-query:document
 
 /xsp:page
 
 How do I not handle the header during the parsing ? 
 
 
 -
 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: Using the results of an aggregate part.

2003-02-06 Thread Hunsberger, Peter
 Now the question raises, how i can gather an xml-fragment,
 put it into some temporary place (ideally in memory) and
 refer to this fragement from another part of the pipeline.

Any reason why you don't trust Cocoon caching to do this for you?  From the
looks of what you've shown us there are no request or client side parameters
going into the fragment generation and it should therefore be possible to
have it always cached once it has been created the first time? 




-
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: variable i not found in XSP!

2003-02-06 Thread Cyril Vidal
Thanks  for your help Chris!
It's working fine now!

Cyril.


 On 06.Feb.2003 -- 05:09 PM, Cyril Vidal wrote:
  Hi,
 
  Since yesterday, I'm still stuck on the following problem: I can't list
the
  items contained in a session's attribute of type Vector:
  Always the same following error is thrown:
  Line 236, column 59:  variable i not found in class
  org.apache.cocoon.www.mount.essai.session3_xsp
 
  Below is my code:
  ?xml version=1.0?
 
  xsp:page
 
  xmlns:xsp=http://apache.org/xsp;
 
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
 
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
 
  create-session=true
 
  xsp:structure
 
  xsp:includejava.util.Vector/xsp:include
 
  /xsp:structure
 
  content
 
  xsp:logic
 
  Vector items = (Vector)xsp-session:get-attribute name=cart.items/;
 
  if (items == null) items = new Vector(10,5);
 
  items.add(xsp-request:get-parameter name=item/);
 
  session.setAttribute(cart.items,items);
 
  if (!xsp-session:is-new/) {
 
  ul

   When nesting logic inside markup inside logic, new xsp:logic tags
   are needed! IOW, you can put markup inside logic without manually
   switching to e.g. text mode. That is done automatically. But once
   you are in text mode, logic needs to be escaped again. HTH.

   xsp:logic

  for (int i = 0; i lt; items.size(); i++) {
 
  lixsp:expritems.get(i)/xsp:expr/li
 
  }

   /xsp:logic

  /ul
 
  }
 
 
  /xsp:logic
 
  /content
 
  /xsp:page

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

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. 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]




Problems with double click in coplet links

2003-02-06 Thread bruno nunes jacinto
I found a problem in Portal-fw, a sample that comes with cocoon. 

When I make double click or  ”lots of clicks” in a coplet link, one of  two things can 
happen: 
  1- I receive a page without some coplets. 
  OR  
  2 –I receive an error page. 

This instability happens frequently, so help me as soon as possible. 

I already tried in cocoon 2.04, cocoon 2.1-dev with tomcat 4.1.12 or 4.1.18, under win 
2000, but the problem still happens. 

Best Regards: 
Bruno Jacinto ( [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]




Problems with double click in coplet links

2003-02-06 Thread bruno nunes jacinto
I found a problem in Portal-fw, a sample that comes with cocoon. 

When I make double click or  ”lots of clicks” in a coplet link, one of  two things can 
happen: 
  1- I receive a page without some coplets. 
  OR  
  2 –I receive an error page. 

This instability happens frequently, so help me as soon as possible. 

I already tried in cocoon 2.04, cocoon 2.1-dev with tomcat 4.1.12 or 4.1.18, under win 
2000, but the problem still happens. 

Best Regards: 
Bruno Jacinto ( [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]




Problems with double click in coplet links

2003-02-06 Thread bruno nunes jacinto
I found a problem in Portal-fw, a sample that comes with cocoon. 

When I make double click or  ”lots of clicks” in a coplet link, one of  two things can 
happen: 
  1- I receive a page without some coplets. 
  OR  
  2 –I receive an error page. 

This instability happens frequently, so help me as soon as possible. 

I already tried in cocoon 2.04, cocoon 2.1-dev with tomcat 4.1.12 or 4.1.18, under win 
2000, but the problem still happens. 

Best Regards: 
Bruno Jacinto ( [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: Not handle the XML header in the sax parser

2003-02-06 Thread Jan Harms
Well, that´s basically what the IncludeXMLConsumer (in package org.apache.cocoon.xml) 
does, doesn´t it? 
It additionally ignores the startDTD() and endDTD() methods.

Regards,

-Jan

 -Ursprüngliche Nachricht-
 Von: Heiko Milke [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Februar 2003 17:34
 An: [EMAIL PROTECTED]
 Betreff: Re: Not handle the XML header in the sax parser
 
 
 Hey there,
 
 well actually i dont recommend doing that but here is a way to do it.
 
 You simple write yourself a documenthandler transmitter or 
 whatever you
 call it (i named it FragmentHandler in the Example):P
 
 --
 public class FragmentHandler implements ContentHandler {
 
 ContentHandler parent = null;
 public FragmentHandler(ContentHandler parent) {
 this.parent = parent;
 }
 }
 --
 
 
 you have to implement ALL memberfunction of the 
 ContentHandler interface
 and send all the events to the parent like this.
 
 --
 public void characters(char[] ch, int start, int length) throws
 SAXException {
   parent.characters( ch,  start,  length);
 }
 --
 
 and in the last step you simply catch the startDocument and 
 endDocument
 events and dont tell the parent 
 
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: AW: Not handle the XML header in the sax parser

2003-02-06 Thread Heiko Milke
Hey Jan

Am Don, 2003-02-06 um 18.03 schrieb Jan Harms:
 Well, that´s basically what the IncludeXMLConsumer (in package 
org.apache.cocoon.xml) does, doesn´t it? 
 It additionally ignores the startDTD() and endDTD() methods.
 
 Regards,
 
 -Jan
 


didnt know :)

Thanks for the hint !
Heiko


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




Using Cocoon and ($tool) to generate static pages.

2003-02-06 Thread Andrea Censi
Which is the best tool to create an offline copy of a cocoon live site?

It should spider through the pages, follow every link and gather both html and 
images/css/pdf. Then it should rearrange internal links from absolute to 
relative (http://site/page; - page.html,  / - index.html).
The result is to be loaded on a low-spec [ = no cocoon :( ] webserver.

I don't consider the batch use from command line to be a viable alternative, 
because:
 - There are different views of single xml files.
 - I don't want to explicitly change the internal URL format used by the site 
(/ ... /page/ with a final slash)
 - (not sure) Would it work with dynamic SVG-gif?

-
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: change encoding of avalon SAX parser

2003-02-06 Thread Oskar Casquero



Try using xsl:output encoding="ISO-8859-1"/ 
after the xml declaration in the stylesheet

Oskar


Session problems

2003-02-06 Thread Roberto Cipollini
Hi.
I have a problem with a jsp page and a cocoon page.

I use jsp to simply check a user/password and if all is right then set some
variables in the session.setAttribute.

I then redirect the user to a cocoon page in wich i should grab the session
variable with some xsp-logic commands buti can't see them!

Ok...all of you are saying What a stupid newbie :). I know, but pls, it's
been a lot of headaches trying to solve this but i still.have headaches.

This is the code inside the jsp page:

check_login.jsp
*

 session.setAttribute( username, theRealUser );
 session.setAttribute( azienda, theRealFirm);

//pfw is my custom file format :)
 response.sendRedirect( /pfw/rv3/setup_env.pfw );

**
cocoon page setup_env.pfw
***

?xml version=1.0?
?cocoon-process type=xsp?
?cocoon-process type=xslt?

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


xsp:structure
xsp:includejava.util.*/xsp:include
 xsp:includejava.io.*/xsp:include
 xsp:includejava.text.*/xsp:include
   xsp:includejavax.*/xsp:include
   xsp:includejavax.*/xsp:include
xsp:includeorg.apache.cocoon.environment.Session/xsp:include
  /xsp:structure

PAGE

 AZIENDA
  xsp-session:get-attribute name=azienda /
 /AZIENDA

UTENTE
xsp-session:get-attribute name=username /
/UTENTE

/PAGE

/xsp:page



the tag AZIENDA and UTENTE are always empty!!!
Can anyone help this stupid problem?

thanks!
R.C.



-
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: Session problems

2003-02-06 Thread Marco Rolappe
hi roberto,

the reason why your elements are empty probably are the following; the
session accessed in your XSP might be different from the JSP's session.
since you redirect without url encoding the redirect url, the session
probably doesn't survive the redirect. now in the XSP you didn't specify the
xsp:page's attribute create-session=false (which is handled by the
session logicsheet), which defaults to true, thus a new session is created
in the XSP.

I don't know if your sessions are cookie or url rewriting based. anyway, you
should be url encoding the redirect url, see inline comments below.

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im
 Auftrag von Roberto Cipollini
 Gesendet: Donnerstag, 6. Februar 2003 18:40
 An: [EMAIL PROTECTED]
 Betreff: Session problems


 Hi.
 I have a problem with a jsp page and a cocoon page.

 I use jsp to simply check a user/password and if all is right
 then set some
 variables in the session.setAttribute.

 I then redirect the user to a cocoon page in wich i should grab
 the session
 variable with some xsp-logic commands buti can't see them!

 Ok...all of you are saying What a stupid newbie :). I know, but
 pls, it's
 been a lot of headaches trying to solve this but i still.have
 headaches.

 This is the code inside the jsp page:
 
 check_login.jsp
 *

  session.setAttribute( username, theRealUser );
  session.setAttribute( azienda, theRealFirm);

 //pfw is my custom file format :)
  response.sendRedirect( /pfw/rv3/setup_env.pfw );

this line should be something like:

  response.sendRedirect(response.encodeRedirectURL
(/pfw/rv3/setup_env.pfw));


 **
 cocoon page setup_env.pfw
 ***

 ?xml version=1.0?
 ?cocoon-process type=xsp?
 ?cocoon-process type=xslt?

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

 xsp:structure
 xsp:includejava.util.*/xsp:include
  xsp:includejava.io.*/xsp:include
  xsp:includejava.text.*/xsp:include
xsp:includejavax.*/xsp:include
xsp:includejavax.*/xsp:include
 xsp:includeorg.apache.cocoon.environment.Session/xsp:include
   /xsp:structure

 PAGE

  AZIENDA
   xsp-session:get-attribute name=azienda /
  /AZIENDA

 UTENTE
 xsp-session:get-attribute name=username /
 /UTENTE

 /PAGE

 /xsp:page


 
 the tag AZIENDA and UTENTE are always empty!!!
 Can anyone help this stupid problem?

 thanks!
 R.C.



 -
 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: cocoon struts together

2003-02-06 Thread Erik Bruchez
All,

There seems to be some confusion about Struts on this mailing-list. As
mentioned in one of the replies, Struts was designed to be an MVC
(Model/View/Controller) framework based on Model 2 (a hybrid
servlet/JSP architecture, as opposed to 100% servlet-based or 100%
jsp-based architectures).

This means that for each Web page, you write an action class (that
implements the MVC model) and a JSP page (that implements the MVC
view). The MVC controller is the configurable Struts controller, that
you usually leave alone. The model and the view can be modified
independently. If you define the interface between model and view
correctly, which comes down to defining what JavaBeans the model sends
to the JSP, you can achieve a very good separation of business logic
and presentation logic. This is what Struts was designed for!

About the business logic: using Struts has nothing to do at all with
whether you use EJB or not. You can implement your business logic
directly in Struts action classes if you want, or delegate to your
business logic components, including session EJBs. Struts, like
Cocoon, is mainly a presentation framework.

About the presentation logic: Struts provides tag libraries that make
it easier to write JSP pages (by the way, a lot of the concepts
present in those tag libraries have made it into JSTL, the JSP
Standard Tag Library, that makes much of the Struts tag libraries
obsolete). But the fact is that you don't have to use JSP with Struts,
you can use an XML-based presentation layer if you want. So yes, it
makes sense to use at least a subset of Cocoon with Struts. You may
want to leave dispatching, form handling, and the interaction with the
business logic to Struts, and use Cocoon to implement flexible XML
pipelines handling the look and feel, multiple device support,
etc. You can even use a combination of both JSP and XML pipelines if
you want. Have the JSP generate bare-bones HTML or XML, plug a Cocoon
generator to parse the JSP output, and off you go.

Why use Struts and Cocoon instead of using 100% Cocoon? Well, whether
you like it or not, many people and companies use Struts. Its feature
set is not too impressive, but the underlying architecture is
conceptually sound. It is often easier to sell to you manager the use
of Struts than the use of Cocoon. Also, you can incrementally add XML
processing to an existing application instead of starting from scratch
with Cocoon.

There is a JavaWorld article about how to combine Struts and XSLT that
you may find interesting:

  http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html

A follow-up to this article will be published on TheServerSide.com
next week. The article even mentions Cocoon, in addition to our own
OXF!

-Erik

[EMAIL PROTECTED] wrote:
 Hi,

 has someone any experiences with the comosition of struts and cocoon?

 I have a middleware on EJB and JCA which connects to some Systems
 like SAP. On this connects a webapplication which should be done
 with with struts. Some areas of this application should be
 transformed by cocoon in different outputs. My idea was to run some
 views with cocoon. A struts action would connect a pipeline from
 cocoon and passe the file which has to be transformed and
 visualized.

 Any suggestions or practices?

 Juraj


-
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: AW: Not handle the XML header in the sax parser

2003-02-06 Thread Jan Harms
Heiko Milke wrote:
 Am Don, 2003-02-06 um 18.03 schrieb Jan Harms:
  Well, that´s basically what the IncludeXMLConsumer (in 
  package org.apache.cocoon.xml) does, doesn´t it? 
  It additionally ignores the startDTD() and endDTD() methods.
  
  Regards,
  
  -Jan
  
 
 
 didnt know :)
 
 Thanks for the hint !
 Heiko
 
Well, I also keep reinventing wheels, you know.   ;-)

Would be nice to have an alarm that goes off every time I implement functionality that 
already exists for free. *That* would really be a useful IDE feature... :-) :-) :-)

Gruß aus Dortmund

-Jan Harms

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




Newbie

2003-02-06 Thread Sean McKaharay
I just started looking at Cocoon and I find the portal piece really nice. I
tried building the src with the correct option but I don't know how to build
and deploy the portal piece. When you run the option and then build it comes
up with 2 jar files. Are they independent files or do they get dropped in the
web-apps directory and explode by themselves?
 
Any help would be great
 
Sean



accessing Environment from a Transformer

2003-02-06 Thread Brian Johnson
Is there any way to access a running Environment from within a 
Transformer in Cocoon 2.1? It appears to be accessible in the 
ObjectModel through the CocoonComponentManager, but after looking over 
the CocoonComponentManager code, I think it's probably not a good idea 
to rely on accessing it that way. Any ideas? Thanks.
Brian


-
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: XSL FO

2003-02-06 Thread J.Pietschmann
Tom Place wrote:

I am new to XSL FO and have been working through some tutorials.


Keep in mind that most of the tutorials have been written
before the XSLFO spec went REC status and have not been updated
to the final spec.


!-- This error is generated by the tomcat window--
java.lang.RuntimeException: Errors in XSLT transformation:
Fatal: org.apache.for.apps.FOPException: 'master-referance' for
'fo:page-sequence matches no 'simple-page-master' or
'page-sequence-master'

...

If anyone can spot the error it would be most appreciated however as I
say this has been copied CLOSELY from a textbook so I'm at a loss


Even recent textbooks have errors. In case of doubt
1. Read the FO spec.
2. Ask on the fop-user list.

It is also recommended to use the FOP CLI for initial development
of the style sheet and deploy to Cocoon only after some debugging.
You'll get better error messages.

J.Pietschmann


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




Clarification please on RequestGenerator

2003-02-06 Thread e nio

  Im trying to understand how to acquire and what is passed on
to cocoon by the RequestGenerator.

Scenario:  http://localhost:8080/cocoon/mount/mypage?logic=7
 sitemap has:  map:generate type=request/

assuming here the default
org.apache.cocoon.generation.RequestGenerator.  What is
generated here? I have a little idea of what is generated but
unsure how to parse it on the stylesheet. I have seen the
stylesheet like:

?xml version=1.0?
xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:req=http://xml.apache.org/cocoon/requestgenerator/2.0;

  xsl:template match=/
page
  incoming-value
xsl:value-of
select=/req:request/req:requestParameters/req:parameter/req:value/
...snip...

WHY the need to qualify select with req: on the xpath?  why it
does not work with just
/request/requestParameters/parameter/value  ? I looked at the
intermediate xml generated and the element tags does not have
req: in front.

Also there is an element on the intermediate xml
configurationParameters,  where is this coming from? It has
blank body right now but wanted to know where it came from and
what would normally be put on it or what can be inserted on it?

Regards,
e nio



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




Consultants in San Diego, CA Area

2003-02-06 Thread Chris Dietz

I am interested in talking to any consultants who live
around San Diego, CA  USA

I am working with cocoon and looking for
others doing the same.

If so, send me an e-mail

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




xsp:include

2003-02-06 Thread Tom Place








Apologies for the simplicity of this request however I can
find any documentation on this.



How do I include an XSP document at a fixed point in
another?



I think its got something to do with xsp:include however Im not sure . . 



Cheers



Tom Place












cocoon portal on Resin

2003-02-06 Thread Sean McKaharay
I am trying to get cocoon portal to work with Resin I am getting the
following error when I try to log-in:
 
java.lang.IllegalStateException: can't clear response after writing headers

 
You can go to http://www.atlantalinklist.com/cocoon2/sunspotdemoportal to see
the error. Just log in and see.
Does anyone have a fix for it?
 
Sean
 
 



Re: Pipeline, or Resource from transformer

2003-02-06 Thread Brian Johnson
I sent the code to David and Upayavira. It consists of about half a  
dozen classes, so I didn't post it all to the list. If people are  
interested, I'd be happy to submit it somewhere (cocoondev maybe?).  
It's a work in progress, but I'm actively using it in my applications  
and it works quite well.
Brian

On Thursday, February 6, 2003, at 11:28  AM, David Trammell wrote:

We are using version 2.0.4.

Brian Johnson wrote:


Almost forgot, are you using 2.0.x or 2.1? There are some small
differences in the way the processor is called. I'm pretty sure all  
the
Environment classes are the same. I'm currently using 2.1, but I  
should
have the classes for 2.0.x in CVS.

On Wednesday, February 5, 2003, at 06:59  PM, David Trammell wrote:

Brian,

Thank you for your response!  I would be interested in looking at  
what
you
have.

David

Brian Johnson wrote:

I am working on a transformer that allows you to take XML fragments
from a pipeline and run them through other pipelines. The  
transformer
itself is very specific to my application, but if you're interested,
you might be able to adapt parts of it to whatever you're doing. It
creates a new environment and sends it through the processor. As far
as
I know, there is no other way to call an external pipeline/resource
and
return to the calling pipeline.
Brian

On Wednesday, February 5, 2003, at 02:17  PM, David Trammell wrote:

Is there anyway to optain a sitemap Pipeline or Resource from a
transformer?
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]


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





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




Link Livesites: Pomagamy w Angielskim (polish/english)

2003-02-06 Thread Maciek Kaminski
Site with materials helping to learn English and promote humanitarian
values, developed by volunteers of Polish Humanitarian Organization.

Site address: www.angielski.pomagamy.pl

Maciek Kaminski



-
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: Session problems

2003-02-06 Thread SAXESS - Hussayn Dabbous
hy,

i would like to understand, in which context your servlet is running.
Is it located within the cocoon webapp, or is it located elsewhere?

from the redirect url i guess you are crossing webapplications ...

If this is the case, you have another problem with session preserving
over multiple webapps. there are solutions to this, but this is far
from trivial...

If your servlet runs in the same context as cocoon, then i can't see
at the moment, why you loose your session. from the standard
behaviour of a servlet container i would expect, that once a session
is created within one context, this session is kept. I dont think,
that xsp will always create new sessions. if create-session=true
I would expect, it creates a session, if none is existing, but once a
session is created it should be keep living for subsequent requests...

After having saying this, i bet you cross webapp boundaries ...

regards, hussayn

Marco Rolappe wrote:

 hi roberto,

 the reason why your elements are empty probably are the following; the
 session accessed in your XSP might be different from the JSP's session.
 since you redirect without url encoding the redirect url, the session
 probably doesn't survive the redirect. now in the XSP you didn't specify the
 xsp:page's attribute create-session=false (which is handled by the
 session logicsheet), which defaults to true, thus a new session is created
 in the XSP.

 I don't know if your sessions are cookie or url rewriting based. anyway, you
 should be url encoding the redirect url, see inline comments below.

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]Im
  Auftrag von Roberto Cipollini
  Gesendet: Donnerstag, 6. Februar 2003 18:40
  An: [EMAIL PROTECTED]
  Betreff: Session problems
 
 
  Hi.
  I have a problem with a jsp page and a cocoon page.
 
  I use jsp to simply check a user/password and if all is right
  then set some
  variables in the session.setAttribute.
 
  I then redirect the user to a cocoon page in wich i should grab
  the session
  variable with some xsp-logic commands buti can't see them!
 
  Ok...all of you are saying What a stupid newbie :). I know, but
  pls, it's
  been a lot of headaches trying to solve this but i still.have
  headaches.
 
  This is the code inside the jsp page:
  
  check_login.jsp
  *
 
   session.setAttribute( username, theRealUser );
   session.setAttribute( azienda, theRealFirm);
 
  //pfw is my custom file format :)
   response.sendRedirect( /pfw/rv3/setup_env.pfw );

 this line should be something like:

   response.sendRedirect(response.encodeRedirectURL
 (/pfw/rv3/setup_env.pfw));

 
  **
  cocoon page setup_env.pfw
  ***
 
  ?xml version=1.0?
  ?cocoon-process type=xsp?
  ?cocoon-process type=xslt?
 
  xsp:page language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-session=http://apache.org/xsp/session/2.0;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  
 
  xsp:structure
  xsp:includejava.util.*/xsp:include
   xsp:includejava.io.*/xsp:include
   xsp:includejava.text.*/xsp:include
 xsp:includejavax.*/xsp:include
 xsp:includejavax.*/xsp:include
  xsp:includeorg.apache.cocoon.environment.Session/xsp:include
/xsp:structure
 
  PAGE
 
   AZIENDA
xsp-session:get-attribute name=azienda /
   /AZIENDA
 
  UTENTE
  xsp-session:get-attribute name=username /
  /UTENTE
 
  /PAGE
 
  /xsp:page
 
 
  
  the tag AZIENDA and UTENTE are always empty!!!
  Can anyone help this stupid problem?
 
  thanks!
  R.C.
 
 
 
  -
  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
D-50935 Köln
tel.:+49 221 56011 0
fax.:+49 221-56011 20
email:[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: Newbie

2003-02-06 Thread SAXESS - Hussayn Dabbous
You may look at the following place to get the portal running.

http://www.saxess.com/JSPWiki/Wiki.jsp?page=Install

in fact this page doesnt tell explicitly how the portal is comnpiled, this
jaust happens under the hood. so just follow the cookbook and
your done (im speeking for cocoon-2.0.4 only, no idea about the HEAD version)

hussayn

Sean McKaharay wrote:

 I just started looking at Cocoon and I find the portal piece really nice. I
 tried building the src with the correct option but I don't know how to build
 and deploy the portal piece. When you run the option and then build it comes
 up with 2 jar files. Are they independent files or do they get dropped in the
 web-apps directory and explode by themselves?

 Any help would be great

 Sean

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
D-50935 Köln
tel.:+49 221 56011 0
fax.:+49 221-56011 20
email:[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: Pipeline, or Resource from transformer

2003-02-06 Thread Brian Johnson
I sent the code to David and Upayavira. It consists of about half a  
dozen classes, so I didn't post it all to the list. If people are  
interested, I'd be happy to submit it somewhere (cocoondev maybe?).  
It's a work in progress, but I'm actively using it in my applications  
and it works quite well.
Brian

On Thursday, February 6, 2003, at 11:28  AM, David Trammell wrote:

We are using version 2.0.4.

Brian Johnson wrote:


Almost forgot, are you using 2.0.x or 2.1? There are some small
differences in the way the processor is called. I'm pretty sure all  
the
Environment classes are the same. I'm currently using 2.1, but I  
should
have the classes for 2.0.x in CVS.

On Wednesday, February 5, 2003, at 06:59  PM, David Trammell wrote:

Brian,

Thank you for your response!  I would be interested in looking at  
what
you
have.

David

Brian Johnson wrote:

I am working on a transformer that allows you to take XML fragments
from a pipeline and run them through other pipelines. The  
transformer
itself is very specific to my application, but if you're interested,
you might be able to adapt parts of it to whatever you're doing. It
creates a new environment and sends it through the processor. As far
as
I know, there is no other way to call an external pipeline/resource
and
return to the calling pipeline.
Brian

On Wednesday, February 5, 2003, at 02:17  PM, David Trammell wrote:

Is there anyway to optain a sitemap Pipeline or Resource from a
transformer?
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]


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





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




Antw: Using Cocoon and ($tool) to generate static pages.

2003-02-06 Thread Martin Geissler
I think Forrest will do the job?

 [EMAIL PROTECTED] Donnerstag, 6. Februar 2003 18:07:02

Which is the best tool to create an offline copy of a cocoon live
site?

It should spider through the pages, follow every link and gather both
html and 
images/css/pdf. Then it should rearrange internal links from absolute
to 
relative (http://site/page; - page.html,  / - index.html).
The result is to be loaded on a low-spec [ = no cocoon :( ] webserver.

I don't consider the batch use from command line to be a viable
alternative, 
because:
 - There are different views of single xml files.
 - I don't want to explicitly change the internal URL format used by
the site 
(/ ... /page/ with a final slash)
 - (not sure) Would it work with dynamic SVG-gif?

-
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: Possible threading issues with xsltc + BCEL ???

2003-02-06 Thread Vadim Gritsenko
Michael Melhem wrote:


Hi Cocooners,

Are their any other Cocoon users having Threading Issues with xsltc?

Its seems that if you have a translat being compiled at the same time by two 
or more threads (instances of TraxTransformer) you will get issues because 
BCEL is not (by design) threadsafe as it users static methods and 
variables which seem to be overwriting each other???

Once the Translets get compiled however, such threading issues disappear.

Does anyone have expirence with this?

Regards,
Michael Melhem

Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java
with some synch code around the compile block, all seems OK.
 


Can you notify Xalan guys about this issue? Or may be sent'em a patch?


Vadim



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




[OT] The Cocoon Drinking Game

2003-02-06 Thread Tony Collen
The Cocoon Drinking Game

Take a drink when you first realize how much Cocoon rules.

Whenever someone asks about a stripped-down sitemap, take a drink.

Take a drink when a Cocoon get-together is organized overseas, and you can't fly 
across the ocean to go.

Whenever someone flames Cocoon for being too complex, take two drinks.

If someone insists Cocoon isn't ready for primetime, take five drinks.

Whenever someone asks if Cocoon supports XML, take three drinks.

Take a drink when you realize the power of the Flowscript.

Drink twice when you realize all the work you just put into Cocoon has already been 
done by Forrest.


There's probably tons more I'm missing :)

Tony


-
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: help with presentation wanted

2003-02-06 Thread Steven Noels
Argyn wrote:


Thank you, all for suggestions!

I forgot to mention the event I'm preparing to speak at. It's
egovos.org on March in Washington, DC. If someone's planning to
attend let's have a drink :)


for the curious amongst us:
http://www.egovos.org/march-2003/cfp-review.cgi?id=5

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




Possible threading issues with xsltc + BCEL ???

2003-02-06 Thread Michael Melhem
Hi Cocooners,

Are their any other Cocoon users having Threading Issues with xsltc?

Its seems that if you have a translat being compiled at the same time by two 
or more threads (instances of TraxTransformer) you will get issues because 
BCEL is not (by design) threadsafe as it users static methods and 
variables which seem to be overwriting each other???

Once the Translets get compiled however, such threading issues disappear.

Does anyone have expirence with this?

Regards,
Michael Melhem

Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java
with some synch code around the compile block, all seems OK.




-
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: Possible threading issues with xsltc + BCEL ???

2003-02-06 Thread Andy Lewis

I've hit this - it only happens when compiling the stylesheet though. Concurrent 
requests right at
startup do not do wel...I had no workaround...but that would be a GOOD THING to have 
fixed...
 Hi Cocooners,

 Are their any other Cocoon users having Threading Issues with xsltc?

 Its seems that if you have a translat being compiled at the same time by two  or 
more threads
 (instances of TraxTransformer) you will get issues because  BCEL is not (by design) 
threadsafe
 as it users static methods and  variables which seem to be overwriting each other???

 Once the Translets get compiled however, such threading issues disappear.

 Does anyone have expirence with this?

 Regards,
 Michael Melhem

 Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java with 
some synch
 code around the compile block, all seems OK.




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


-- 
The heights of genius are only measurable by the depths of stupidity.



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