use aggregation in site map

to create a final xml from some xml fragments

we have test many ways to solve a problem like this
from xsp (dynamic pages) to c or x include but we have a least descide
touse sitemap aggregation

stavros



On Mon, 13 Jan 2003, Steve Millington wrote:

> Being a newbee to Cocoon, I am wondering if someone can help me with a
> quick strategy to solve the following problem.
>
> I already have a Java program that can produce XML text.
>
> For example, I have a java Bean that has a generate() method that
> returns a String that contains a valid XML fragment.
>
> I would like to use this generate XML in a pipeline, but I can't figure
> it out. The method of attack I used was to use XSP and have an xsp page
> something like:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <xsp:page language="java"
> xmlns:xsp="http://apache.org/xsp";
> xmlns:xsp-request="http://apache.org/xsp/request/2.0";>
>
> <xsp:structure>
>   <xsp:include>com.mystuff.MyBean</xsp:include>
> </xsp:structure>
>
> <page>
>   <xsp:logic>
>    MyBean mb = new MyBean();
>    String theXML = mb.generate();
>   </xsp:logic>
>   <xsp:expr>theXML</xsp:expr>
> </page>
>
> </xsp:page>
>
> This does not work as I had hoped. The 'theXML' data is not placed into
> the XML tag tree, but rather is used as CDATA inside my <page> tag.
> Is there something cunning I can do to persuade xsp that the data should
> be used to generate XML tag structure, rather than it being textual data.
>
> Or maybe I am barking up the wrong Tree. I would write some
> implementation of Generator, but that looked a bit too complex for my
> liking since it would probably require the coding of MyBean to produce
> some sore of parsed XML rather than the text.
>
> Thanks for any help.
>
> Steve
>
>
>
> ---------------------------------------------------------------------
> 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]>

Reply via email to