Re: Include Pipeline output in XSP.
Oops , didnt chk the smpls - but even now the prob seems to be extra namespaces(not present in smpls). This worked in the Transformer XSL of the Xindice pipeline : xsl:stylesheet version=1.0 xmlns:apparelshow=http://www.apparelxml.net/apparelshow; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xml:space=preserve adding : xml:space=preserve Sandhu - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 7:49 AM Subject: RE: Include Pipeline output in XSP. From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] 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 - 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: Include Pipeline output in XSP.
Dear Roman, Were u able to give pipeline as src to serverpages generator ? 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=javashowroomtest1style 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 [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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: Reasons to do this : 1.I need to extract XML from Xindice using Pseudo-Protocol. 2. The extracted xml has namespaces pointing to builtin logicsheets . 3. The namespace has to be resolved in XSP - generator. (Is there any other way w/o type=serverpages generator to resolve namespace). Therefore the need to somehow include external(pipeline generated) xml in serverpages generator. Thanks Sandhu - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 9:58 AM Subject: RE: Include Pipeline output in XSP. Hm, why do you want to do this? Anyway, take a look at the sub sitemaps samples then to get an idea what Cocoon can do. Vadim From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] CInclude transformer can do the job. See samples. Dear Vadim, i've tried that , but the transformer works after the generate bit - i.e xml gets included in the transformer stage- i need to work on included xml in xsp generator itself - before transform stage. basically need to call a pipeline from within xsp page and work on the included xml . Any pointers ? tks. -Original Message- From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Include Pipeline output in XSP. Hi users, I need to include cocoon pipeline output into an XSP page - has anyone done this using the pseudo protocol xmldb:xindice:// . XSP page to have something like : xsl:variable name=bbb select=cocoon://docs/file.xml) / or include or import etc. I need to work on the incoming xml in the XSP itself. Appreciate any help. Rgds, -S - 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] - 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]
RE: Include Pipeline output in XSP.
From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] 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=javashowroomtest1style 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 [EMAIL PROTECTED] To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include Pipeline output in XSP.
CInclude transformer can do the job. See samples. Vadim -Original Message- From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Include Pipeline output in XSP. Hi users, I need to include cocoon pipeline output into an XSP page - has anyone done this using the pseudo protocol xmldb:xindice:// . XSP page to have something like : xsl:variable name=bbb select=cocoon://docs/file.xml) / or include or import etc. I need to work on the incoming xml in the XSP itself. Appreciate any help. Rgds, -S - 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: Include Pipeline output in XSP.
CInclude transformer can do the job. See samples. Dear Vadim, i've tried that , but the transformer works after the generate bit - i.e xml gets included in the transformer stage- i need to work on included xml in xsp generator itself - before transform stage. basically need to call a pipeline from within xsp page and work on the included xml . Any pointers ? tks. -Original Message- From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Include Pipeline output in XSP. Hi users, I need to include cocoon pipeline output into an XSP page - has anyone done this using the pseudo protocol xmldb:xindice:// . XSP page to have something like : xsl:variable name=bbb select=cocoon://docs/file.xml) / or include or import etc. I need to work on the incoming xml in the XSP itself. Appreciate any help. Rgds, -S - 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]
RE: Include Pipeline output in XSP.
Hm, why do you want to do this? Anyway, take a look at the sub sitemaps samples then to get an idea what Cocoon can do. Vadim From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] CInclude transformer can do the job. See samples. Dear Vadim, i've tried that , but the transformer works after the generate bit - i.e xml gets included in the transformer stage- i need to work on included xml in xsp generator itself - before transform stage. basically need to call a pipeline from within xsp page and work on the included xml . Any pointers ? tks. -Original Message- From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Include Pipeline output in XSP. Hi users, I need to include cocoon pipeline output into an XSP page - has anyone done this using the pseudo protocol xmldb:xindice:// . XSP page to have something like : xsl:variable name=bbb select=cocoon://docs/file.xml) / or include or import etc. I need to work on the incoming xml in the XSP itself. Appreciate any help. Rgds, -S - 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: Include Pipeline output in XSP.
Reasons to do this : 1.I need to extract XML from Xindice using Pseudo-Protocol. 2. The extracted xml has namespaces pointing to builtin logicsheets . 3. The namespace has to be resolved in XSP - generator. (Is there any other way w/o type=serverpages generator to resolve namespace). Therefore the need to somehow include external(pipeline generated) xml in serverpages generator. Thanks Sandhu - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 9:58 AM Subject: RE: Include Pipeline output in XSP. Hm, why do you want to do this? Anyway, take a look at the sub sitemaps samples then to get an idea what Cocoon can do. Vadim From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] CInclude transformer can do the job. See samples. Dear Vadim, i've tried that , but the transformer works after the generate bit - i.e xml gets included in the transformer stage- i need to work on included xml in xsp generator itself - before transform stage. basically need to call a pipeline from within xsp page and work on the included xml . Any pointers ? tks. -Original Message- From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Include Pipeline output in XSP. Hi users, I need to include cocoon pipeline output into an XSP page - has anyone done this using the pseudo protocol xmldb:xindice:// . XSP page to have something like : xsl:variable name=bbb select=cocoon://docs/file.xml) / or include or import etc. I need to work on the incoming xml in the XSP itself. Appreciate any help. Rgds, -S - 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]
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: Reasons to do this : 1.I need to extract XML from Xindice using Pseudo-Protocol. 2. The extracted xml has namespaces pointing to builtin logicsheets . 3. The namespace has to be resolved in XSP - generator. (Is there any other way w/o type=serverpages generator to resolve namespace). Therefore the need to somehow include external(pipeline generated) xml in serverpages generator. Thanks Sandhu - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 9:58 AM Subject: RE: Include Pipeline output in XSP. Hm, why do you want to do this? Anyway, take a look at the sub sitemaps samples then to get an idea what Cocoon can do. Vadim From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] CInclude transformer can do the job. See samples. Dear Vadim, i've tried that , but the transformer works after the generate bit - i.e xml gets included in the transformer stage- i need to work on included xml in xsp generator itself - before transform stage. basically need to call a pipeline from within xsp page and work on the included xml . Any pointers ? tks. -Original Message- From: sandhu@terra-firma [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Include Pipeline output in XSP. Hi users, I need to include cocoon pipeline output into an XSP page - has anyone done this using the pseudo protocol xmldb:xindice:// . XSP page to have something like : xsl:variable name=bbb select=cocoon://docs/file.xml) / or include or import etc. I need to work on the incoming xml in the XSP itself. Appreciate any help. Rgds, -S - 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] - 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]