cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kilmer, Erich" <Erich.Kil...@mmt.bellhowell.com>
Subject RE: XML in database, how to pass to Cocoon?
Date Mon, 13 Aug 2001 17:23:08 GMT
Found an interesting article
(http://www.devx.com/upload/free/features/javapro/2000/08aug00/kj0008/kj0008
-3.asp) that describes how to implement the Producer interface. By doing
this you can make the input XML to Cocoon come from a different source than
a file.
I am giving it a try now.
Is adding your own Producer class still a viable way to do this?
Thanks,
Erich

-----Original Message-----
From: Kilmer, Erich [mailto:Erich.Kilmer@mmt.bellhowell.com]
Sent: Monday, August 13, 2001 11:21 AM
To: 'cocoon-users@xml.apache.org'
Subject: RE: XML in database, how to pass to Cocoon?


OK, I read up on ESQL and can see the database connection params and SQL. Is
this the way that I would read my XML from the database rather than from a
file?
How does this integrate with Cocoon?
Erich

-----Original Message-----
From: Stefan Seifert [mailto:sseifert@pro-vision.de]
Sent: Monday, August 13, 2001 10:41 AM
To: cocoon-users@xml.apache.org
Subject: AW: XML in database, how to pass to Cocoon?



> I have been using Cocoon 1 for a little while and have been happy with
the
> results. Using the browser I can enter a URL that contains the path to
the
> XML file and then Cocoon renders the PDF in the browser. This  works
well.
> Good job to all involved.
> I do have a couple of questions though.
> 
> 1) The technique described above works well for XML files but in my
> application I will read the XML from a blob in the database (which I
know
> how to do). Say I get the XML from the database and put it into a
String. Is
> there any hooks in Cocoon so that I can call a method and pass it the
XML
> string? Where can I see the Cocoon servlets source?

Use the esql-Stylesheet with get-xml, with this you can put a XML tree
from the database in you xml stream generated by cocoon. The xml has to
be wellformed in the database.

> 2) Has anyone managed to get background images working in FOP?

Never tried.
 
> 3) Has anyone managed to format dates in FOP?

Unfortunately XSLT has no date formatting functions. But you can use the
Java Core classes or you own classes for formatting in XSLT using the
java extension support in Xalan. It's the xalan-specific, of course. The
XSLT 1.1 Specs define a product-inpdependet extension support, but this
does not work in the current xalan-version used by cocoon 2. See
Xalan-Homepage on the apache website.

Stefan

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

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

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

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

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

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message