Hello,
I'm doing my first steps with cocoon. This is what I'm trying to do:
-query data form a database
-convert result set to xml
-display data in a form field
I have difficulties binding the retrieved xml to the form. The retrieval
works ok. Please see the sample.xml below original message. I
Hello,
I'm relatively new to using Cocoon.
I feel the information provided about LDAP Transformer on Cocoon Website
is not sufficient. I want to carry out LDAP
authentication inside Cocoon. How can
I use LDAP Transformer for this purpose ? Could you please suggest any
better way of achieving t
Hello, think you mean something like:
where your ldapinfo.xml looks something like:
http://apache.org/cocoon/LDAP/1.0";>
3
ldap://
389
SUBTREE_SCOPE
${cocoon.parameters.ldap_searchbase}
(sAMAccountName=ramanavi)
name
sn
mail
distinguishedName
lastLogon
sAMAccountName
Hi,
We have the following use case and I would like to know, if there is a
recommended solution for this:
We are developing a generic form framework based on cform which should
roughly use the following workflow:
1. Display input forms until successfully validated (can be single-page as
well as m
Hi,
Is it possible (or impossible) to set the cookie domain at the time (or
after) the cookie creation? I use Portal block, thus Auth-framework, and
i'd like to set the domain to ".mydomain.com" instead of
"www.mydomain.com" for subdomain issues (to be able to keep the session
with subdomains
Hello,
think you'r heading for major headache the way you are trying to use
Cforms/binding! What your are describing is pretty well possible, but it will
become unnecessary hard to store your date (how are you planning this? After
the form is submitted, find out the different fields, and create
Hi,
I don't know much about ojb. But are you suggesting a usage like this:
http://www.guschtel.de/HP5/linux/ojbjdo_dmton.php
If yes, I don't see where the benefit of cocoon lies anymore. My aim is to
simply the whole process from data retrieval to display. I don't have much
data to return to th
>
>
> Hi,
>
> I don't know much about ojb. But are you suggesting a usage like this:
>
> http://www.guschtel.de/HP5/linux/ojbjdo_dmton.php
indeed, except that the example is a little hard/large for a first time use.
Look for BrickCMS (heard there was even an easier example but forgot its nam
I am quite new to flowscript, so this is a basic quesiton...
However, I have not been able to get any of the examples I found on
Google to work.
I have the following flowscript:
function cleanWordHtml() {
var base = Packages.java.lang.String(cocoon.parameters["base"]);
var page = Packages.java.la
Since you want an overview of the filled form, why not do something like:
1) call a pipeline from flow with params holding the widgetids:widgetvalues
2) generates a cocoon:/pipeline with the jx generator (see the cocoon:/pipeline
below)
3) You now have an xml block having the translated labels an
Think you should take a look at the streamgenerator, that should do the job
AS
>
>
> I am quite new to flowscript, so this is a basic quesiton...
> However, I have not been able to get any of the examples I found on
> Google to work.
>
> I have the following flowscript:
> function cleanWordHt
It reads a Cocoon pipeline, which converts a Word HTML file to XML.
Then it sends this as a string in a parameter, to a pipeline that
processes it further.
Why not read WordML? :)
What I *would like* to do, is to send XML in the parameter, instead of a string.
Is this possible? Does anyone hav
You can put fd:validation in you form. For example, start you fd:form with
http://apache.org/cocoon/forms/1.0#definition";
xmlns:i18n="http://apache.org/cocoon/i18n/2.1";>
return messageValidator(widget);
and in flow
function messageValidator(form){
va
[My apologies for crossposting, but I don't know which community is best
placed to answer this one.]
I am going to be using Cocoon to serve a large and varied collection of
XML documents and I'd like to use eXist as the search system. Cocoon is
running happily within Tomcat on port 80 as the defau
This should do it:
http://cocoon.zones.apache.org/daisy/books/cocoon_forms_book--20051027-15:54:02/publications/pdf/output/book.pdf
>
>
> Hello,
>
> Does anyone know where I can find the documentation for
> form.getWidget()? I'm looking at the following lines in the ajax car
> selector sam
Thanks for the replies.
The problem is that I then have use the xml in a pipeline that starts
with an xquery generator (this is the pipeline I call from the
flowscript):
Therefore, I have to send the xml as a parameter. I could not figure
out how to do that with the stream generator ei
Peter, I think you might want to integrate eXist with your existing
Cocoon installation:
http://wiki.exist-db.org/comments/CocoonInstall
Regards
Hans
On 1/5/06, Peter Flynn <[EMAIL PROTECTED]> wrote:
> [My apologies for crossposting, but I don't know which community is best
> placed to answer thi
I think it should work, when you putt the directory in the Wepapps folder of
Tomcat. You can then access the Admin-Page over http://localhost:8080/exist
It shouldn't matter if you put Cocoon as ROOT-Folder or in a separate Folder
under Webapps.
> -Ursprüngliche Nachricht-
> Von: Peter Flyn
On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote:
> Peter, I think you might want to integrate eXist with your existing
> Cocoon installation:
> http://wiki.exist-db.org/comments/CocoonInstall
Thanks, I'd somehow missed that page. I'll give it a try.
///Peter
--
Thanks for the replies.
The problem is that I then have use the xml in a pipeline that starts
with an xquery generator (this is the pipeline I call from the
flowscript):
How is the xquery using the xml in the parameter? Is it an idea to have another pipe that
*generates* the discuss
The xquery stores the XML file in eXist.
Thus, if I try to insert the xml file using an Xinclude in discuss.xq,
and then use an xinclude transformer after generation,
then it will be put there *after* the query is executed. Which is not
useful in this case, since the XML is needed during execution.
No, this is not what I meant. You can replace:
src="xq/discuss.xq"
by:
src="cocoon:/insert-whtm-in-query/discuss.xq/path-to-whtm"
And create an new pipeline that includes the cleaned whtm into your xquery
instruction.
:-)
Jonas Lundberg wrote:
The xquery stores the XML fil
Peter Flynn wrote:
On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote:
Peter, I think you might want to integrate eXist with your existing
Cocoon installation:
http://wiki.exist-db.org/comments/CocoonInstall
Thanks, I'd somehow missed that page. I'll give it a try.
Hi,
maybe I'm mi
That would work, if I could do it...
But xqueries are not written in XML, so how can I then include the XML
in a good place in my xquery?
:-(
Hans
On 1/5/06, Geert Josten <[EMAIL PROTECTED]> wrote:
> No, this is not what I meant. You can replace:
>
> src="xq/discuss.xq"
>
> by:
>
>
Jonas Lundberg wrote:
The xquery stores the XML file in eXist.
Thus, if I try to insert the xml file using an Xinclude in discuss.xq,
and then use an xinclude transformer after generation,
then it will be put there *after* the query is executed. Which is not
useful in this case, since the XML is
Has anyone interfaced with Hibernate in a pipeline? Did you write a
transformer, call JavaFlow or something else?
I'm thinking of using the Hibernate XML export feature to load objects
into my pipeline (inside a transformer). I'd certainly appreciate
hearing about any existing work in this area.
You may also have a look at http://wiki.apache.org/cocoon/EXistInCocoon
Just a few jars to add and some web.xml changes, an old cocoon release
is mentioned there but it worked for me.
From what i remember, the cocoon app in eXist is just a light application.
Phil
Jonas Lundberg wrote:
Peter
Yes, de-serializing with util:eval works in some cases. However, it
does not work for documents that contain < or > in the text contents,
because that will then be de-serialized as well. This will cause an
error.
For instance, the XHTML:
Err, perhaps switch to the XML syntax of the XQuery language? That should be available and I would
be surprised if it is not supported.
I believe there are converters that can translate one to the other..
Regards,
Geert
Jonas Lundberg wrote:
That would work, if I could do it...
But xqueries
That might work, but it is not a good solution for me, although it
might work in other cases. My xqueries are very complex.
But this can't end here, can it? Is there really no way of returning
XML in a parameter from a flowscript in Cocoon?
Regards,
Hans
On 1/5/06, Geert Josten <[EMAIL PROTECTED
You can parse the output stream in Flowscript, just like you would in Java or Javascript and put a
DOM object in the parameter you are passing to the pipeline, but I really don't know how you should
access it from your xquery generator. You could try to use the eval function as well?
Regards,
G
On Thu, 2006-01-05 at 12:00, Christian Barth wrote:
> I think it should work, when you putt the directory in the Wepapps folder of
> Tomcat. You can then access the Admin-Page over http://localhost:8080/exist
> It shouldn't matter if you put Cocoon as ROOT-Folder or in a separate Folder
> under Web
Jonas Lundberg wrote:
The xquery stores the XML file in eXist. (...)
You can store xml in eXist from flowscript, without using xquery, as
described in:
http://wiki.apache.org/cocoon/CformsExistAndFlow
Zbigniew Bomert
-
To
So, what you are saying now is that you cannot pass an xml document as
a parameter in Cocoon, at all?
If one can pass xml documents as parameters, then...
How would I parse the output stream, and pass along the DOM object?
Regards
Hans
On 1/5/06, Geert Josten <[EMAIL PROTECTED]> wrote:
> You can
Does the xquery do any processing on the xml, or does it just use
eXist's update extensions to store it as-is? If you need to do the
latter you can use an XMLDBSource to write the file directly into eXist
from your flowscript.
Jonas Lundberg wrote:
The xquery stores the XML file in eXist.
Th
Thanks,
yes that would be a good way to store the document. (I currently do
that using XSP)
However, I should add that the xQuery is the core of a content
management system, so it also does version management, among other
things, (while storing the file). Therefore, storing a temporary file,
does
On Thu, 2006-01-05 at 12:31, Huib Verweij wrote:
> Peter Flynn wrote:
> > On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote:
> >
> >> Peter, I think you might want to integrate eXist with your existing
> >> Cocoon installation:
> >> http://wiki.exist-db.org/comments/CocoonInstall
> >>
> >
>
So, what you are saying now is that you cannot pass an xml document as
a parameter in Cocoon, at all?
What do you mean with xml document and what with parameter?
The parameters you pass from FlowScript can contain any object type, but I'm pretty sure that
does not allow that. That is probably
David Kavanagh wrote:
Has anyone interfaced with Hibernate in a pipeline? Did you write a
transformer, call JavaFlow or something else?
I'm thinking of using the Hibernate XML export feature to load objects
into my pipeline (inside a transformer). I'd certainly appreciate
hearing about any exis
Greetings, all!
One of the things that makes Cocoon development difficult for me is
that, when exceptions are thrown, I see the file name and line number
of the java source code where the exception occurred, but NOT the file
name and line number of the sitemap that called the component. For
Cocoo
Thanks to the responses, that's what I needed!
Dustin N. Jenkins wrote:
Does anyone have experience writing Custom Form Validators? We need a
way of accessing our Spring Service Layer from one of our Cocoon
Custom Validators, but the Validator doesn't seem to have access to
the HTTP Reques
> Greetings, all!
>
> One of the things that makes Cocoon development difficult for me is
> that, when exceptions are thrown, I see the file name and line number
> of the java source code where the exception occurred, but NOT the file
> name and line number of the sitemap that called the component.
On 1/5/06, Jason Johnston <[EMAIL PROTECTED]> wrote:
> > Greetings, all!
> >
> > One of the things that makes Cocoon development difficult for me is
> > that, when exceptions are thrown, I see the file name and line number
> > of the java source code where the exception occurred, but NOT the file
>
Can I chain another transform to my SourceWritingTransformer sitemap
pipeline?
I imagine it would look like this. But the resulting png is not effected by
"another.xsl".
---
Lincoln wrote:
Can I chain another transform to my SourceWritingTransformer sitemap
pipeline?
Yes, you can add as many transformers as you like in any order. This is
the whole idea behind pipelines! :-)
I imagine it would look like this. But the resulting png is not effected by
"another.xs
Here's Another.xsl
---
http://www.w3.org/1999/XSL/Transform";>
---
And here's "rect.svg"
---
http://www.w3.org/2000/svg"; width="100" height="100">
---
> -Original Message-
> From: Jason Johnston [mailto:[EMA
hi...
i'm newbie in cocoon and lenya. i have already up lenya server (lenya
1.2.4 n cocoom 2.1.7) on top tomcat server. My question are :
1. Can i up my cocoon server at the same time lenya up too?
2. Can i create new application based on cocoon then the application
can integrate with lenya cms??
Am Freitag, 6. Januar 2006 07:45 schrieb zulhisham abu nawar:
Hello,
> i'm newbie in cocoon and lenya. i have already up lenya server (lenya
> 1.2.4 n cocoom 2.1.7) on top tomcat server. My question are :
> 1. Can i up my cocoon server at the same time lenya up too?
yes. Lenya is cocoon-based, s
Just incase anyone was keen to know the solution to this thread.
It was just a namespace issue. I had to change the namespace on SVG tag on
the original "rect.svg" from the default xmlns namespace to xmlns:svg.
Thanks to Jason Johnston for the help.
Linc
> -Original Message-
> From: Lin
49 matches
Mail list logo