cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Include Pipeline output in XSP.
Date Fri, 29 Mar 2002 02:19:02 GMT
> From: sandhu@terra-firma [mailto:sandhu@apparelxml.net]
> 
> Dear Roman,
> 
> Were u able to give pipeline as src to serverpages generator ?

http://localhost:8080/sub/xsp-cocoon

If you spend some time on samples it will save bandwidth of all readers
of this list.

Regards,
Vadim


> I am still struggling for this to work -
> 
> What I now see :
> 
> 1. If I give cocoon pipeline  as a serverpages generator source  -
> 
> <map:generate type="serverpages"
> src="cocoon:/shxmldb/docs/addressbook/?xpath=style" />
> 
> where the src above is a working Xindice pipeline with xml serializer
:
> Result : I get the <dependency> tag  and nothing else.
> 
> This is because output from the Xindice pipeline's XML serializer the
tags
> are in one line w/o any whitespaces as below :
> ( i see in 'view source' )
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xsp:page xmlns:xsp="http://apache.org/xsp"
> language="java"><showroom><test1><style
> xmlns:collection="http://apache.org/cocoon/xmldb/1.0"
> xmlns:src="http://xml.apache.org/xindice/Query"
> src:col="/db/addressbook" src:key="1002.xml">
> 
> I saved the output from Xindice pipeline, placed
> <xsp:page>,<showroom>,<test1> &<style> on different lines
> and it worked perfect.
> 
> I tried other XML-outputting pipelines feeding serverpages generator -
same
> <dependency> result.
> 
> So, what i can see is XMLSerializer seems to ALWAYS output multiple
tags w/o
> breaks and
> ServerPagesGenerator cannot accept this  XML . Is this a bug or has
anyone
> fed a pipeline o/p
> to a serverpages generator .
> 
> Any hints
> Hope above clear ,
> 
> Sandhu
> 
> 
> 
> ----- Original Message -----
> From: "KOZLOV Roman" <r-kozlov@opencascade.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Tuesday, March 26, 2002 1:41 PM
> Subject: Re: Include Pipeline output in XSP.
> 
> 
> > Hi Sandhu,
> >
> > As it was already described in the list, you can generate in 
> > separate pipeline
> > (or match)  your XSP as XML first, aggregating with or transforming 
> > from your
> > Xindice query results. Then you can refer to this pipeline as to a 
> > source for XSP generator in other pipeline.
> >
> > Best regards
> >     Roman
> >
> > "sandhu@terra-firma" wrote:
...


---------------------------------------------------------------------
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