RE: Too much java in xsp

2003-02-13 Thread Lionel Crine
OK, why not writing a generator.

But how can I get the values from the form to my generator?
With the xsp generator it was easy, I only had to use :xsp:request 
get-parameter ...




At 12:31 12/02/2003 -0500, you wrote:

Well, Robert's suggestion is a good one and I've already written a 
tutorial about
that 
(http://xml.apache.org/cocoon/tutorial/tutorial-generator.htmlhttp://xml.apache.org/cocoon/tutorial/tutorial-generator.html) 


But if that seems out of reach, you can use something like:
xsp:page
xsp:structure
xsp:includeyourpackage.*/xsp:include
/xsp:structure
...

to include any java class in your xsp and use it like you would anywhere 
else:
yourpackage.YourHelper.doSomethingComplicated(object);
or whatever.  In the end, your xsp winds up as a java file (a Generator) so
you can do whatever can be done in java from within an xsp (except 
inheritance??)
including code encapsulation.

See 
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html#java-logicsheetshttp://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html#java-logicsheets 

for some specific things to look out for when doing that - the doc is 
aimed at
logicsheet development, but applies to this as well.

Some of the logicsheets do this as well, and would make good examples, 
though they are
slightly more complicated because they introduce one layer of abstraction 
from an xsp.

Geoff


 -Original Message-
 From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 12:03 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Too much java in xsp


 Please, can you give me more information (hints) about the
 helper Geoff ?


 -
 Please check that your question  has not already been answered in the
 FAQ before 
posting. 
http://xml.apache.org/cocoon/faq/index.htmlhttp://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: sample web-app too complex?

2003-02-13 Thread Guido Casper
 - in sitemap.xmap I'd like to reference
 the cocoon/samples/stylesheets/... relative
 or absolute to server root rather than have the local
 copy in the styles directory.
 
 Is that possible ?

map:transform src=context://samples/stylesheets/xy.xsl/

HTH
Guido

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




CSVGenerator

2003-02-13 Thread Xavier RODRIGUEZ

Hi!

Does anybody knows about a cocoon Generator for csv files working with
cocoon 2.0.4 ??

Thanks


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




newbies : problem with sitemap.xmap

2003-02-13 Thread arnaud
hi

i got a problem with cocoon 2
i would like to serve static page

so i write sitemap.xmap like this


-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components
map:generators
  map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator/
/map:generators


map:serializers
  map:serializer name=xml mime-type=text/xml
src=org.apache.cocoon.serialization.XMLSerializer/
/map:serializers

map:matchers
  map:matcher name=wildcard
src=org.apache.cocoon.matching.WildcardURIMatcher/
/map:matchers



/map:components

map:pipelines


map:pipeline
 map:match pattern=index.html
map:read src=index.html mime-type=text/html/
 /map:match
  /map:pipeline


/map:pipelines

/map:sitemap






but it doesnt work

in browser i always obtaint this message









Cocoon 2 - Internal server error




type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class
org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not
define method process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:360)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.cocoon.components.language.LanguageException: Error
compiling sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:207)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:417)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:353)
... 3 more
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:207)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:417)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:353)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)


request-uri

/cocoonsamples/index.html

path-info

index.html





i dont understand



Re: Requirements for Hosting

2003-02-13 Thread Steven Noels
Guenther Schmidt wrote:


However I've got no Java know how so I don't know if it is enough to find a 
hosting service that merely provides a Java Servlet engine (like Tomcat) and 
install Cocoon yourself or if you need Cocoon preinstalled.

No affiliation except being a happy customer: http://www.aoindustries.com/

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


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

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




Re: newbies : problem with sitemap.xmap

2003-02-13 Thread Lionel Crine
you need a reader :

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


in the components

see the sitemaAt 09:55 13/02/2003 +0100, you wrote:
hi

i got a problem with cocoon 2
i would like to serve static page

so i write sitemap.xmap like this


-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components
map:generators
  map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator/
/map:generators


map:serializers
  map:serializer name=xml mime-type=text/xml
src=org.apache.cocoon.serialization.XMLSerializer/
/map:serializers

map:matchers
  map:matcher name=wildcard
src=org.apache.cocoon.matching.WildcardURIMatcher/
/map:matchers



/map:components

map:pipelines


map:pipeline
 map:match pattern=index.html
map:read src=index.html mime-type=text/html/
 /map:match
  /map:pipeline


/map:pipelines

/map:sitemap






but it doesnt work

in browser i always obtaint this message









Cocoon 2 - Internal server error




type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class
org.apache.cocoon.www.sitemap_xmap should be declared abstract; it does not
define method process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:360)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.cocoon.components.language.LanguageException: Error
compiling sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:207)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:417)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:353)
... 3 more
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(
JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag
e.load(CompiledProgrammingLanguage.java:207)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat
eResource(ProgramGeneratorImpl.java:417)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:353)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:312)
at 

RE: newbies : problem with sitemap.xmap

2003-02-13 Thread arnaud
i had it in sitemap.xmap

but it doesnt work

in catalina stdout i obtaint this

--

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem
ap.x
sl; Line 1817; Column 34;
[Logicsheet processor] Attribute 'type' missing in dynamic
tag 
map:match

Fatal: Ach?vement dirigU de la feuille de style


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

-

and exactely the same message in browser


 -Message d'origine-
 De : Lionel Crine [mailto:[EMAIL PROTECTED]]
 Envoye : jeudi 13 fevrier 2003 10:01
 A : [EMAIL PROTECTED]
 Objet : Re: newbies : problem with sitemap.xmap


 you need a reader :

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


 in the components

 see the sitemaAt 09:55 13/02/2003 +0100, you wrote:
 hi
 
 i got a problem with cocoon 2
 i would like to serve static page
 
 so i write sitemap.xmap like this
 
 
 -
 map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
map:components
  map:generators
map:generator name=serverpages
 src=org.apache.cocoon.generation.ServerPagesGenerator/
 /map:generators
 
 
 map:serializers
map:serializer name=xml mime-type=text/xml
 src=org.apache.cocoon.serialization.XMLSerializer/
 /map:serializers
 
 map:matchers
map:matcher name=wildcard
 src=org.apache.cocoon.matching.WildcardURIMatcher/
 /map:matchers
 
 
 
 /map:components
 
 map:pipelines
 
 
 map:pipeline
   map:match pattern=index.html
  map:read src=index.html mime-type=text/html/
   /map:match
/map:pipeline
 
 
 /map:pipelines
 
 /map:sitemap
 
 
 
 
 
 
 but it doesnt work
 
 in browser i always obtaint this message
 
 
 
 
 
 
 
 
 
 Cocoon 2 - Internal server error
 
 -
 ---
 
 
 type fatal
 
 message Language Exception
 
 description org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class
 org.apache.cocoon.www.sitemap_xmap should be declared abstract;
 it does not
 define method process(org.apache.cocoon.environment.Environment,
 org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline) in class
 org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 stack-trace
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 sitemap_xmap:
 Line 241, column 54:  '}' expected
 Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
 declared abstract; it does not define method
 process(org.apache.cocoon.environment.Environment,
 org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline) in class
 org.apache.cocoon.sitemap.AbstractSitemap
 Line 0, column 0:
 2 errors
 
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorI
 mpl.createR
 esource(ProgramGeneratorImpl.java:360)
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorI
 mpl.load(Pr
 ogramGeneratorImpl.java:312)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
  at java.lang.Thread.run(Thread.java:536)
 Caused by: org.apache.cocoon.components.language.LanguageException: Error
 compiling sitemap_xmap:
 Line 241, column 54:  '}' expected
 Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
 declared abstract; it does not define method
 process(org.apache.cocoon.environment.Environment,
 org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline) in class
 org.apache.cocoon.sitemap.AbstractSitemap
 Line 0, column 0:
 2 errors
 
  at
 org.apache.cocoon.components.language.programming.java.JavaLangua
 ge.compile(
 JavaLanguage.java:243)
  at
 org.apache.cocoon.components.language.programming.CompiledProgram
 mingLanguag
 e.load(CompiledProgrammingLanguage.java:207)
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorI
 mpl.generat
 eResource(ProgramGeneratorImpl.java:417)
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorI
 

Re: Jumping within sitemap?

2003-02-13 Thread Guido Casper

 I'm wondering if it's possible to jump from one place
 in the sitemap to another.  I made up the following
 code, but it's basically what I'm aiming to do:

Have a look at map:redirect-to
By default it redirects the browser, but used in conjunction with the cocoon
pseudo protocol like:

map:match pattern=a
map:redirect-to uri=cocoon:/b/
/map:match

 it performs an internal forward

HTH
Guido


-
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: newbies : problem with sitemap.xmap

2003-02-13 Thread Lionel Crine
in my sitemap i write that :



map:generator name=html 
src=org.apache.cocoon.generation.HTMLGenerator/

...
map:match pattern=html
  map:generate type=html src=test.html/
  map:serialize/
/map:match

It's working fine ..
The reader is used for the css, jpg, etc 

Hope that help

At 10:09 13/02/2003 +0100, you wrote:
i had it in sitemap.xmap

but it doesnt work

in catalina stdout i obtaint this

--

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem
ap.x
sl; Line 1817; Column 34;
[Logicsheet processor] Attribute 'type' missing in dynamic
tag 
map:match

Fatal: Ach?vement dirigU de la feuille de style


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

-

and exactely the same message in browser


 -Message d'origine-
 De : Lionel Crine [mailto:[EMAIL PROTECTED]]
 Envoye : jeudi 13 fevrier 2003 10:01
 A : [EMAIL PROTECTED]
 Objet : Re: newbies : problem with sitemap.xmap


 you need a reader :

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


 in the components

 see the sitemaAt 09:55 13/02/2003 +0100, you wrote:
 hi
 
 i got a problem with cocoon 2
 i would like to serve static page
 
 so i write sitemap.xmap like this
 
 
 -
 map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
map:components
  map:generators
map:generator name=serverpages
 src=org.apache.cocoon.generation.ServerPagesGenerator/
 /map:generators
 
 
 map:serializers
map:serializer name=xml mime-type=text/xml
 src=org.apache.cocoon.serialization.XMLSerializer/
 /map:serializers
 
 map:matchers
map:matcher name=wildcard
 src=org.apache.cocoon.matching.WildcardURIMatcher/
 /map:matchers
 
 
 
 /map:components
 
 map:pipelines
 
 
 map:pipeline
   map:match pattern=index.html
  map:read src=index.html mime-type=text/html/
   /map:match
/map:pipeline
 
 
 /map:pipelines
 
 /map:sitemap
 
 
 
 
 
 
 but it doesnt work
 
 in browser i always obtaint this message
 
 
 
 
 
 
 
 
 
 Cocoon 2 - Internal server error
 
 -
 ---
 
 
 type fatal
 
 message Language Exception
 
 description org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class
 org.apache.cocoon.www.sitemap_xmap should be declared abstract;
 it does not
 define method process(org.apache.cocoon.environment.Environment,
 org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline) in class
 org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors
 
 sender org.apache.cocoon.servlet.CocoonServlet
 
 source Cocoon servlet
 
 stack-trace
 
 org.apache.cocoon.ProcessingException: Language Exception:
 org.apache.cocoon.components.language.LanguageException: Error compiling
 sitemap_xmap:
 Line 241, column 54:  '}' expected
 Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
 declared abstract; it does not define method
 process(org.apache.cocoon.environment.Environment,
 org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline) in class
 org.apache.cocoon.sitemap.AbstractSitemap
 Line 0, column 0:
 2 errors
 
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorI
 mpl.createR
 esource(ProgramGeneratorImpl.java:360)
  at
 org.apache.cocoon.components.language.generator.ProgramGeneratorI
 mpl.load(Pr
 ogramGeneratorImpl.java:312)
  at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
  at java.lang.Thread.run(Thread.java:536)
 Caused by: org.apache.cocoon.components.language.LanguageException: Error
 compiling sitemap_xmap:
 Line 241, column 54:  '}' expected
 Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
 declared abstract; it does not define method
 process(org.apache.cocoon.environment.Environment,
 org.apache.cocoon.components.pipeline.StreamPipeline,
 org.apache.cocoon.components.pipeline.EventPipeline) in class
 org.apache.cocoon.sitemap.AbstractSitemap
 Line 0, column 0:
 2 errors
 
  at
 org.apache.cocoon.components.language.programming.java.JavaLangua
 ge.compile(
 

Re: newbies : problem with sitemap.xmap

2003-02-13 Thread SAXESS - Hussayn Dabbous
You can make your life very easy by simply adding this to the
beginning of your sitemap:

+ begin of sitemap -
?xml version=1.0?
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

  map:components
map:generators   default=file/
map:transformers default=xslt/
map:readers  default=resource/
map:serializers  default=html/
map:matchers default=wildcard/
  /map:components

  !-- now your own stuff as you expressed it in your email ... --
+ end of sitemap ---

By this you get all comoponents from $rootsitemap ready
at hand in your subsitemap. Dont bother with component
definitions until you really need to express something
different from the rootsitemap ;-)

regards, hussayn




Lionel Crine wrote:

you need a reader :

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


in the components

see the sitemaAt 09:55 13/02/2003 +0100, you wrote:

hi

i got a problem with cocoon 2
i would like to serve static page

so i write sitemap.xmap like this


-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components
map:generators
  map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator/
/map:generators


map:serializers
  map:serializer name=xml mime-type=text/xml
src=org.apache.cocoon.serialization.XMLSerializer/
/map:serializers

map:matchers
  map:matcher name=wildcard
src=org.apache.cocoon.matching.WildcardURIMatcher/
/map:matchers



/map:components

map:pipelines


map:pipeline
 map:match pattern=index.html
map:read src=index.html mime-type=text/html/
 /map:match
  /map:pipeline


/map:pipelines

/map:sitemap






but it doesnt work

in browser i always obtaint this message









Cocoon 2 - Internal server error

 



type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap: Line 241, column 54: '}' expected Line 63, column 11: class
org.apache.cocoon.www.sitemap_xmap should be declared abstract; it 
does not
define method process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR 

esource(ProgramGeneratorImpl.java:360)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr 

ogramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)
Caused by: org.apache.cocoon.components.language.LanguageException: Error
compiling sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,
org.apache.cocoon.components.pipeline.StreamPipeline,
org.apache.cocoon.components.pipeline.EventPipeline) in class
org.apache.cocoon.sitemap.AbstractSitemap
Line 0, column 0:
2 errors

at
org.apache.cocoon.components.language.programming.java.JavaLanguage.compile( 

JavaLanguage.java:243)
at
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguag 

e.load(CompiledProgrammingLanguage.java:207)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat 

eResource(ProgramGeneratorImpl.java:417)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR 

esource(ProgramGeneratorImpl.java:353)
... 3 more
org.apache.cocoon.components.language.LanguageException: Error compiling
sitemap_xmap:
Line 241, column 54:  '}' expected
Line 63, column 11:  class org.apache.cocoon.www.sitemap_xmap should be
declared abstract; it does not define method
process(org.apache.cocoon.environment.Environment,

Special character problem in requests

2003-02-13 Thread Xavier RODRIGUEZ
I have a problem with special characters in the requests! Characters
such as 'é' are not interpreted properly ...
Have you any idea ??

Thanks

This is my XSP:
...
 String typeMvt=request.getParameter(TypeMvt).trim(); (this
string as the good value)
String urlPDF=query_search_byFile.pdf?TypeMvt=+typeMvt;
...
 forkEdition des fiches de positions
xsp:attribute
name=hrefxsp:exprurlPDF/xsp:expr/xsp:attribute (the href is not
properly interpreted)
/forkbr/
...

My sitemap:

 map:serializer mime-type=text/html name=html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingISO-8859-1/encoding
 /map:serializer



-
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: Too much java in xsp

2003-02-13 Thread Lionel Crine
I'll write a generator.
FInally it's a good idea.

Thanks for the advices.

At 09:29 13/02/2003 +0100, you wrote:

OK, why not writing a generator.

But how can I get the values from the form to my generator?
With the xsp generator it was easy, I only had to use :xsp:request 
get-parameter ...




At 12:31 12/02/2003 -0500, you wrote:

Well, Robert's suggestion is a good one and I've already written a 
tutorial about
that 
(http://xml.apache.org/cocoon/tutorial/tutorial-generator.htmlhttp://xml.apache.org/cocoon/tutorial/tutorial-generator.html) 


But if that seems out of reach, you can use something like:
xsp:page
xsp:structure
xsp:includeyourpackage.*/xsp:include
/xsp:structure
...

to include any java class in your xsp and use it like you would anywhere 
else:
yourpackage.YourHelper.doSomethingComplicated(object);
or whatever.  In the end, your xsp winds up as a java file (a Generator) so
you can do whatever can be done in java from within an xsp (except 
inheritance??)
including code encapsulation.

See 
http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html#java-logicsheetshttp://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html#java-logicsheets 

for some specific things to look out for when doing that - the doc is 
aimed at
logicsheet development, but applies to this as well.

Some of the logicsheets do this as well, and would make good examples, 
though they are
slightly more complicated because they introduce one layer of abstraction 
from an xsp.

Geoff


 -Original Message-
 From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 12:03 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Too much java in xsp


 Please, can you give me more information (hints) about the
 helper Geoff ?


 -
 Please check that your question  has not already been answered in the
 FAQ before posting. 
http://xml.apache.org/cocoon/faq/index.htmlhttp://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: newbies : problem with sitemap.xmap

2003-02-13 Thread arnaud
i dont understand (im thinking im stupid)
it doesnt work too

(im using tomcat 4.1.12, jdk sun 1.4.1, cocoon 2.0.4)

i make a lot of changes (thanks lionel  hussayn) but
i got always the same message in tomcat stdout



Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem
ap.xsl;
Line 1817; Column 34;
[Logicsheet processor] Attribute 'type' missing in dynamic tag map:match

Fatal: Ach?vement dirigU de la feuille de style


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


last sitemap.xmap

-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components
   map:components
 map:generators   default=file/
 map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/

 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components


  /map:components

  map:pipelines


map:pipeline
  map:match pattern=index.html
map:generate type=html src=index.html/
map:serialize/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap
-
 -Message d'origine-
 De : Lionel Crine [mailto:[EMAIL PROTECTED]]
 Envoye : jeudi 13 fevrier 2003 10:21
 A : [EMAIL PROTECTED]
 Objet : RE: newbies : problem with sitemap.xmap


 in my sitemap i write that :



  map:generator name=html
 src=org.apache.cocoon.generation.HTMLGenerator/

 ...
  map:match pattern=html
map:generate type=html src=test.html/
map:serialize/
  /map:match

 It's working fine ..
 The reader is used for the css, jpg, etc 

 Hope that help

 At 10:09 13/02/2003 +0100, you wrote:
 i had it in sitemap.xmap
 
 but it doesnt work
 
 in catalina stdout i obtaint this
 
 --
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.12-LE-jdk14
 java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
 Warning: File
 jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
 n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap
 /java/sitem
 ap.x
 sl; Line 1817; Column 34;
  [Logicsheet processor] Attribute 'type' missing
 in dynamic
 tag 
 map:match
 
 Fatal: Ach?vement dirigU de la feuille de style
 
 
  at
 org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
 :3170)
  at java.lang.Thread.run(Thread.java:536)
 
 -
 
 and exactely the same message in browser
 
 
   -Message d'origine-
   De : Lionel Crine [mailto:[EMAIL PROTECTED]]
   Envoye : jeudi 13 fevrier 2003 10:01
   A : [EMAIL PROTECTED]
   Objet : Re: newbies : problem with sitemap.xmap
  
  
   you need a reader :
  
   map:readers default=resource
map:reader logger=sitemap.reader.resource name=resource
   pool-max=32 src=org.apache.cocoon.reading.ResourceReader/
   /map:readers
  
  
   in the components
  
   see the sitemaAt 09:55 13/02/2003 +0100, you wrote:
   hi
   
   i got a problem with cocoon 2
   i would like to serve static page
   
   so i write sitemap.xmap like this
   
   
   -
   map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components
map:generators
  map:generator name=serverpages
   src=org.apache.cocoon.generation.ServerPagesGenerator/
   /map:generators
   
   
   map:serializers
  map:serializer name=xml mime-type=text/xml
   src=org.apache.cocoon.serialization.XMLSerializer/
   /map:serializers
   
   map:matchers
  map:matcher name=wildcard
   src=org.apache.cocoon.matching.WildcardURIMatcher/
   /map:matchers
   
   
   
   /map:components
   
   map:pipelines
   
   
   map:pipeline
 map:match pattern=index.html
map:read src=index.html mime-type=text/html/
 /map:match
  /map:pipeline
   
   
   /map:pipelines
   
   /map:sitemap
   
   
   
   
   
   
   but it doesnt work
   
   in browser i always obtaint this message
   
   
   
   
   
   
   
   
   
   Cocoon 2 - Internal server error
   
   -
   ---
   
   
   type fatal
   
   message Language Exception
   
   description org.apache.cocoon.ProcessingException: Language
 Exception:
   org.apache.cocoon.components.language.LanguageException:
 Error compiling
   sitemap_xmap: Line 241, column 54: '}' expected Line 63,
 

Re: newbies : problem with sitemap.xmap

2003-02-13 Thread SAXESS - Hussayn Dabbous
you have an error in you components def. try this
I assume, your index.html contains html (not xml) right ?

map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

   map:components
 map:generators   default=file/
 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components

  map:pipelines

map:pipeline
   map:match pattern=index.html
 map:read src=index.html/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap



or try this, if your index-file has xml code in it:
i propose then, you rename the file index.html to index.xml
to be explicit:



map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

   map:components
 map:generators   default=file/
 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components

  map:pipelines

map:pipeline
   map:match pattern=index.html== you ask for this
 map:generate src=index.xml/   == but you process this ;-)
 map:serialize/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap



===
or make it explicit (best practice):



map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

   map:components
 map:generators   default=file/
 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components

  map:pipelines

map:pipeline
   map:match pattern=index.html
 map:generate type=file src=index.xml/
 map:serialize type=html /
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap


regards, hussayn


arnaud wrote:

i dont understand (im thinking im stupid)
it doesnt work too

(im using tomcat 4.1.12, jdk sun 1.4.1, cocoon 2.0.4)

i make a lot of changes (thanks lionel  hussayn) but
i got always the same message in tomcat stdout



Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem
ap.xsl;
Line 1817; Column 34;
[Logicsheet processor] Attribute 'type' missing in dynamic tag map:match

Fatal: Ach?vement dirigU de la feuille de style


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


last sitemap.xmap

-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components
   map:components
 map:generators   default=file/
 map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/

 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components


  /map:components

  map:pipelines


map:pipeline
  map:match pattern=index.html
map:generate type=html src=index.html/
map:serialize/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap
-


-Message d'origine-
De : Lionel Crine [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 13 fevrier 2003 10:21
A : [EMAIL PROTECTED]
Objet : RE: newbies : problem with sitemap.xmap


in my sitemap i write that :



map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/

...
map:match pattern=html
  map:generate type=html src=test.html/
  map:serialize/
/map:match

It's working fine ..
The reader is used for the css, jpg, etc 

Hope that help

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


i had it in sitemap.xmap

but it doesnt work

in catalina stdout i obtaint this

--

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap


/java/sitem


ap.x
sl; Line 1817; Column 34;
   [Logicsheet processor] Attribute 'type' missing


in dynamic


tag 
map:match

Fatal: Ach?vement dirigU de la feuille de style


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

-

and exactely the same message in browser




-Message d'origine-
De : Lionel Crine [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 13 fevrier 2003 

Re: sample web-app too complex?

2003-02-13 Thread Guido Casper
 - Right now I use an ant task to build a .jar which
 then gets (manually) put in cocoon/WEB-INF/lib

 Is there a way to make this local or reference
 it more self contained from sitemap.xmap ?

 Ideally with a map:action src= something
 relative.

 Is that possible ?

 - Right now I add the xindice.jar to the lib
 of cocoon/WEB-INF.

 Is there a way instead to
 manage the classpath directly from the
 sitemap.xmap in the local directory ?

Or in short; how do I make the above a more 'modular' and stand alone
example. Pointers to the right place in the documentation appreciated.

This is currently not possible (as far as java code is concerned).
You have to wait for Cocoon 2.2 or until the notorious block concept is
implemented.
http://wiki.cocoondev.org/Wiki.jsp?page=Blocks

HTH
Guido


-
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: newbies : problem with sitemap.xmap

2003-02-13 Thread Lionel Crine



Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem
ap.xsl;
Line 1817; Column 34;
[Logicsheet processor] Attribute 'type' missing in dynamic tag map:match

Fatal: Ach?vement dirigU de la feuille de style


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


last sitemap.xmap

-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components





ONE COMPONENTS IS ENOUGHT remove this on -  map:components





 map:generators   default=file/
 map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/

 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components







AND THIS ONE - /map:components





  map:pipelines


map:pipeline
  map:match pattern=index.html
map:generate type=html src=index.html/
map:serialize/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap



Moreover you should declare explicitly what you're using.
Like that for the generator :  map:generator name=html 
src=org.apache.cocoon.generation.HTMLGenerator/
the transformers ...
etc 

this synthax is allowed in sub sitemap...I'm not quite sure you can write 
it in the main sitemap.
/*/
map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
/*/

Have a look at the sitemap.xmap in webapps/cocoon/.
If you're doing a sub sitemap you should declare it in the main sitemap.

As for as I am concern, I made a copy of the directory cocoon (called for 
example cocoon-dev), remove what I didn't want and wrote a new sitemap.xconf.

Lionel


-
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: newbies : problem with sitemap.xmap

2003-02-13 Thread Bertram
Hi arnaud
please look at the generators it is closed before the generator
it mut be like this:
map:generators default=file
	map:generator name=html 
src=org.apache.cocoon.generation.HTMLGenerator/
/map:generators

Klaus
arnaud wrote:
i dont understand (im thinking im stupid)
it doesnt work too

(im using tomcat 4.1.12, jdk sun 1.4.1, cocoon 2.0.4)

i make a lot of changes (thanks lionel  hussayn) but
i got always the same message in tomcat stdout



Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap/java/sitem
ap.xsl;
Line 1817; Column 34;
[Logicsheet processor] Attribute 'type' missing in dynamic tag map:match

Fatal: Ach?vement dirigU de la feuille de style


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


last sitemap.xmap

-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
  map:components
   map:components
 map:generators   default=file/
 map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/

 map:transformers default=xslt/
 map:readers  default=resource/
 map:serializers  default=html/
 map:matchers default=wildcard/
   /map:components


  /map:components

  map:pipelines


map:pipeline
  map:match pattern=index.html
map:generate type=html src=index.html/
map:serialize/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap
-


-Message d'origine-
De : Lionel Crine [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 13 fevrier 2003 10:21
A : [EMAIL PROTECTED]
Objet : RE: newbies : problem with sitemap.xmap


in my sitemap i write that :



map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/

...
map:match pattern=html
  map:generate type=html src=test.html/
  map:serialize/
/map:match

It's working fine ..
The reader is used for the css, jpg, etc 

Hope that help

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


i had it in sitemap.xmap

but it doesnt work

in catalina stdout i obtaint this

--

Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
java.lang.RuntimeException: Fatal: Errors in XSLT transformation:
Warning: File
jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo
n-2.0.4.jar!/org/apache/cocoon/components/language/markup/sitemap


/java/sitem


ap.x
sl; Line 1817; Column 34;
   [Logicsheet processor] Attribute 'type' missing


in dynamic


tag 
map:match

Fatal: Ach?vement dirigU de la feuille de style


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

-

and exactely the same message in browser




-Message d'origine-
De : Lionel Crine [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 13 fevrier 2003 10:01
A : [EMAIL PROTECTED]
Objet : Re: newbies : problem with sitemap.xmap


you need a reader :

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


in the components

see the sitemaAt 09:55 13/02/2003 +0100, you wrote:


hi

i got a problem with cocoon 2
i would like to serve static page

so i write sitemap.xmap like this


-
map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
 map:components
   map:generators
 map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator/
/map:generators


map:serializers
 map:serializer name=xml mime-type=text/xml
src=org.apache.cocoon.serialization.XMLSerializer/
/map:serializers

map:matchers
 map:matcher name=wildcard
src=org.apache.cocoon.matching.WildcardURIMatcher/
/map:matchers



/map:components

map:pipelines


map:pipeline
map:match pattern=index.html
   map:read src=index.html mime-type=text/html/
/map:match
 /map:pipeline


/map:pipelines

/map:sitemap






but it doesnt work

in browser i always obtaint this message









Cocoon 2 - Internal server error

-


---




type fatal

message Language Exception

description org.apache.cocoon.ProcessingException: Language


Exception:


org.apache.cocoon.components.language.LanguageException:


Error compiling


sitemap_xmap: Line 241, column 54: '}' expected Line 63,


column 11: class


org.apache.cocoon.www.sitemap_xmap should be declared abstract;


it does not



Re: Writing Request to File System

2003-02-13 Thread Jeremy Quinn

On Wednesday, February 12, 2003, at 09:01 PM, 
[EMAIL PROTECTED] wrote:


I'm not sure that this will solve my problem with write-source.  
Nothing
is getting written to my file and I get the following message on the
browser the src attribute could not be resolved and failed to cancel.

I appreciate the tip, I'll run the response though another stylesheet 
and
display that to the user.  Um, maybe the src attribute could not be
resolved and failed to cancel is my response from the
SourceWritingTransformer.

indeed it is



Does that response from SourceWritingTransformer make any sense to you?


It is saying primarily that it could not resolve the 'src'. ie. it 
could not work out from the source path you gave it, where to write. I 
cannot remember what the 'failed to cancel' bit means.

Be very careful what whitespace appears in your usage of SWT, 
particularly in the source:fragment tag.

Look at the example stylesheet 
'cocoon/samples/editor/stylesheets/editor2writer.xsl', notice how no 
whitespace is added to either source:source or source:fragment, notice 
how your stylesheet does have whitespace in these tags. This may be a 
cause of problems.

regards Jeremy


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

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



question about cocoon object

2003-02-13 Thread Lionel Crine
/* I'm reading the code located in the requestgenerator */


 public void generate()
throws SAXException {
Request request = ObjectModelHelper.getRequest(objectModel);

	this.contentHandler.startDocument(); === this method comes from 
AbstractXMLProducer
	/*** Add xmlns ***/
	/*this.contentHandler.startPrefixMapping(,URI);*/
AttributesImpl attr=new AttributesImpl();

this.attribute(attr,target, request.getRequestURI());  === this 
method comes from AbstractServerPage




My questions are :

In this.attribute, this reference which object ?
How can a class (requestgenerator) can use object from an abstract class at 
the same level ?


Maybe my question are silly, but I like knowing what I'm reading and using.


Lionel


-
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: Too much java in xsp

2003-02-13 Thread Geoff Howard
Title: RE: Too much java in xsp 






From your other message sounds like you figured it out, but request parameters are handled in the tutorial I sent a link to.

Geoff


 -Original Message-

 From: Lionel Crine [mailto:[EMAIL PROTECTED]]

 Sent: Thursday, February 13, 2003 3:30 AM

 To: [EMAIL PROTECTED]

 Subject: RE: Too much java in xsp 

 

 

 OK, why not writing a generator.

 

 But how can I get the values from the form to my generator?

 With the xsp generator it was easy, I only had to use :xsp:request 

 get-parameter ...

 

 

 

 

 At 12:31 12/02/2003 -0500, you wrote:

 

 Well, Robert's suggestion is a good one and I've already written a 

 tutorial about

 that 

 (http://xml.apache.org/cocoon/tutorial/tutorial-generator.ht

 mlhttp://xml.apache.org/cocoon/tutorial/tutorial-generator.html) 

 

 

 But if that seems out of reach, you can use something like:

 xsp:page

 xsp:structure

 xsp:includeyourpackage.*/xsp:include

 /xsp:structure

 ...

 

 to include any java class in your xsp and use it like you 

 would anywhere 

 else:

 yourpackage.YourHelper.doSomethingComplicated(object);

 or whatever. In the end, your xsp winds up as a java file 

 (a Generator) so

 you can do whatever can be done in java from within an xsp (except 

 inheritance??)

 including code encapsulation.

 

 See 

 http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concept

 s.html#java-logicsheetshttp://xml.apache.org/cocoon/userdocs/

 xsp/logicsheet-concepts.html#java-logicsheets 

 

 for some specific things to look out for when doing that - 

 the doc is 

 aimed at

 logicsheet development, but applies to this as well.

 

 Some of the logicsheets do this as well, and would make good 

 examples, 

 though they are

 slightly more complicated because they introduce one layer 

 of abstraction 

 from an xsp.

 

 Geoff

 

 

   -Original Message-

   From: Lionel Crine 

 [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]

   Sent: Wednesday, February 12, 2003 12:03 PM

   To: [EMAIL PROTECTED]

   Subject: RE: Too much java in xsp

  

  

   Please, can you give me more information (hints) about the

   helper Geoff ?

  

  

   

 -

   Please check that your question has not already been 

 answered in the

   FAQ before 

  posting. 

  

 http://xml.apache.org/cocoon/faq/index.htmlhttp://xml.apach

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






ldap transformer with add, delete, update

2003-02-13 Thread Ingolf Koch
Hi,

does anybody know if there is an ldap transformer which is able to add,
delete, and update the ldap directory?

Thanks,

Ingolf

-
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: Too much java in xsp

2003-02-13 Thread Lionel Crine
II figured it out.

It was a stupid question from 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]




RE: newbies : problem with sitemap.xmap

2003-02-13 Thread Geoff Howard
Title: RE: newbies : problem with sitemap.xmap






 Starting service Tomcat-Standalone

 Apache Tomcat/4.1.12-LE-jdk14

 java.lang.RuntimeException: Fatal: Errors in XSLT transformation:

 Warning: File

 jar:file:/C:/etango/tomcat/webapps/cocoonsamples/WEB-INF/lib/cocoo

 n-2.0.4.jar!/org/apache/cocoon/components/language/markup/site

 map/java/sitem

 ap.xsl;

 Line 1817; Column 34;

 [Logicsheet processor] Attribute 'type' missing in dynamic 

 tag map:match

 

This particular error happens because you didn't define a default value on map:matchers ... AND you didn't specifiy a type on map:match. Fix one or both and this error will go away (though it seems you have several overlapping problems). If you haven't fixed this yet, write back with a specific error.

Geoff





RE: ldap transformer with add, delete, update

2003-02-13 Thread Matthew Langham
Ingolf

 does anybody know if there is an ldap transformer which is able to add,
 delete, and update the ldap directory?

We have one as part of some commercial Cocoon add-on stuff we have. Contact
me if you would be interested in more details.

Matthew

--
Open Source Group   Cocoon { Consulting, Training, Projects }
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
Weblogs:
  http://radio.weblogs.com/0103021/
  http://www.oreillynet.com/weblogs/author/1014
=



-
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: question about cocoon object

2003-02-13 Thread Geoff Howard
Title: RE: question about cocoon object






Maybe I don't understand your question, but this in java refers to the current instance of the class itself. So this refers to the current RequestGenerator object. And this.attribute refers to a method defined somewhere in the class itself or in one of the classes this generator inherits from. You note (partially correctly) that this.contentHandler is inherited from AbstractXMLProducer, but startDocument() is in the contentHandler class, not AbstractXMLProducer. 

Don't know offhand where attribute() is inherited from, but it shouldn't take long to find out - the java docs will tell you where it came from.

Geoff


 -Original Message-

 From: Lionel Crine [mailto:[EMAIL PROTECTED]]

 Sent: Thursday, February 13, 2003 8:23 AM

 To: [EMAIL PROTECTED]

 Subject: question about cocoon object

 

 

 /* I'm reading the code located in the requestgenerator */

 

 

 public void generate()

 throws SAXException {

 Request request = ObjectModelHelper.getRequest(objectModel);

 

  this.contentHandler.startDocument(); === this method 

 comes from 

 AbstractXMLProducer

  /*** Add xmlns ***/

  /*this.contentHandler.startPrefixMapping(,URI);*/

 AttributesImpl attr=new AttributesImpl();

 

 this.attribute(attr,target, 

 request.getRequestURI()); === this 

 method comes from AbstractServerPage

 

 

 

 

 My questions are :

 

 In this.attribute, this reference which object ?

 How can a class (requestgenerator) can use object from an 

 abstract class at 

 the same level ?

 

 

 Maybe my question are silly, but I like knowing what I'm 

 reading and using.

 

 

 Lionel

 

 

 -

 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]

 

 

 





IE not displaying static PDF files properly?

2003-02-13 Thread Derek Hohls



I am not sure what the source of this error is,
but instead of static PDF files served by Cocoon
being processed and displayed by the Adobe plug-in, 
I get the 'raw' data.

The relevant portion of the site map is:

map:match pattern="mng/archive/*.pdf" 
map:read src="" 
mime-type="text/pdf"//map:match 

Any suggestions on how to "make it work"?

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



RE: question about cocoon object

2003-02-13 Thread Lionel Crine
Yes, stardocuments comes from contenthandler.

Another question : where does data method comes from ?
I know that I only have to look at the javadocs, but after long time I 
didn't find where this method comes from.

Also, I'm a little bit surprise about the source of attribute method. 
Where is the link between AbstractServerPage and RequestGenerator ?



At 08:50 13/02/2003 -0500, you wrote:

Maybe I don't understand your question, but this in java refers to the 
current instance of the class itself.  So this refers to the current 
RequestGenerator object.  And this.attribute refers to a method defined 
somewhere in the class itself or in one of the classes this generator 
inherits from.  You note (partially correctly) that this.contentHandler is 
inherited from AbstractXMLProducer, but startDocument() is in the 
contentHandler class, not AbstractXMLProducer.

Don't know offhand where attribute() is inherited from, but it shouldn't 
take long to find out - the java docs will tell you where it came from.

Geoff

 -Original Message-
 From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 8:23 AM
 To: [EMAIL PROTECTED]
 Subject: question about cocoon object


 /* I'm reading the code located in the requestgenerator */


   public void generate()
  throws SAXException {
  Request request = ObjectModelHelper.getRequest(objectModel);

   this.contentHandler.startDocument(); === this method
 comes from
 AbstractXMLProducer
   /*** Add xmlns ***/
   /*this.contentHandler.startPrefixMapping(,URI);*/
  AttributesImpl attr=new AttributesImpl();

  this.attribute(attr,target,
 request.getRequestURI());  === this
 method comes from AbstractServerPage


 

 My questions are :

 In this.attribute, this reference which object ?
 How can a class (requestgenerator) can use object from an
 abstract class at
 the same level ?


 Maybe my question are silly, but I like knowing what I'm
 reading and using.


 Lionel


 -
 Please check that your question  has not already been answered in the
 FAQ before 
posting. 
http://xml.apache.org/cocoon/faq/index.htmlhttp://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: IE not displaying static PDF files properly?

2003-02-13 Thread Andrew Timberlake
Derek

I believe the mime type is incorrect and should be application/pdf
instead of text/pdf

Andrew

On Thu, 2003-02-13 at 15:48, Derek Hohls wrote:
 I am not sure what the source of this error is,
 but instead of static PDF files served by Cocoon
 being processed and displayed by the Adobe plug-in, 
 I get the 'raw' data.
  
 The relevant portion of the site map is:
  
 map:match pattern=mng/archive/*.pdf
 map:read src=protected/archive/{1}.pdf mime-type=text/pdf/
 /map:match 
  
 Any suggestions on how to make it work?
  
 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.
-- 
Andrew

I have never let my schooling interfere with my education.
--Mark Twain


-
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: question about cocoon object

2003-02-13 Thread Lionel Crine
I found my answers!!




At 08:50 13/02/2003 -0500, you wrote:


Maybe I don't understand your question, but this in java refers to the 
current instance of the class itself.  So this refers to the current 
RequestGenerator object.  And this.attribute refers to a method defined 
somewhere in the class itself or in one of the classes this generator 
inherits from.  You note (partially correctly) that this.contentHandler is 
inherited from AbstractXMLProducer, but startDocument() is in the 
contentHandler class, not AbstractXMLProducer.

Don't know offhand where attribute() is inherited from, but it shouldn't 
take long to find out - the java docs will tell you where it came from.

Geoff

 -Original Message-
 From: Lionel Crine [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 8:23 AM
 To: [EMAIL PROTECTED]
 Subject: question about cocoon object


 /* I'm reading the code located in the requestgenerator */


   public void generate()
  throws SAXException {
  Request request = ObjectModelHelper.getRequest(objectModel);

   this.contentHandler.startDocument(); === this method
 comes from
 AbstractXMLProducer
   /*** Add xmlns ***/
   /*this.contentHandler.startPrefixMapping(,URI);*/
  AttributesImpl attr=new AttributesImpl();

  this.attribute(attr,target,
 request.getRequestURI());  === this
 method comes from AbstractServerPage


 

 My questions are :

 In this.attribute, this reference which object ?
 How can a class (requestgenerator) can use object from an
 abstract class at
 the same level ?


 Maybe my question are silly, but I like knowing what I'm
 reading and using.


 Lionel


 -
 Please check that your question  has not already been answered in the
 FAQ before 
posting. 
http://xml.apache.org/cocoon/faq/index.htmlhttp://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: Semantic linking (Re: Cinclude issues...)

2003-02-13 Thread Ben Young
Hey Jeff,

I've got cocoon-2.1 CVS up and running. I'm getting ready to play with
some of the LinkRewriter stuff. I think the semantic linking will be a
huge help in certain areas of our site. I'm glad I can continue to use
the old relative linking too.

I'm still trying to figure out the cleanest way to implement all these
features into the site map. We're at a place in our site development
where what we do now will affect our predicessors positively or
negatively for a good time to come.

Since I can't bank that those who come after will be visionaries I
have to try and get things in place that make since and work well by
themselves. The less of a learning curve there is the better. I'm sure
you understand. 8o)

I love the concepts of the semantic web and I want to get as close to it
as possible. Currently, though, I'm surrounded with a trillion options
and trying to dig through to what exactly it is that I need to do next
in order to get there. asideIt seems to be a long sentence day.
8o)/aside

Thanks for listening to my rant. 8o) I'll probably post some RT's in the
future about some of what I've been thinking.

I don't know that there was a call to action in any of that, but any
thoughts you (or anyone else) may have would be *greatly* appreciated.

Thanks,
Ben

 Jeff Turner [EMAIL PROTECTED] 02/11/03 21:19 PM 
On Tue, Feb 11, 2003 at 03:22:53PM -0500, Ben Young wrote:
 Ok, Jeff. I've been pondering this site.xml thing all day.

Btw, the LinkRewriterTransformer is currently only in 2.1.  Although as
the InputModules it depends on are also in 2.0.4, it could be ported
fairly easily.

 asideBTW, thanks for the upgrade suggestion. 8o)/aside I have a
 couple questions about semantic linking that maybe you can field.
 
 I don't want to give up the old linking method just yet, but I would
 like to use semantic linking for certain scenarios. Is this posible
 with the linkmap implementation?

Yes, it's not an either/or choice.  If a link happens to start with
'site:' (or somesuch prefix) it will be translated.  Pretty much any XML
format can be used, by changing the XPath prefix and suffix.

 In order to manage the 7,000+ pages I would definitely need the
 XInclude ability. Would that be very hard to add?

Just a matter of adding map:tansform type=xinclude/ to the pipeline.

Though, the XInclude transformer isn't very good.  XPointer support is
dodgy ('/site/samples' doesn't work, but '/site/samples/*' does), and
there is no support for the xmlns() scheme, meaning if your XML uses
namespaces like Forrest's site.xml, you have to use
*[local-name()='foo'].  You might be better off using XML entities;.

 How hard is it to set up one's own link schemas?

Requires defining a few input modules in cocoon.xconf and the sitemap.
See CVS Cocoon's linkrewriter block
(http://localhost:8080/cocoon/samples/linkrewriter/).  Actually, wait
for
me to commit a fix for the bookdemo sample..

--Jeff

 Thanks for all your help, Jeff. This look a lot more promising and
full
 featured then the way I was headed.
... 


-
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: anyone interested in a cocoon-users meeting in Köln/germany ?

2003-02-13 Thread Juergen Bartsch
Momentan nicht sehr aktiv mit Cocoon,

wuerde aber gerne kommen..

mfg

Juergen Bartsch
Bartschconsult GbR


- Original Message -
From: Martin Stricker [EMAIL PROTECTED]
To: SAXESS - Hussayn Dabbous [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 2:42 PM
Subject: Re: anyone interested in a cocoon-users meeting in Köln/germany ?


  If there is interest, i could organise something in Köln.
  (maybe not as nice a place as some of you offered in this list ;-) )
  Just send me a note (possibly include a proposal for an agenda ... )

 I might be interested (but I currently don't actively use cocoon, and my
 time is *very limited*.

 Best regards,
 Martin Stricker

 --
 Homepage: http://www.martin-stricker.de/
 Webmaster-Forum: http://www.masterportal24.com/cgi-bin/YaBB.cgi
 Registered Linux user #210635: http://counter.li.org/

 +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
 NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


 -
 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: Semantic linking (Re: Cinclude issues...)

2003-02-13 Thread Jeff Turner
On Thu, Feb 13, 2003 at 09:09:21AM -0500, Ben Young wrote:
 Hey Jeff,
 
 I've got cocoon-2.1 CVS up and running. I'm getting ready to play with
 some of the LinkRewriter stuff. I think the semantic linking will be a
 huge help in certain areas of our site. I'm glad I can continue to use
 the old relative linking too.

Actually, indirect linking is a better name than semantic.
Effectively, you're linking to an XPath node in an intermediate doc,
rather than a specific location.

 I'm still trying to figure out the cleanest way to implement all these
 features into the site map. We're at a place in our site development
 where what we do now will affect our predicessors positively or
 negatively for a good time to come.

I suppose KISS is the best approach then.  For a first iteration, it
might be best to forget about site: linking and concentrate on the menus.
It can be added later very easily, and be made to accommodate whatever
XML format you choose.

Here is a diff of the sitemap changes made in Forrest, to use site.xml
for both 'site:' linking and menu (book.xml) generation:

http://cvs.apache.org/viewcvs.cgi/xml-forrest/src/resources/conf/sitemap.xmap.diff?r1=1.45r2=1.45.2.1diff_format=h

 Since I can't bank that those who come after will be visionaries I
 have to try and get things in place that make since and work well by
 themselves. The less of a learning curve there is the better. I'm sure
 you understand. 8o)

Oo.. one thing to consider when managing big URI spaces: what happens
when they change?  Do the old URLs just break when a page reshuffle is
required?  I have a vague plan on how to solve this (mark obsolete pages
and generate redirects) in Forrest.

 I love the concepts of the semantic web and I want to get as close to it
 as possible. Currently, though, I'm surrounded with a trillion options
 and trying to dig through to what exactly it is that I need to do next
 in order to get there. asideIt seems to be a long sentence day.
 8o)/aside

:) Well sounds like many of the issues are similar to Forrest's.  Feel
free to mail me offlist about specific stuff.


--Jeff

 Thanks for listening to my rant. 8o) I'll probably post some RT's in the
 future about some of what I've been thinking.
 
 I don't know that there was a call to action in any of that, but any
 thoughts you (or anyone else) may have would be *greatly* appreciated.
 
 Thanks,
 Ben
...

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

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




RE: newbies : problem with sitemap.xmap

2003-02-13 Thread arnaud
ok now its work

just one problem

when i request http://localhost:8080/cocoonsamples/staticpages/index.html
i obtain this error in browser (nothing in tomcat stdout)

--
Cocoon 2 - Resource not found

type resource-not-found

message Resource not found

description The requested URI /cocoonsamples/staticpages/index.html was
not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoonsamples/staticpages/index.html

path-info

staticpages/index.html

--




but index.html exist in staticpages directory


cocoonsamples +
  |
  +- staticpages
  |
  +- WEB-INF +
 |
 +- classes



any idea ?




--

map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

map:components

  map:generators
map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/
  /map:generators

  map:transformers default=xslt/

  map:serializers  default=html/

  map:matchers
map:matcher name=referer-match
src=org.apache.cocoon.matching.WildcardHeaderMatcher/
  /map:matchers

/map:components

   map:pipelines

 map:pipeline
   map:match type=referer-match pattern=staticpages/*.html
   map:generate type=html src=staticpages/{1}.html/
   map:serialize/
   /map:match
 /map:pipeline

   /map:pipelines

/map:sitemap







-
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: newbies : problem with sitemap.xmap

2003-02-13 Thread SAXESS - Hussayn Dabbous
hmm.

what's the name of your cocoon webapplication ?
is it cocoonsamples ?
or do you have a subdirectory named cocoonsamples
in your cocoon webapp ?

in the latter case try:

http://localhost:8080/cocoon/cocoonsamples/staticpages/index.html

dont like cocoon in your URL ? then look at

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

regards, hussayn


arnaud wrote:

ok now its work

just one problem

when i request http://localhost:8080/cocoonsamples/staticpages/index.html
i obtain this error in browser (nothing in tomcat stdout)

--
Cocoon 2 - Resource not found

type resource-not-found

message Resource not found

description The requested URI /cocoonsamples/staticpages/index.html was
not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoonsamples/staticpages/index.html

path-info

staticpages/index.html

--




but index.html exist in staticpages directory


cocoonsamples +
  |
  +- staticpages
  |
  +- WEB-INF +
 |
 +- classes



any idea ?




--

map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

map:components

  map:generators
map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/
  /map:generators

  map:transformers default=xslt/

  map:serializers  default=html/

  map:matchers
map:matcher name=referer-match
src=org.apache.cocoon.matching.WildcardHeaderMatcher/
  /map:matchers

/map:components

   map:pipelines

 map:pipeline
   map:match type=referer-match pattern=staticpages/*.html
   map:generate type=html src=staticpages/{1}.html/
   map:serialize/
   /map:match
 /map:pipeline

   /map:pipelines

/map:sitemap







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




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

2003-02-13 Thread Halgurt



I am trying to run DELI, but I get this error 
below, can anyone help me please?
Description:org.apache.cocoon.ProcessingException: Could not 
read resource 
file:/C:/jakarta-tomcat-5.0/jakarta-tomcat-5.0/webapps/cocoon/samples/docs/samples/hello-page.xml: 
javax.xml.transform.TransformerException: java.lang.RuntimeException: Invalid 
conversion from 'reference' to 'java.lang.String'.
-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


RE: newbies : problem with sitemap.xmap

2003-02-13 Thread arnaud


 -Message d'origine-
 De : SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
 Envoyé : jeudi 13 février 2003 16:25
 À : [EMAIL PROTECTED]
 Objet : Re: newbies : problem with sitemap.xmap


 hmm.

 what's the name of your cocoon webapplication ?
 is it cocoonsamples ?

yes

webapps +
|
+- cocoonsamples +


 or do you have a subdirectory named cocoonsamples
 in your cocoon webapp ?

 in the latter case try:

 http://localhost:8080/cocoon/cocoonsamples/staticpages/index.html

 dont like cocoon in your URL ? then look at

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

 regards, hussayn


 arnaud wrote:
  ok now its work
 
  just one problem
 
  when i request
 http://localhost:8080/cocoonsamples/staticpages/index.html
  i obtain this error in browser (nothing in tomcat stdout)
 
  --
  Cocoon 2 - Resource not found
 
  type resource-not-found
 
  message Resource not found
 
  description The requested URI
 /cocoonsamples/staticpages/index.html was
  not found.
 
  sender org.apache.cocoon.servlet.CocoonServlet
 
  source Cocoon servlet
 
  request-uri
 
  /cocoonsamples/staticpages/index.html
 
  path-info
 
  staticpages/index.html
 
  --
 
 
 
 
  but index.html exist in staticpages directory
 
 
  cocoonsamples +
|
+- staticpages
|
+- WEB-INF +
   |
   +- classes
 
 
 
  any idea ?
 
 
 
 
  --
 
  map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;
 
  map:components
 
map:generators
  map:generator name=html
  src=org.apache.cocoon.generation.HTMLGenerator/
/map:generators
 
map:transformers default=xslt/
 
map:serializers  default=html/
 
map:matchers
  map:matcher name=referer-match
  src=org.apache.cocoon.matching.WildcardHeaderMatcher/
/map:matchers
 
  /map:components
 
 map:pipelines
 
   map:pipeline
 map:match type=referer-match pattern=staticpages/*.html
 map:generate type=html src=staticpages/{1}.html/
 map:serialize/
 /map:match
   /map:pipeline
 
 /map:pipelines
 
  /map:sitemap
 
 
 
 
 
 
 
  -
  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]


-
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: newbies : problem with sitemap.xmap

2003-02-13 Thread SAXESS - Hussayn Dabbous
you have something like this in your rootsitemap ?:

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

no more ideas ...
regards, hussayn

arnaud wrote:



-Message d'origine-
De : SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 13 février 2003 16:25
À : [EMAIL PROTECTED]
Objet : Re: newbies : problem with sitemap.xmap


hmm.

what's the name of your cocoon webapplication ?
is it cocoonsamples ?



yes

webapps +
|
+- cocoonsamples +




or do you have a subdirectory named cocoonsamples
in your cocoon webapp ?

in the latter case try:

http://localhost:8080/cocoon/cocoonsamples/staticpages/index.html

dont like cocoon in your URL ? then look at

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

regards, hussayn


arnaud wrote:


ok now its work

just one problem

when i request


http://localhost:8080/cocoonsamples/staticpages/index.html


i obtain this error in browser (nothing in tomcat stdout)

--
Cocoon 2 - Resource not found

type resource-not-found

message Resource not found

description The requested URI


/cocoonsamples/staticpages/index.html was


not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoonsamples/staticpages/index.html

path-info

staticpages/index.html

--




but index.html exist in staticpages directory


cocoonsamples +
 |
 +- staticpages
 |
 +- WEB-INF +
|
+- classes



any idea ?




--

map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

   map:components

 map:generators
   map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/
 /map:generators

 map:transformers default=xslt/

 map:serializers  default=html/

 map:matchers
   map:matcher name=referer-match
src=org.apache.cocoon.matching.WildcardHeaderMatcher/
 /map:matchers

   /map:components

  map:pipelines

map:pipeline
  map:match type=referer-match pattern=staticpages/*.html
  map:generate type=html src=staticpages/{1}.html/
  map:serialize/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap







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




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

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



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


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

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




Re: newbies : problem with sitemap.xmap

2003-02-13 Thread SAXESS - Hussayn Dabbous
ah, i see the problem !!!
its in your sitemap. i assume you have
put a subsitemap in your staticpages directory and use the mount
as in my last email:

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


then use in the staticpages/sitemap.xmap:
  ...
  map:pipelines
map:pipeline
  map:match type=referer-match pattern=*.html  == here !!!
  map:generate type=html src={1}.html/ === and here
  map:serialize/
  /map:match
/map:pipeline
  /map:pipelines
  ...

SAXESS - Hussayn Dabbous wrote:

you have something like this in your rootsitemap ?:

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

no more ideas ...
regards, hussayn

arnaud wrote:




-Message d'origine-
De : SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 13 février 2003 16:25
À : [EMAIL PROTECTED]
Objet : Re: newbies : problem with sitemap.xmap


hmm.

what's the name of your cocoon webapplication ?
is it cocoonsamples ?




yes

webapps +
|
+- cocoonsamples +




or do you have a subdirectory named cocoonsamples
in your cocoon webapp ?

in the latter case try:

http://localhost:8080/cocoon/cocoonsamples/staticpages/index.html

dont like cocoon in your URL ? then look at

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

regards, hussayn


arnaud wrote:


ok now its work

just one problem

when i request



http://localhost:8080/cocoonsamples/staticpages/index.html


i obtain this error in browser (nothing in tomcat stdout)

--
Cocoon 2 - Resource not found

type resource-not-found

message Resource not found

description The requested URI



/cocoonsamples/staticpages/index.html was


not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoonsamples/staticpages/index.html

path-info

staticpages/index.html

--




but index.html exist in staticpages directory


cocoonsamples +
 |
 +- staticpages
 |
 +- WEB-INF +
|
+- classes



any idea ?




--

map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

   map:components

 map:generators
   map:generator name=html
src=org.apache.cocoon.generation.HTMLGenerator/
 /map:generators

 map:transformers default=xslt/

 map:serializers  default=html/

 map:matchers
   map:matcher name=referer-match
src=org.apache.cocoon.matching.WildcardHeaderMatcher/
 /map:matchers

   /map:components

  map:pipelines

map:pipeline
  map:match type=referer-match pattern=staticpages/*.html
  map:generate type=html src=staticpages/{1}.html/
  map:serialize/
  /map:match
/map:pipeline

  /map:pipelines

/map:sitemap







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





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

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





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


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

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




RE: newbies : problem with sitemap.xmap

2003-02-13 Thread Geoff Howard
Title: RE: newbies : problem with sitemap.xmap






From what I can see, the only matcher you have set up is the map:matcher name=referer-match

src="" which is totally 

useless to you in this case. You must not be understanding some basic concepts either 

because you have not read the user docs, or are not understanding them for 

some reason. 


Look at the definitions for the matchers, and you will find that you need 

the Wildcard URI matcher, not the Wildcard Header Matcher. You need to add 

a definition for org.apache.cocoon.matching.WildcardURIMatcher in your map:matchers 

section and use whatever name you give it in your map:match type= 


So, you need to change:

 map:matchers

 map:matcher name=referer-match

 src="">

 /map:matchers


to 

 map:matchers

 map:matcher name=wildcard

src="">

 /map:matchers


and


 map:match type=referer-match pattern=staticpages/*.html

 map:generate type=html src="">

 map:serialize/

 /map:match


to 


 map:match type=wildcard pattern=staticpages/*.html

 map:generate type=html src="">

 map:serialize/

 /map:match


Additionally, note:

1) you can add a parameter to map:matchers, default=wildcard so that you can 

eliminate the type=wildcard in your map:match statements if you do more than a few.

2) the string wildcard is not magic - you just need to use the same string in map:matcher name=... and in your type=...

Geoff


Geoff


 -Original Message-

 From: arnaud [mailto:[EMAIL PROTECTED]]

 Sent: Thursday, February 13, 2003 10:01 AM

 To: [EMAIL PROTECTED]

 Subject: RE: newbies : problem with sitemap.xmap

 

 

 ok now its work

 

 just one problem

 

 when i request 

 http://localhost:8080/cocoonsamples/staticpages/index.html

 i obtain this error in browser (nothing in tomcat stdout)

 

 --

 Cocoon 2 - Resource not found

 

 type resource-not-found

 

 message Resource not found

 

 description The requested URI 

 /cocoonsamples/staticpages/index.html was

 not found.

 

 sender org.apache.cocoon.servlet.CocoonServlet

 

 source Cocoon servlet

 

 request-uri

 

 /cocoonsamples/staticpages/index.html

 

 path-info

 

 staticpages/index.html

 

 --

 

 

 

 

 but index.html exist in staticpages directory

 

 

 cocoonsamples +

 |

 +- staticpages

 |

 +- WEB-INF +

 |

 +- classes

 

 

 

 any idea ?

 

 

 

 

 --

 

 map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0

 

 map:components

 

 map:generators

 map:generator name=html

 src="">

 /map:generators

 

 map:transformers default=xslt/

 

 map:serializers default=html/

 

 map:matchers

 map:matcher name=referer-match

 src="">

 /map:matchers

 

 /map:components

 

 map:pipelines

 

 map:pipeline

 map:match type=referer-match pattern=staticpages/*.html

 map:generate type=html src="">

 map:serialize/

 /map:match

 /map:pipeline

 

 /map:pipelines

 

 /map:sitemap

 

 

 

 

 

 

 

 -

 Please check that your question has not already been answered in the

 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

 

 To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 

 





how can i get static files REALLY been processed by apache ???

2003-02-13 Thread SAXESS - Hussayn Dabbous
Hy;

When i setup apache/tomcat/cocoon, i run into following
fancy problem. Although what i want seems trivial, but i did not
manage to get it done (I might not know the magic command to get round it)

Here is the problem:

1.) I want all static files been served by apache, i.e.:

*.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.


Now how should i setup mod_jk.conf 

this doesn't help:

IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon   cocoon
  JkMount /cocoon/  cocoon
  JkMount /cocon/*  cocoon
/IfModule

because it redirects everything to cocoon. But apache shall
serve the files mentioned above ...

This is not complete (Indeed it can never be complete):
IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon/*.xml   cocoon
  JkMount /cocoon/*.jsp   cocoon
  JkMount /cocon/*.foococoon
  ...
/IfModule

The list could potentially go down endlessly.
There MUST be an obvious solution to this!

Anyone can help me here ?

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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Ryan Hoegg
SAXESS - Hussayn Dabbous wrote:


  JkMount /cocon/*  cocoon



Not sure you meant cocon here... typo in your e-mail or your config?


-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with myapp to Tomcat/Cocoon
2) Setup an alias named myapp-static pointed to a directory containing your static 
files
3) Use URI like /myapp/dynamic.htlm for dynamic content and URI like 
/myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers serving the 
static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

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


 -Original Message-
 From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 6:14 PM
 To: [EMAIL PROTECTED]
 Subject: how can i get static files REALLY been processed by apache ???


 Hy;

 When i setup apache/tomcat/cocoon, i run into following
 fancy problem. Although what i want seems trivial, but i did not
 manage to get it done (I might not know the magic command to get round it)

 Here is the problem:

 1.) I want all static files been served by apache, i.e.:

  *.gif, *.html, *.jpg

 2.) I want *ALL* other files be served by cocoon.


 Now how should i setup mod_jk.conf 

 this doesn't help:

 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon   cocoon
JkMount /cocoon/  cocoon
JkMount /cocon/*  cocoon
 /IfModule

 because it redirects everything to cocoon. But apache shall
 serve the files mentioned above ...

 This is not complete (Indeed it can never be complete):
 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon/*.xml   cocoon
JkMount /cocoon/*.jsp   cocoon
JkMount /cocon/*.foococoon
...
 /IfModule

 The list could potentially go down endlessly.
 There MUST be an obvious solution to this!

 Anyone can help me here ?

 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]



-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread SAXESS - Hussayn Dabbous
Hy;

yes, it is a typo...
but my problem remains when i correct the typo ..

remember: i want to EXCLUDE some files to be forwarded to cocoon,
and i didn't find HOW i can get JK to do this...

JkMount /cocoon/*  cocoon == mount everything
JkNoMount *.gif, *.jpg cocoon == but not these

while the first directive is well documented, the secnd
is what i need, but it doesn't exist. so the question is,
how can i get what i want ? ;-(

regards, hussayn


Ryan Hoegg wrote:

SAXESS - Hussayn Dabbous wrote:


  JkMount /cocon/*  cocoon




Not sure you meant cocon here... typo in your e-mail or your config?


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

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



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


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

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




Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Chris Wilkes
On Thu, Feb 13, 2003 at 06:14:22PM +0100, SAXESS - Hussayn Dabbous wrote:
 
 Here is the problem:
 
 1.) I want all static files been served by apache, i.e.:
 
 *.gif, *.html, *.jpg
 
 2.) I want *ALL* other files be served by cocoon.

I ran into the same thing and from what I could find out is that you
really want a ! operator on the JkMount directive.

 Now how should i setup mod_jk.conf 
...
 The list could potentially go down endlessly.
 There MUST be an obvious solution to this!

Here's what I did, its just for the images but you could extend it to
anything:

Create a new website called images.examples.com in your
httpd.conf file.  Here's some snippets of my Apache2 one:
VirtualHost 10.0.0.181
 ServerName  www.example.com
 # this all goes to cocoon, but need a docroot anyway
 DocumentRoot /usr/local/www/data/example
 # send all these requests to the coyote connector
 JkMount /* cocoon
   /VirtualHost
   VirtualHost 10.0.0.181
 ServerName  images.example.com
 DocumentRoot /usr/local/www/data/example
   /VirtualHost
So now when a request comes in you'll have Apache handle it differently
for www vs images

Its not that elegant to have references to
http://static.example.com/path/to/myhelp.html; but hey, it gets the job
done.  You can tell cocoon to throw in the static a href for you so it
wouldn't be that much work.

Chris

-
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: how can i get static files REALLY been processed by apache ???

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

thats a very pragmatic idea. i like such approaches.
but, hmm... wouldn't this need lots of static links
in your pages ???

i mean, you really must point to the myapp-static pages
with absolute links. What about maintenance ... ???

seems as if i need to do it in this way, or let cocoon
serve everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:

Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with myapp to Tomcat/Cocoon
2) Setup an alias named myapp-static pointed to a directory containing your static files
3) Use URI like /myapp/dynamic.htlm for dynamic content and URI like /myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

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




-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: how can i get static files REALLY been processed by apache ???


Hy;

When i setup apache/tomcat/cocoon, i run into following
fancy problem. Although what i want seems trivial, but i did not
manage to get it done (I might not know the magic command to get round it)

Here is the problem:

1.) I want all static files been served by apache, i.e.:

*.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.


Now how should i setup mod_jk.conf 

this doesn't help:

IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon   cocoon
  JkMount /cocoon/  cocoon
  JkMount /cocon/*  cocoon
/IfModule

because it redirects everything to cocoon. But apache shall
serve the files mentioned above ...

This is not complete (Indeed it can never be complete):
IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon/*.xml   cocoon
  JkMount /cocoon/*.jsp   cocoon
  JkMount /cocon/*.foococoon
  ...
/IfModule

The list could potentially go down endlessly.
There MUST be an obvious solution to this!

Anyone can help me here ?

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]




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




Aggregation and XSPs

2003-02-13 Thread Dr. Hans M. Rupp
Hallo!

Is it poosible to use sitemap aggregation with XSPs, that is to
aggregate the output of several XSPs into one SAX-Stream on which then
transformations are performed?
So far I have only found examples using static files.

Many thanks,

Hans

--

Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



-
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: how can i get static files REALLY been processed by apache ???

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

Your last comment sounds very promising.
How could i let cocoon throw in the static refs ???
Wouldn't that mean i need cocoon to find the hrefs and
do some replacement stuff there. Or how would i do that?
any pointers to howto, docs or so ?

regards, hussayn

 Its not that elegant to have references to
 http://static.example.com/path/to/myhelp.html; but hey, it gets
 the job done.  You can tell cocoon to throw in the static a
 href for you so it wouldn't be that much work.


Chris Wilkes wrote:

On Thu, Feb 13, 2003 at 06:14:22PM +0100, SAXESS - Hussayn Dabbous wrote:


Here is the problem:

1.) I want all static files been served by apache, i.e.:

   *.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.



I ran into the same thing and from what I could find out is that you
really want a ! operator on the JkMount directive.



Now how should i setup mod_jk.conf 


...


The list could potentially go down endlessly.
There MUST be an obvious solution to this!



Here's what I did, its just for the images but you could extend it to
anything:

Create a new website called images.examples.com in your
httpd.conf file.  Here's some snippets of my Apache2 one:
	VirtualHost 10.0.0.181
 ServerName  www.example.com
 # this all goes to cocoon, but need a docroot anyway
 DocumentRoot /usr/local/www/data/example
 # send all these requests to the coyote connector
 JkMount /* cocoon
   /VirtualHost
   VirtualHost 10.0.0.181
 ServerName  images.example.com
 DocumentRoot /usr/local/www/data/example
   /VirtualHost
So now when a request comes in you'll have Apache handle it differently
for www vs images

Its not that elegant to have references to
http://static.example.com/path/to/myhelp.html; but hey, it gets the job
done.  You can tell cocoon to throw in the static a href for you so it
wouldn't be that much work.

Chris

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

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



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


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

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




Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Lajos
Hi Hussayn -

Here is what I do in almost every cocoon app I do:

map:match pattern=styles.css
 map:read mime-type=text/css src=/styles/styles.css/
/map:match
map:match pattern=**/styles.css
 map:read mime-type=text/css src=/styles/styles.css/
/map:match

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

Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:
hy,

thats a very pragmatic idea. i like such approaches.
but, hmm... wouldn't this need lots of static links
in your pages ???

i mean, you really must point to the myapp-static pages
with absolute links. What about maintenance ... ???

seems as if i need to do it in this way, or let cocoon
serve everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with myapp to 
Tomcat/Cocoon
2) Setup an alias named myapp-static pointed to a directory 
containing your static files
3) Use URI like /myapp/dynamic.htlm for dynamic content and URI like 
/myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

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



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: how can i get static files REALLY been processed by apache ???


Hy;

When i setup apache/tomcat/cocoon, i run into following
fancy problem. Although what i want seems trivial, but i did not
manage to get it done (I might not know the magic command to get 
round it)

Here is the problem:

1.) I want all static files been served by apache, i.e.:

*.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.


Now how should i setup mod_jk.conf 

this doesn't help:

IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon   cocoon
  JkMount /cocoon/  cocoon
  JkMount /cocon/*  cocoon
/IfModule

because it redirects everything to cocoon. But apache shall
serve the files mentioned above ...

This is not complete (Indeed it can never be complete):
IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon/*.xml   cocoon
  JkMount /cocoon/*.jsp   cocoon
  JkMount /cocon/*.foococoon
  ...
/IfModule

The list could potentially go down endlessly.
There MUST be an obvious solution to this!

Anyone can help me here ?

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]



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






--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


-
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 

RE: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
Lajos,

sure this is more elegant, but also slower than using the web-server directly... I 
hate going back to the Application server if not
absolutely necessary :(

Regards,

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


 -Original Message-
 From: Lajos [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 6:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: how can i get static files REALLY been processed by apache
 ???


 Hi Hussayn -

 Here is what I do in almost every cocoon app I do:

 map:match pattern=styles.css
   map:read mime-type=text/css src=/styles/styles.css/
 /map:match
 map:match pattern=**/styles.css
   map:read mime-type=text/css src=/styles/styles.css/
 /map:match

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

 Any gif or css (and you can do the same for jpg, js, etc.) gets
 redirected to the appropriate directory off the webserver root, and
 hence is served by Apache. So, under Apache's DocumentRoot I have
 /images, /styles, /scripts, etc., etc.

 Regards,

 Lajos


 SAXESS - Hussayn Dabbous wrote:
  hy,
 
  thats a very pragmatic idea. i like such approaches.
  but, hmm... wouldn't this need lots of static links
  in your pages ???
 
  i mean, you really must point to the myapp-static pages
  with absolute links. What about maintenance ... ???
 
  seems as if i need to do it in this way, or let cocoon
  serve everything ;-(
 
  Maybe i can plugin something in to apache, or would it be
  a big problem to get mod_JK do what i want (hacking ...) ???
  I'll go and ask the apache-group ...
  and report back, what i get from there maybe in a Wiki ;-) ?
 
  anyway thanks for the tip...
 
  regards, hussayn
 
 
  Luca Morandini wrote:
 
  Hussayn,
 
  I know it is not a smart solution, but it worked for me.
 
  1) Setup mod_jk to redirect everything starting with myapp to
  Tomcat/Cocoon
  2) Setup an alias named myapp-static pointed to a directory
  containing your static files
  3) Use URI like /myapp/dynamic.htlm for dynamic content and URI like
  /myapp-static/static.html for static content
 
  This has the advantage of scaling up well: we have three web-servers
  serving the static content (/myapp-static/*) and one
  app-server serving the Cocoon-generated content (/myapp/*).
 
  Regards.
 
  -
 Luca Morandini
 GIS Consultant
[EMAIL PROTECTED]
  http://utenti.tripod.it/lmorandini/index.html
  -
 
 
 
  -Original Message-
  From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 6:14 PM
  To: [EMAIL PROTECTED]
  Subject: how can i get static files REALLY been processed by apache ???
 
 
  Hy;
 
  When i setup apache/tomcat/cocoon, i run into following
  fancy problem. Although what i want seems trivial, but i did not
  manage to get it done (I might not know the magic command to get
  round it)
 
  Here is the problem:
 
  1.) I want all static files been served by apache, i.e.:
 
  *.gif, *.html, *.jpg
 
  2.) I want *ALL* other files be served by cocoon.
 
 
  Now how should i setup mod_jk.conf 
 
  this doesn't help:
 
  IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon   cocoon
JkMount /cocoon/  cocoon
JkMount /cocon/*  cocoon
  /IfModule
 
  because it redirects everything to cocoon. But apache shall
  serve the files mentioned above ...
 
  This is not complete (Indeed it can never be complete):
  IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon/*.xml   cocoon
JkMount /cocoon/*.jsp   cocoon
JkMount /cocon/*.foococoon
...
  /IfModule
 
  The list could potentially go down endlessly.
  There MUST be an obvious solution to this!
 
  Anyone can help me here ?
 
  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]
 
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting.  

RE: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Luca Morandini
 -Original Message-
 From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 6:41 PM
 To: [EMAIL PROTECTED]
 Subject: Re: how can i get static files REALLY been processed by apache
 ???

 thats a very pragmatic idea. i like such approaches.
 but, hmm... wouldn't this need lots of static links
 in your pages ???
 i mean, you really must point to the myapp-static pages
 with absolute links. What about maintenance ... ???

Not really, I've put up this URIs in global parameter and refer to these variables in 
my XSLs: just a change in one XML file if you
want to change these URIs.
BTW, this way is already described in the Cocoon FAQ 
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-4


 I'll go and ask the apache-group ...
 and report back, what i get from there maybe in a Wiki ;-) ?

If you find something better, please, report it back in order to change 
afore-mentioned FAQ.

Regards,

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




 hy,



 seems as if i need to do it in this way, or let cocoon
 serve everything ;-(

 Maybe i can plugin something in to apache, or would it be
 a big problem to get mod_JK do what i want (hacking ...) ???


-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread SAXESS - Hussayn Dabbous
Hey, Lajos;

i see we are all very creative people ;-)
Another cool idea how to get around the problem.

The one thing i am *really* uncomfortable with this
solution is the sequence:

1.) browser requests .img
2.) apache forwards request to tomcat
3.) tomcat forwards request to cocoon
4.) cocoon processes and redirects.
5.) apache redirects
6.) browser calls apache
7.) apache serves the file


hmm. performance again ??


i really would prefer something like:

1.) browser requests .img
2.) apache serves the file

ill need to switch on my hackers-brain-partition ;-)
Thanks again for your answers...

regards, hussayn


Lajos wrote:

Hi Hussayn -

Here is what I do in almost every cocoon app I do:

map:match pattern=styles.css
 map:read mime-type=text/css src=/styles/styles.css/
/map:match
map:match pattern=**/styles.css
 map:read mime-type=text/css src=/styles/styles.css/
/map:match

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

Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:

hy,

thats a very pragmatic idea. i like such approaches.
but, hmm... wouldn't this need lots of static links
in your pages ???

i mean, you really must point to the myapp-static pages
with absolute links. What about maintenance ... ???

seems as if i need to do it in this way, or let cocoon
serve everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with myapp to 
Tomcat/Cocoon
2) Setup an alias named myapp-static pointed to a directory 
containing your static files
3) Use URI like /myapp/dynamic.htlm for dynamic content and URI 
like /myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

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



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: how can i get static files REALLY been processed by apache ???


Hy;

When i setup apache/tomcat/cocoon, i run into following
fancy problem. Although what i want seems trivial, but i did not
manage to get it done (I might not know the magic command to get 
round it)

Here is the problem:

1.) I want all static files been served by apache, i.e.:

*.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.


Now how should i setup mod_jk.conf 

this doesn't help:

IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon   cocoon
  JkMount /cocoon/  cocoon
  JkMount /cocon/*  cocoon
/IfModule

because it redirects everything to cocoon. But apache shall
serve the files mentioned above ...

This is not complete (Indeed it can never be complete):
IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon/*.xml   cocoon
  JkMount /cocoon/*.jsp   cocoon
  JkMount /cocon/*.foococoon
  ...
/IfModule

The list could potentially go down endlessly.
There MUST be an obvious solution to this!

Anyone can help me here ?

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]



-
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

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Christoph Gaffga
Hi,

I'm using RewriteCond and RewriteRule in my apache config for that purpose.
(http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)
(see also http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)

You can use -f with RewriteCond to check if the file exists, and if, catch
it from hd.
Something like the following should work:

RewriteCond /your/docroot/dir1/%{REQUEST_FILENAME}  -f
RewriteRule ^(.+)  /your/docroot/dir1/$1  [L]

hope that helps

Christoph Gaffga
[EMAIL PROTECTED]




- Original Message -
From: SAXESS - Hussayn Dabbous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 6:14 PM
Subject: how can i get static files REALLY been processed by apache ???


 Hy;

 When i setup apache/tomcat/cocoon, i run into following
 fancy problem. Although what i want seems trivial, but i did not
 manage to get it done (I might not know the magic command to get round it)

 Here is the problem:

 1.) I want all static files been served by apache, i.e.:

  *.gif, *.html, *.jpg

 2.) I want *ALL* other files be served by cocoon.


 Now how should i setup mod_jk.conf 

 this doesn't help:

 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon   cocoon
JkMount /cocoon/  cocoon
JkMount /cocon/*  cocoon
 /IfModule

 because it redirects everything to cocoon. But apache shall
 serve the files mentioned above ...

 This is not complete (Indeed it can never be complete):
 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon/*.xml   cocoon
JkMount /cocoon/*.jsp   cocoon
JkMount /cocon/*.foococoon
...
 /IfModule

 The list could potentially go down endlessly.
 There MUST be an obvious solution to this!

 Anyone can help me here ?

 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]


-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Chris Wilkes
Fixing the top posting a little bit...

 Here's what I did, its just for the images but you could extend it to
 anything:
 
 Create a new website called images.examples.com in your
 httpd.conf file.  Here's some snippets of my Apache2 one:
  VirtualHost 10.0.0.181
  ServerName  www.example.com
  # this all goes to cocoon, but need a docroot anyway
  DocumentRoot /usr/local/www/data/example
  # send all these requests to the coyote connector
  JkMount /* cocoon
/VirtualHost
VirtualHost 10.0.0.181
  ServerName  images.example.com
  DocumentRoot /usr/local/www/data/example
/VirtualHost
 So now when a request comes in you'll have Apache handle it differently
 for www vs images
 
 Its not that elegant to have references to
 http://static.example.com/path/to/myhelp.html; but hey, it gets the job
 done.  You can tell cocoon to throw in the static a href for you so it
 wouldn't be that much work.
On Thu, Feb 13, 2003 at 06:46:52PM +0100, SAXESS - Hussayn Dabbous wrote:
 Hy,
 
 Your last comment sounds very promising.
 How could i let cocoon throw in the static refs ???
 Wouldn't that mean i need cocoon to find the hrefs and
 do some replacement stuff there. Or how would i do that?
 any pointers to howto, docs or so ?

My needs were pretty simple where I wanted to have some standard images
on a page so I included it in the XSLT to make the webpage.  Not sure if
that's the correct way of doing it, in fact I'm a little concerned that I
might be using XSLTs in a way that they shouldn't be used:

  xsl:template match=topmiddle
xsl:comment Horizontal guides /xsl:comment
img src=http://images.example.com/blue.gif;/img
br/br
img src=http://images.example.com/white.gif;/img
  /xsl:template

You might be able to workup some sort of xsl: if text clause to
manipulate the {link} reference to go to the static page.

Chris

-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Christoph Gaffga
Hi,

I'm using RewriteCond and RewriteRule in my apache config for that purpose.
(http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)
(see also http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)

You can use -f with RewriteCond to check if the file exists, and if, catch
it from hd.
Something like the following should work:

RewriteCond /your/docroot/dir1/%{REQUEST_FILENAME}  -f
RewriteRule ^(.+)  /your/docroot/dir1/$1  [L]

hope that helps

Christoph Gaffga
[EMAIL PROTECTED]




- Original Message -
From: SAXESS - Hussayn Dabbous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 6:14 PM
Subject: how can i get static files REALLY been processed by apache ???


 Hy;

 When i setup apache/tomcat/cocoon, i run into following
 fancy problem. Although what i want seems trivial, but i did not
 manage to get it done (I might not know the magic command to get round it)

 Here is the problem:

 1.) I want all static files been served by apache, i.e.:

  *.gif, *.html, *.jpg

 2.) I want *ALL* other files be served by cocoon.


 Now how should i setup mod_jk.conf 

 this doesn't help:

 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon   cocoon
JkMount /cocoon/  cocoon
JkMount /cocon/*  cocoon
 /IfModule

 because it redirects everything to cocoon. But apache shall
 serve the files mentioned above ...

 This is not complete (Indeed it can never be complete):
 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon/*.xml   cocoon
JkMount /cocoon/*.jsp   cocoon
JkMount /cocon/*.foococoon
...
 /IfModule

 The list could potentially go down endlessly.
 There MUST be an obvious solution to this!

 Anyone can help me here ?

 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]


-
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: Aggregation and XSPs

2003-02-13 Thread Christoph Gaffga
short answer: It's the same for xsps

Christoph

P.S.:Don't forget to have a
map:match pattern=**.xsp
  map:generate type=serverpages src={1}.xsp/
  map:serialize type=xml/
/map:match
-part for your xsps.




- Original Message - 
From: Dr. Hans M. Rupp [EMAIL PROTECTED]
To: Coocon-user Liste [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 6:42 PM
Subject: Aggregation and XSPs


 Hallo!
 
 Is it poosible to use sitemap aggregation with XSPs, that is to
 aggregate the output of several XSPs into one SAX-Stream on which then
 transformations are performed?
 So far I have only found examples using static files.
 
 Many thanks,
 
 Hans
 
 --
 
 Dr. Hans M. Rupp
 danet Internet Solutions GmbH
 Waldburgstr. 17-19
 70563 Stuttgart
 Germany
 
 Fon +49 711 133 53 50
 Fax +49 711 133 53 53
 
 --
 
 
 
 -
 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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Geoff Howard
Title: RE: how can i get static files REALLY been processed by apache ???






Hussayn, 


I am not an expert on mod_jk internals, nor am I up to date on where development has moved in the last few months. However, the last time I checked into this I came away with the distinct impression that mod_jk simply isn't capable of doing those two requirements together. There was some talk in jk2 of allowing negated, or even regexp expressions but AKAIK the ability does not exist currently. 

I think given the current options, for the scenario you describe below, your best bet is to follow Pier's advice: http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy

Geoff


 -Original Message-

 From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]

 Sent: Thursday, February 13, 2003 12:14 PM

 To: [EMAIL PROTECTED]

 Subject: how can i get static files REALLY been processed by 

 apache ???

 

 

 Hy;

 

 When i setup apache/tomcat/cocoon, i run into following

 fancy problem. Although what i want seems trivial, but i did not

 manage to get it done (I might not know the magic command to 

 get round it)

 

 Here is the problem:

 

 1.) I want all static files been served by apache, i.e.:

 

 *.gif, *.html, *.jpg

 

 2.) I want *ALL* other files be served by cocoon.

 

 

 Now how should i setup mod_jk.conf 

 

 this doesn't help:

 

 IfModule mod_jk.c

 JkWorkersFile /etc/httpd/conf/workers.properties

 JkLogFile /var/log/httpd/mod_jk.log

 JkLogLevel error

 JkMount /cocoon cocoon

 JkMount /cocoon/ cocoon

 JkMount /cocon/* cocoon

 /IfModule

 

 because it redirects everything to cocoon. But apache shall

 serve the files mentioned above ...

 

 This is not complete (Indeed it can never be complete):

 IfModule mod_jk.c

 JkWorkersFile /etc/httpd/conf/workers.properties

 JkLogFile /var/log/httpd/mod_jk.log

 JkLogLevel error

 JkMount /cocoon/*.xml cocoon

 JkMount /cocoon/*.jsp cocoon

 JkMount /cocon/*.foo cocoon

 ...

 /IfModule

 

 The list could potentially go down endlessly.

 There MUST be an obvious solution to this!

 

 Anyone can help me here ?

 

 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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Christoph Gaffga
RE: how can i get static files REALLY been processed by apache ???Oh, i
missed th mod_jk-stuff.
Im doing mod_proxy as well, but like this:

# The static
RewriteCond /your/docroot/dir1/%{REQUEST_FILENAME}  -f
RewriteRule ^(.+)  /your/docroot/dir1/$1  [L]

# Cocoon running on 8080
RewriteRule ^(.+)  http://localhost:8080/cocoon/$1 [P]

Christoph


- Original Message -
From: Christoph Gaffga [EMAIL PROTECTED]
To: Cocoon Users [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 6:51 PM
Subject: Re: how can i get static files REALLY been processed by apache ???


 Hi,

 I'm using RewriteCond and RewriteRule in my apache config for that
purpose.
 (http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)
 (see also http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond)

 You can use -f with RewriteCond to check if the file exists, and if, catch
 it from hd.
 Something like the following should work:

 RewriteCond /your/docroot/dir1/%{REQUEST_FILENAME}  -f
 RewriteRule ^(.+)  /your/docroot/dir1/$1  [L]

 hope that helps

 Christoph Gaffga
 [EMAIL PROTECTED]



- Original Message -
From: Geoff Howard
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 7:22 PM
Subject: RE: how can i get static files REALLY been processed by apache ???


Hussayn,
I am not an expert on mod_jk internals, nor am I up to date on where
development has moved in the last few months.  However, the last time I
checked into this I came away with the distinct impression that mod_jk
simply isn't capable of doing those two requirements together.  There was
some talk in jk2 of allowing negated, or even regexp expressions but AKAIK
the ability does not exist currently.
I think given the current options, for the scenario you describe below, your
best bet is to follow Pier's advice:
http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy
Geoff
 -Original Message-
 From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 12:14 PM
 To: [EMAIL PROTECTED]
 Subject: how can i get static files REALLY been processed by
 apache ???


 Hy;

 When i setup apache/tomcat/cocoon, i run into following
 fancy problem. Although what i want seems trivial, but i did not
 manage to get it done (I might not know the magic command to
 get round it)

 Here is the problem:

 1.) I want all static files been served by apache, i.e.:

  *.gif, *.html, *.jpg

 2.) I want *ALL* other files be served by cocoon.


 Now how should i setup mod_jk.conf 

 this doesn't help:

 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon   cocoon
JkMount /cocoon/  cocoon
JkMount /cocon/*  cocoon
 /IfModule

 because it redirects everything to cocoon. But apache shall
 serve the files mentioned above ...

 This is not complete (Indeed it can never be complete):
 IfModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
JkMount /cocoon/*.xml   cocoon
JkMount /cocoon/*.jsp   cocoon
JkMount /cocon/*.foococoon
...
 /IfModule

 The list could potentially go down endlessly.
 There MUST be an obvious solution to this!

 Anyone can help me here ?

 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]





-
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: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Lajos
Ok, there is another way. Say you have your top level directories - 
images, scripts, style - under DocumentRoot, so they are served by 
Apache. Then, you have specific Cocoon applications forwarded to Cocoon 
in Tomcat via JkMount's:

JkMount /myapp1 ajp13
JkMount /myapp2 ajp13

etc.

Then, in the XSLs that produce the HTML in your Cocoon apps, you just 
put /images, /scripts, /style for all *.gif, *.jpg, *.js, *.css files. 
So, nothing will ever get routed thru Tomcat.

Luca is right that is is inefficient to use the pipelines the way I 
suggest. And in fact, for galatea.com I do just what I suggest above: 
all my gif, jpg, css and js references start from the root so never get 
to Cocoon.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:
Hey, Lajos;

i see we are all very creative people ;-)
Another cool idea how to get around the problem.

The one thing i am *really* uncomfortable with this
solution is the sequence:

1.) browser requests .img
2.) apache forwards request to tomcat
3.) tomcat forwards request to cocoon
4.) cocoon processes and redirects.
5.) apache redirects
6.) browser calls apache
7.) apache serves the file


hmm. performance again ??


i really would prefer something like:

1.) browser requests .img
2.) apache serves the file

ill need to switch on my hackers-brain-partition ;-)
Thanks again for your answers...

regards, hussayn


Lajos wrote:


Hi Hussayn -

Here is what I do in almost every cocoon app I do:

map:match pattern=styles.css
 map:read mime-type=text/css src=/styles/styles.css/
/map:match
map:match pattern=**/styles.css
 map:read mime-type=text/css src=/styles/styles.css/
/map:match

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

Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:

hy,

thats a very pragmatic idea. i like such approaches.
but, hmm... wouldn't this need lots of static links
in your pages ???

i mean, you really must point to the myapp-static pages
with absolute links. What about maintenance ... ???

seems as if i need to do it in this way, or let cocoon
serve everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with myapp to 
Tomcat/Cocoon
2) Setup an alias named myapp-static pointed to a directory 
containing your static files
3) Use URI like /myapp/dynamic.htlm for dynamic content and URI 
like /myapp-static/static.html for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content (/myapp-static/*) and one
app-server serving the Cocoon-generated content (/myapp/*).

Regards.

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



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: how can i get static files REALLY been processed by apache 
???


Hy;

When i setup apache/tomcat/cocoon, i run into following
fancy problem. Although what i want seems trivial, but i did not
manage to get it done (I might not know the magic command to get 
round it)

Here is the problem:

1.) I want all static files been served by apache, i.e.:

*.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.


Now how should i setup mod_jk.conf 

this doesn't help:

IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon   cocoon
  JkMount /cocoon/  cocoon
  JkMount /cocon/*  cocoon
/IfModule

because it redirects everything to cocoon. But apache shall
serve the files mentioned above ...

This is not complete (Indeed it can never be complete):
IfModule mod_jk.c
  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon/*.xml   cocoon
  JkMount /cocoon/*.jsp   cocoon
  JkMount /cocon/*.foococoon
  ...
/IfModule

The list could potentially go down endlessly.
There MUST be an obvious solution to this!

Anyone can help me here ?

regards, Hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: 

Using a servlet as source for a generator

2003-02-13 Thread Laurent Comte


Hi all,

i've read the article at
http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet and i have a
question ...

I tried to use a servlet as a source for a generator and it works when i set
the full url of the servlet (like http://localhost:8080/myApp/myServlet;).

Unfortunately, when i dont't specify the full url but the servlet-mapping
(like /myApp/myServlet) for src, i've got a weird error (see below) ...

Of course, when i type the same url in my browser, it works
(http://localhost:8080/myApp/myServlet;). Cocoon and my servlet are in the
same webApp (and same Tomcat's Context).

Does it really work for you ?

sitemap.xmap is standard and i had just added this :

  map:pipelines
map:pipeline match=myApp/test
  map:generate uri=/myApp/myServlet/!-- return XML --
  map:serialize /
/map:pipeline
  /map:pipelines


My conf:

Win2000 SP3
J2SE 1.4.1_01
Tomcat 4.1.18
Cocoon 2.0.4


== The Error :


type fatal

message Exception during processing of file:/D:/myApp/myServlet

description org.apache.cocoon.ProcessingException: Exception during
processing of file:/D:/myApp/myServlet: java.io.FileNotFoundException:
\myApp\myServlet (The system cannot find the path specified)

sender org.apache.cocoon.servlet.ParanoidCocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/myApp/myServlet: java.io.FileNotFoundException: \myApp\myServlet
(The system cannot find the path specified)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:211)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:399)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1449)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\Java\Oodrive\Tomcat\work\cocoo
n-files\org/apache/cocoon/www\sitemap_xmap.java:1340)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
  

Xinclude with XSL?

2003-02-13 Thread g4
Hi there list,

is it possible to use Xinclude within XSL? At present I have this:

?xml version=1.0?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
version='1.0'
xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xi=http://www.w3.org/2001/XInclude;

xsl:import href=menu.xsl/

xsl:param name=section/
xsl:param name=meta/
xsl:param name=base-url/

xsl:template match=/
	html
		head
			titleConservatories Online/title
			xi:include href={$meta}meta-{$section}.xml/
		/head
	body ...

in the source output I get:

xi:include href=metadata/meta-company.xml/

Many thanks

Jason


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



2.0.5dev SourceWriting-Transformer: cannot set serializer

2003-02-13 Thread Timothy Larson
Has anyone tried setting the serializer when using the
SourceWriting-Transformer in Cocoon-2.0.5dev?

I am trying to use Cocoon-2.0.5dev from the 2003-02-12 snapshot
to write a PDF file to disk using the SourceWriting-Transformer.
The trouble is I cannot seem to set the serializer to fo2pdf.
It insists on using the xml serializer, and even then fails with this message:

ERROR   (2003-02-13) 10:48.34:800   [access] (/cocoon-2.0.5-12/test/template.save-pdf) 
PoolThread-4/CocoonServlet: Problem with Cocoon servlet
org.apache.cocoon.ProcessingException: Exception during processing of 
cocoon://test/template.xml: javax.xml.transform.TransformerException: 
javax.xml.transform.TransformerException: org.apache.cocoon.ProcessingException: 
Cannot get 'xml' serializer

The xml I am feeding to the SWT looks about like this:

?xml version=1.0 encoding=UTF-8?
source:write serializer=fo2pdf xmlns:source=http://apache.org/cocoon/source/1.0;
source:serializerfo2pdf/source:serializer
source:source../data/template.pdf/source:source
source:fragment
  fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
...
  /fo:root
/source:fragment
/source:write

I call the SWT like this:

map:transform type=swt
  map:parameter name=serializer value=fo2pdf/
/map:transform

I define the SWT like this:

map:transformer name=swt
  src=org.apache.cocoon.transformation.SourceWritingTransformer
  logger=sitemap.transformer.filewriter
  map:parameter name=serializer value=fo2pdf/
/map:transformer

Any help resolving this would be appreciated,
Tim



-
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: embedding graphics

2003-02-13 Thread J.Pietschmann
joni santoso wrote:

1. I tried to overlap several images (please see the fo file below). I 
want to make images gigi1.jpg and gl.jpg overlapped. However, it seems 
that it is not doable. Is it?

There are at least two possiblities:
- absolutely positioned block-containers
- put the images in two adjacent table cells and make
  the first cell narrow so that the image within overflows
  into the next cell.


(Sorry if this question may actually be 
fit to ask in fop-user but maybe anyone here knows it).
Fop-user would be a better place.


2. I have this fo file that works fine but when I put this onto cocoon 
the pictures don't show up. What's wrong? The images and the fo file are 
in the same directory. However, I don't map any of these images just the 
fo file.

You probably need to set the baseDir for FOP. Look it up
in the documentation for the fo2pdf serializer.

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]




Re: Dynamic XSL evaluation

2003-02-13 Thread J.Pietschmann
Idhaya Chandran wrote:

You can use 
xsl:value-of select={$welcome_title}/

That's a bad idea. This is a syntax error.


From: Yatin Shah [mailto:[EMAIL PROTECTED]]

If the welcome_title was b Hello. Welcome to Acme, Inc. lt;/bgt;
Then the embeded HTML code is not interperted as HTML tags.


You should not put HTML snippets into a database. If you
want to extract them with Cocoon and have them delivered
as HTML in the output, you'll have to run them through an
XML parser. Just forget about simple solutions.

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]




Scheduler with cocoon

2003-02-13 Thread Xavier RODRIGUEZ
Does anybody know how to make a scheduler that will execute part of a
pipeline ...
In other word, I would like to execute a
generation/transformation/serialization process each day ...

Does anybody know if a cocoon component exists to do this? 

Thanks

Xavier 


-
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: Scheduler with cocoon

2003-02-13 Thread Guenther Schmidt
Hi Xavier,

provided you're using Linix, you might want to create a cron job a'la wget 
http://url that triggers your pipeline.

This is just a fallback possibility if nobody comes up with a better answer.

Best regards

Guenther (turning 35 in 2.5 hours)

-
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: Scheduler with cocoon

2003-02-13 Thread Gabriele Domenichini
Xavier RODRIGUEZ wrote:


Does anybody know how to make a scheduler that will execute part of a
pipeline ...
In other word, I would like to execute a
generation/transformation/serialization process each day ...


I normally use an utility to do a similar job called geturl. It's free 
and works in windows


Does anybody know if a cocoon component exists to do this? 

There is a way to use cocoon from the command line. Try to search in the 
group


Thanks

Xavier 


-
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: Dynamic XSL evaluation

2003-02-13 Thread Yatin Shah
Idhaya, thanks for help. Although the solution is incorrect.
I'll agree with J.Pietschmann, I don't think a simple solution exists!
I think the reasoning is ...
the welcome_title variable is holding a text value and it's not a node set.
text value can not be processed like a node set.

Only hope, I think is with the SQL Transformer. Instead of just laying
the text it should lay the full node set if the sql column value has any 
embeded tags!

-Yatin


J.Pietschmann wrote:

Idhaya Chandran wrote:


You can use xsl:value-of select={$welcome_title}/



That's a bad idea. This is a syntax error.


From: Yatin Shah [mailto:[EMAIL PROTECTED]]


If the welcome_title was b Hello. Welcome to Acme, Inc. lt;/bgt;
Then the embeded HTML code is not interperted as HTML tags.




You should not put HTML snippets into a database. If you
want to extract them with Cocoon and have them delivered
as HTML in the output, you'll have to run them through an
XML parser. Just forget about simple solutions.

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]





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




Hi everyone, is there also an official cocoon news group?

2003-02-13 Thread Guenther Schmidt
mailing lists are sometimes inconvenient, (filtering, keeping track and such).

Guenther

-
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: Hi everyone, is there also an official cocoon news group?

2003-02-13 Thread Nicola Ken Barozzi


Guenther Schmidt wrote, On 14/02/2003 0.24:

mailing lists are sometimes inconvenient, (filtering, keeping track and such).


gmane.text.xml.cocoon.user

Look at www.gmane.org

I'm posting from gmane now :-)

--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-



-
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: Hi everyone, is there also an official cocoon news group?

2003-02-13 Thread Martin Holz
Nicola Ken Barozzi [EMAIL PROTECTED] writes:

 Guenther Schmidt wrote, On 14/02/2003 0.24:
  mailing lists are sometimes inconvenient, (filtering, keeping track and such).
 
 gmane.text.xml.cocoon.user
 
 Look at www.gmane.org
 
 I'm posting from gmane now :-)

What is the email address for posts?

Thank you.

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: Hi everyone, is there also an official cocoon news group?

2003-02-13 Thread Guenther Schmidt
Nicola Ken Barozzi wrote:

 
 
 Guenther Schmidt wrote, On 14/02/2003 0.24:
 mailing lists are sometimes inconvenient, (filtering, keeping track and
 such).
 
 gmane.text.xml.cocoon.user
 
 Look at www.gmane.org
 
 I'm posting from gmane now :-)
 
Yep, thanks Ken, it worked!


-
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: Hi everyone, is there also an official cocoon news group?

2003-02-13 Thread Guenther Schmidt
Hallo Martin,

Deine Eigene. Schick einfach ein Posting ab und gleich darauf erhälst Du
eine Mail auf die Du nur Replyen nusst

Gruss

Günther


-
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: embedding graphics

2003-02-13 Thread joni santoso



There are at least two possiblities:
- absolutely positioned block-containers
- put the images in two adjacent table cells and make
  the first cell narrow so that the image within 
overflows
  into the next cell.

could you give me the snippets please.



You probably need to set the baseDir for FOP. Look it up
in the documentation for the fo2pdf serializer.



do i need to map the images to the sitemap?

btw, is there a dtd/schema for xsl-fo document so that 
someone can know what elements/attributes can be inside an 
element?

thx
===
Meriahkan Hari Kasih Sayang dengan mengirimkan Kartu Elektronik PlasaCom kepada kerabat dan teman yang Anda kasihi !
Pilih kartu favorit Anda di Polling Lomba Desain Kartu Tema Valentine 
di http://kartu.plasa.com/lomba/
===

-
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: Scheduler with cocoon

2003-02-13 Thread Niclas Hedhman
On Friday 14 February 2003 05:17, Guenther Schmidt wrote:
 provided you're using Linix, you might want to create a cron job a'la wget
 http://url that triggers your pipeline.

If you are not Linux expert, but using it more casually, the above can seem a 
bit cryptic.

cron is a time scheduler in Linux, which executes shell scripts according to 
settings in a table. Most Linux Distros has a default cron configuration that 
is pretty is to use. For RedHat, create a sheel script and place it in 
/etc/cron.daily, and it will execute once a day (think it is in the middle of 
night).

The script should look like this;

#!/bin/sh
#

wget http://www.mydomain.com/cocoon/theResource

and I think you need to set the x flag on the script file, such as;

chmod +x mydailyrequest.sh


That should be crystal clear.

 This is just a fallback possibility if nobody comes up with a better
 answer.

I think this is a perfect solution, as cron is extremely reliable.

 Guenther (turning 35 in 2.5 hours)

Niclas , turned 35 29680 hours ago ;o)   New yardstick for age?

-
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 : Scheduler with cocoon

2003-02-13 Thread Xavier RODRIGUEZ
But I would like something to be integrated into cocoon, in this way the
final user will easily change the hours for example... 
Someone tells me about wyona cms (http://www.wyona.org) that integrates
a scheduler ... I'm now probing this solution

Thanks 

|| -Original Message-
|| From: Niclas Hedhman [mailto:[EMAIL PROTECTED]] 
|| Sent: Friday, February 14, 2003 7:11 AM
|| To: [EMAIL PROTECTED]
|| Subject: Re: Scheduler with cocoon
|| 
|| 
|| On Friday 14 February 2003 05:17, Guenther Schmidt wrote:
||  provided you're using Linix, you might want to create a 
|| cron job a'la wget
||  http://url that triggers your pipeline.
|| 
|| If you are not Linux expert, but using it more casually, the 
|| above can seem a 
|| bit cryptic.
|| 
|| cron is a time scheduler in Linux, which executes shell 
|| scripts according to 
|| settings in a table. Most Linux Distros has a default cron 
|| configuration that 
|| is pretty is to use. For RedHat, create a sheel script and 
|| place it in 
|| /etc/cron.daily, and it will execute once a day (think it is 
|| in the middle of 
|| night).
|| 
|| The script should look like this;
|| 
|| #!/bin/sh
|| #
|| 
|| wget http://www.mydomain.com/cocoon/theResource
|| 
|| and I think you need to set the x flag on the script file, such as;
|| 
|| chmod +x mydailyrequest.sh
|| 
|| 
|| That should be crystal clear.
|| 
||  This is just a fallback possibility if nobody comes up 
|| with a better
||  answer.
|| 
|| I think this is a perfect solution, as cron is extremely reliable.
|| 
||  Guenther (turning 35 in 2.5 hours)
|| 
|| Niclas , turned 35 29680 hours ago ;o)   New yardstick for age?
|| 
|| -
|| 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]