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
- 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
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.
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
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:
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
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
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:
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,
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/
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
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 ...
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
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
- 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
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
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
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
/* 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 ***/
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:
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.
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:
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
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 {
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
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=""
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
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
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
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
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:
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
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
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
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:
-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 +
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
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}/
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
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,
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.
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
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
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
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
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
--
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
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
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
-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...
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
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
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
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
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
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
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 ^(.+)
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
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
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;
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
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
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
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
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)
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
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,
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
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,
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?
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!
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
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
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
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:
75 matches
Mail list logo