AW: Adding dynamically element

2001-06-11 Thread Jörn Heid

Thanks for answer.

But there's a problem:

'Giacomo' wrote: An XSP page is a generator, point.. As I have to use a
xml page I would have to write a XSP which reads (from FileReader) the
xml... I think that's not the best way as the pipeline should do this for
me. So I wrote a transformer which works well, but I do not know hoe to get
the HTTPServletRequest (written in another mail).

Am I right? In C1 you could use XSP as a transformer and I'm looking fo
something similar...

JOERN_HEID

-Ursprüngliche Nachricht-
Von: Martin Man [mailto:[EMAIL PROTECTED]]Im Auftrag von Martin Man
Gesendet: Montag, 11. Juni 2001 11:37
An: Jorn Heid
Cc: [EMAIL PROTECTED]
Betreff: Re: Adding dynamically element


On Sun, Jun 10, 2001 at 04:53:37PM +0200, Jorn Heid wrote:
 Yes... As XSP is a generator, should I write my own transformer or
 aggregator... Give me an answer, please... ;(

 The question again:
 I want to produce a html from a xml (not XSP) page but depending on the
 session object there moght be an additional element. In C1 it worked with
 XML-XSP-XSLT-HTML. But how does it (best) work with C2?
 XML-Aggreation-XSLT-HTML or XML-MyTransformer-XSLT-HTML?

in c2 you do it best using XSP, handling session, and xincluding (look at
aggregate.xsp sample) static xml content



rgds,
martin

--

---
Only dead fish swims with a stream
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Adding dynamically element

2001-06-10 Thread giacomo

On Sun, 10 Jun 2001, Samuel ARNOD-PRIN wrote:

 I can not answer correctly to your question...

 but logically there should be a way to do something like this :

No, there is no logic in there.

An XSP page is a generator, point. A C2 pipeline has only one generator.
Transformers cannot produce or be transformed into xsp pages. This is not the
concept.

Giacomo


 map:match pattern=**.xml
 map:generate src={1}.xml/
 map:transform src=myfile.xsp.xsl
   map:generate type=serverpages src=myfile.xsp.xsl/
 /map:transform
 map:serialize/
 /map:match

 otherwise, look in the MAP dtd or schema ...

 -
 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: [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/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]