Vincent Massol wrote:
I am getting several CatalogManager.properties warnings
on the console. However everything runs fine. I'd like to
know what I could do to remove these warnings.
If you are talking about the messages from the entity resolver
(e.g. Resolved ...) then you can turn those off
Can I make a wrapper XSP that, depending on a varibel from the browser,
includes one XSP inside or includes another XSP inside?
Med venlig hilsen/Best regards
Søren Neigaard
System Architect
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Viktor,
I think this example may fit the first of your questions:
map:pipeline
map:match name=wildcard pattern=select-resource-db.xml
map:generate type=file src=docs/all-parameters.xml/
map:transform src=stylesheets/select-resource.xsl/
Hi Friends !
I would to know more about how to get queries results in xsl..
Where can I find information about this ?
Thanks!
FerranDo You Yahoo!?
Find the one for you at Yahoo! Personals.
Ferran,
take a look at SQLTransformer.
Best regards,
P.S.
Please, use plain text for your message sto this mailing list.
-
Luca Morandini
GIS Consultant
[EMAIL PROTECTED]
Hello Luca!
Thank you for your reply!
Could you please describe in few words what this example does?
Regards,
Viktor
-Ursprüngliche Nachricht-
Von: Luca Morandini [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 15. November 2001 09:26
An: [EMAIL PROTECTED]
Betreff: RE: Cocoon: Few
For a more flexible flow control you can use selectors:
http://xml.apache.org/cocoon2/userdocs/selectors/selectors.html
Personally, I don't like selectors' syntax and prefer the Struts's version
of flow control:
action name=logon ...
forward name=success path=welcome.jsp /
forward
Hello,
I am new to use cocoon and xml technologies, what i am trying to do is
to generate dynamically
an rtf document from an xml document.
For the same i am doing the following:
1)an xml document which contains my content.
2)an xsl:fo for the document to present in the required manner.
Viktor,
the example reads a row from the dbms
(select-resource-db.xml) and presents it as a read-only (say,
display-resource.html) or editable (edit-resource.html) HTML.
Of course, only the second map:match is invoked from the
browser, the first one being an internal
Dear All
Is it possible to get Cocoon 1.x to output plain text to a web browser
using
an XSL stylesheet? I find that unless the resulting document is valid XML
(which plain text isn't) Cocoon gives an error.
As I remember, you should use a fake root element, which will be stripped
from the
I'm not sure, but maybe this can be achieved by using XML entity references.
See this message from Struts mail list for an example:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg13216.html
regards,
Konstantin
While I was rewriting my sitemap file today, I noticed how much
Hi Anthony,
I was wondering if it was only me whos having the problem.
My Problem:
I am using Cocoon1.8 with iAnywhere Wireless Server(from Sybase). For
simplicity I am using a simple XML file with a simple XSL stylesheet which
transforms the XML to HTML
Everything is OK until I request around
Hi,
I would like to use this tag: xsp-response:send-redirect url=bf_login/.
I have inserted the name space
xmlns:xsp-response=http://apache.org/xsp/response/2.0; but the resulting
code is only
xspAttr.addAttribute(, url, url, CDATA, bf_login);
The most comprehensive documentation I found about how sitemaps works -
sitemap_xmap.xsl, you could find in cocoon sources - it's how the
sitemap is transformed to java for further compiling...
Best wishes,
Nick
-Original Message-
From: Bobby Koya [mailto:[EMAIL PROTECTED]]
Sent:
Luca,
Sorry for disturbing you once again, but it isn't clear to me yet.
Could you please take a look at the steps I need to make?
The GOAL: it must be shown (on mouseclick on the link PDF) a PDF file
that should be generated as following:
1. I make a TEX(LATEX) document from XSP page that
Viktor,
my suggestion was addressed only to the first of your questions, not the
rest of them.
The transformation of a TEX into a PDF is beyond my knowledge; moreover,
since TEX is not XML, I don't think you can write a Transformer or
Serializer to emit your output in PDF using
I have read that I can include content from one XSP into another XSP by
saying:
-
util:include-uri href=http://localhost:8080/foo/simple.xml/
-
But how can I, based on a parameter, choos between two different XSP, like
this pseudo code:
-
xsp:logic
Hi
I would to make an esql query, in my database (mysql). I'm using an xsp file and xsl file. But what I need to put in the sitemap?
That not works!
map:match pattern="xsp/*" map:generate src="docs/samples/xsp/{1}.xsp"/ map:transform src="stylesheets/page.xsl"/ map:serialize/ /map:matchDo You
Please post in plain text!
Your question:
If your url is http://[your-server]/[your-context]/xsp/test.xsp; you need
an xsp-file with the name test.xsp.xsp because you match a string behind
xsp/*. The matcher returns in {1} test.xsp.
If you don't want to name your files .xsp.xsp ;-) I think you
Not sure I understand the problem. Why can't you do this?
1) write an xsp that outputs in xml the info you need to build the tex doc
2) write an xsl that outputs tex
3) write a new serializer that generates pdf by calling pdflatex
4) put the above 3 items in a pipeline and run them
But why
I want to chose between two XSP's based on a parameter. I have attached 3
XSP's, general_update.xml should choose either of the two other XSP's and
return those, but it returns a blank page!?
I'm pretty new to XSP, and the person who normally writes XSP are on holiday
(damn), so please advice :)
Hello, David!
1) xsp and xsl that make tex file are already written.
3)The problem is that I need a self-written serializer that makes from
tex a pdf file.
I have unfortunately no experience in writing serializers.
Is that difficult? Are there any examples or source code of already
existing
That's cause you're using the wrong serializer.
Add this to your map:serializers:
map:serializer name=text mime-type=text/plain
src=org.apache.cocoon.serialization.TextSerializer/
Then do this in your pipeline:
map:serialize type=text/
DR
At 10:12 PM 11/14/01 +, you wrote:
Dear
Hi,
A couple of quick questions.
When I include java files inside a
xsp:structurexsp:include//xsp:structure, where should I put the jar
files? I know that they are discovered if place them in ${TOMCAT_HOME}/lib,
but I am having problems with name collisions. Specifically, a 3rd party
app's
Title: Message
Hi,
I've got some
trouble using Netscape. First I made a page and just used Iexplorer. Everyting
looks normal. Now I tried to watch the same page in Netscape. I expected some
minor differences but Netscape even up the pages source code. It puts some extra
characters between
Without seeing your (html) output its hard to say - but I've been having a
lot of problems with javascript interferiong with netscape's font rendering
(strange characters etc).
Perhaps you can send some info so we can swap notes - I DO think it's a
Netscape bug ultimately though.
Regards,
You're posting your message in HTML format. Change to Plain Text format
for your email and then post the NS source into the mail...
Mark
-Original Message-
From: Henrik Hofmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 9:15 AM
To: [EMAIL PROTECTED]
Subject: Strange
HI!
I'm new with the xsp, and I'm trying to do the examples that there are in the web.
I think I'mdoing something wrongMaybe in the sitemap the type="serverpages" not works. Why? I'vemade a bad configuration ?
FerranDo You Yahoo!?
Find the one for you at Yahoo! Personals.
Well, I think I found the problem, its about the encoding and other META
Tags in the Header. After saving the source to text and deleting the
Meta Tags I opend the page again and it looked normal. Saved the now
normal source again and put the Metatag in it it was messed up again.
The Tag was the
Okay, one piece of theoratical question. If I want to use xml data output
from a bunch of EJBs (JBoss+Cocoon stuff), shall I better write a
Transformer or a Generator for getting the data?
I'd vote for Transformers, which looks for xml tags in a source xml like
customer-data/, and replaces it
Yeah, I noticed that after I wrote my message, and got that to work.
Thanks!
DR
At 08:37 AM 11/15/01 +0100, you wrote:
Hi,
but to work around you can have a selector within the action, which
influence the flow bassed on a comparsion of a sitemap parameter
with value.
HTH
Max
Yes. 2 options:
1) If the user won't need to access the intermediate doc:
map:serializer name=fo2pdf src=org.apache.cocoon.serialization.FOPSerializer
mime-type=application/pdf/
map:match pattern=yourpage
map:generate type=serverpages src=your.xsp/
map:transform
XSP is not recognizing your tag, but taking it as text, most likely because of some
syntax problem in your XSP.
Can't debug it without more details though.
Can you post the portion of XSP code where this appears and maybe we can figure it out?
DR
At 10:47 AM 11/15/01 +0100, you wrote:
Hi,
Thanks,
I solved the problem inside the sitemap with a action class.
But maybe you know a more easier way to control workflow within a xsp- file.
Is there somthing like xsp:if/?
Heiko
-Ursprüngliche Nachricht-
Von: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag,
Looks great, but doesn't this mean a less efficient system - ie isn't it
going through a number of extra steps to arrive at thge same functionality?
Regards,
Anthony Aldridge
Lead Application developer
Managed Intranet Hosting
CSC
JPMorganChase
Personal GDP: 325-8338
MIH Hotline: 876-1300
On Thursday 15 November 2001 11:50 am, you wrote:
Okay, one piece of theoratical question. If I want to use xml data output
from a bunch of EJBs (JBoss+Cocoon stuff), shall I better write a
Transformer or a Generator for getting the data?
I'd vote for Transformers, which looks for xml tags
Hi
everybody,
We see a lot of you
are working with logicsheet. We alse are itching for a go, but are not
succeeding at all. It's true we're newbies in the Cocoon world, but are
resolving a lot of things and hope to be able using logicsheet soon. The problem
is that we can't find any
On Thu, Nov 15, 2001 at 12:28:30PM -0500, Peter Royal wrote:
On Thursday 15 November 2001 11:50 am, you wrote:
Okay, one piece of theoratical question. If I want to use xml data output
from a bunch of EJBs (JBoss+Cocoon stuff), shall I better write a
Transformer or a Generator for getting
I've been seeing this message in my logs alot recently and would like to see
it go away. The actual message in the log is:
ERROR (2001-11-15) 12:05.18:008 [cocoon ]
(/cocoon/mark/styles/mystyle.css) HttpProcessor[8080][0]/sitemap_xmap: error
notifier barfs
On Thursday 15 November 2001 12:58 pm, you wrote:
Can you handle situations using this approach where the data changes
meanwhile? Does the setup() runs only once at Cocoon initialization or it
runs once at every page request?
setup() is called for each request. If you need to do stuff just 1x
Hi,
I am using Cocoon 2.0rc2 on Tomcat 4.0.1 on Solaris 2.8, and I am
running into some classloading problems. Here's what I am trying to do.
I've got an XSP page that uses some home-written classes to get some
data from DB2 using Castor as o/r mapping tool. Unfortunately, when
trying to
On Thursday 15 November 2001 03:13 pm, you wrote:
Peter, exactly where had you put your own Transformers? I've tried to put
it in my own package (not in org.apache.cocoon.transformation), jar-ed it
correctly, dropped the jar into Cocoon's main WEB-INF/lib/, configured it
in the sitemap, and
Sounds more like you need to put you jar in your ServletEngines classpath.
-Oprindelig meddelelse-
Fra: Jozsa Kristof [mailto:[EMAIL PROTECTED]]
Sendt: 15. november 2001 12:14
Til: [EMAIL PROTECTED]
Emne: Re: Transformers vs. Generators
On Thu, Nov 15, 2001 at 12:28:30PM -0500, Peter
I need to implement some logic on session timeout event.
I tried to create object which implements HttpSessionBindingListener
interface.
But if I include javax.servlet.http.* class ,
I can not use session object in xsp:logic
even like
String po = (String)
Title: Message
WHAT I AM TRYING TO
DO
Install Cocoon2 rc2 on Tomcat 4.0.1
WHAT I
DID
Base System: Redhat Linux 7.1, JDK 1.3 (IBM)
Servlet Engine: Tomcat 4.0.1
JAVA_HOME, TOMCAT_HOME, and CATALINA_HOME set correctly
Downloaded,unpacked and built Cocoon 2 RC2.
TRIAL1
First the
Netscape 4.x has some trouble with UTF-* encoding - better you use
ISO-8859-1. Encoding of the serializer can be configured in the sitemap's
component definition.
map:serializer name=html mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingISO-8859-1/encoding
If you're referencing type=serverpages, then you have to define serverpages
somewhere. e.g.:
map:generator name=serverpages
src=org.apache.cocoon.generation.ServerPagesGenerator label=content/
DR
At 08:14 AM 11/15/01 -0800, you wrote:
HI!
I'm new with the xsp, and I'm trying to do the
Tough call. I'd say it depends. If customer-data/ is going to be replaced with
John Brown, 40 Main St. then I'd say a transform. If customer-data/ is going to
be replace with a large amount of other XML data (i.e., recordsrecordfield
.../field ...//recordrecordfield .../field
Depends on your browser, but in mine (Netscape 6) I sometimes get a blank page when
there's an error in my code.
Check your log files.
DR
At 02:18 PM 11/15/01 -0800, you wrote:
I want to chose between two XSP's based on a parameter. I have attached 3
XSP's, general_update.xml should choose
Maybe you're outputting as unicode instead of ascii and Netscape is mucking it up
somehow.
Try
?xml version=1.0?
or
?xml version=1.0 encoding=UTF-8?
DR
At 04:14 PM 11/15/01 +0100, you wrote:
Hi,
I've got some trouble using Netscape. First I made a page and just used Iexplorer.
Everyting
At 06:50 AM 11/15/01 -0800, you wrote:
Hi,
A couple of quick questions.
When I include java files inside a
xsp:structurexsp:include//xsp:structure, where should I put the jar
files? I know that they are discovered if place them in ${TOMCAT_HOME}/lib,
but I am having problems with name
Hi,
This is the encoding problem, try to change the encoding on the sitemap :
the example is :
map:serializers default=html
map:serializer name=links src=org.apache.cocoon.serialization.LinkSerializer/
map:serializer name=xmlmime-type=text/xml
At 06:49 PM 11/15/01 +0100, you wrote:
Hi everybody,
We see a lot of you are working with logicsheet. We alse are itching for a go, but
are not succeeding at all. It's true we're newbies in the Cocoon world, but are
resolving a lot of things and hope to be able using logicsheet soon. The
Also make sure that you declare this new transformer in your sitemap.
DR
At 09:13 PM 11/15/01 +0100, you wrote:
Peter, exactly where had you put your own Transformers? I've tried to put it
in my own package (not in org.apache.cocoon.transformation), jar-ed it
correctly, dropped the jar into
At 06:01 PM 11/15/01 +0100, you wrote:
Thanks,
I solved the problem inside the sitemap with a action class.
But maybe you know a more easier way to control workflow within a xsp- file.
Is there somthing like xsp:if/?
Heiko
map:select
map:when test= ...
...
/map:when
Actually, very sorry - I think I gave you the wrong advice here. From the docs: A
serializer is the end point of an xml pipeline. It transform SAX events in binary or
char streams for final client consumption.
So I think what I told you to do is wrong. Having a stylesheet that outputs TEX
At 12:17 AM 11/15/01 +0100, you wrote:
On Wed, 14 Nov 2001, David Rosenstrauch wrote:
Also, is it just me or is the flow control in sitemaps really weak?
Yes, this has been recognized and discussion about it are still going on
on the dev list. If you're interested have a look there and help
Hi All,
I am trying to use an xsp page to place some variables
into a session that can be used by other xsp pages.
I have tried the
session:set-attribute name=...
and
parameters.setParameter(me,myvalue);
and even tried setting request 'parameters' with
xsp-request:set-attribute ...
and
Hi,
i don't know anything about a xsp if. If i need a flow control
in xsp i use java, like this:
xsp:logic
if( something_is_true ) {
esql:execute-query
esql:queryQueryA/esql:query
/esql:execute-query
Thanks a lot David,
this is exactly what I'm looking for. Do you know, ware I can find some more
Information's or examples about it. In standard cocoon I can't find a
working example for map:select. What means test=?
Heiko
-Ursprüngliche Nachricht-
Von: David Rosenstrauch
Hei,
if you wnat to show the user on the same URI two
different pages based an a request parameter, then
try to make the decision in the sitemap with the
help of a selector (Just as hint). How to do this
you have to take a look at the docs. There is as long
i know a ParameterSelector, but i
Just curious - was there ever an answer to my original question:
Is it possible to set variables in the sitemap?
Thanks,
DR
Date: Wed, 14 Nov 2001 14:24:28 -0500
To: [EMAIL PROTECTED]
From: David Rosenstrauch [EMAIL PROTECTED]
Subject: Sitemap variables?
X-Spam-Rating: daedalus.apache.org
Cocoon uses its own session class: org.apache.cocoon.environment.Session, so
you should simply use it exactly as if you were using the
javax.servlet.http.Session. Remove javax.servlet.http.* from imports and
everything must work (as I remember Cocoon's session class is imported
already)
Regards,
63 matches
Mail list logo