Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 68908 invoked from network); 27 Sep 2005 10:38:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2005 10:38:48 -0000 Received: (qmail 75149 invoked by uid 500); 27 Sep 2005 10:38:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 75107 invoked by uid 500); 27 Sep 2005 10:38:42 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 75067 invoked by uid 99); 27 Sep 2005 10:38:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 03:38:41 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=HTML_30_40,HTML_MESSAGE,HTML_TEXT_AFTER_BODY,INFO_TLD,USERPASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [146.64.10.166] (HELO wabe.csir.co.za) (146.64.10.166) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 03:38:46 -0700 Received: from cs-emo.csir.co.za (cs-emo.csir.co.za [146.64.10.40]) by wabe.csir.co.za (8.13.4/8.13.4) with ESMTP id j8RAZpqI017418 for ; Tue, 27 Sep 2005 12:35:51 +0200 Received: from GW-EMO-MTA by cs-emo.csir.co.za with Novell_GroupWise; Tue, 27 Sep 2005 12:35:51 +0200 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Tue, 27 Sep 2005 12:35:26 +0200 From: "Derek Hohls" To: Subject: Re: Using the output of a pipeline to call another pipeline? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__Part4C6E3B7E.0__=" X-CSIR-MailScanner-Information: Please contact sys-admin at csir dot co dot za for more information X-CSIR-MailScanner: Found to be clean X-MailScanner-From: dhohls@csir.co.za X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=__Part4C6E3B7E.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Its not clear what you mean by the "second pipeline" - do you mean the **.jpg ? If so, can you not simply call that from the page where it needs to appear? (And the page itself is generated using the output from the first pipeline; cinclude or simply a map:aggregate will feed the XML into your=20 page prior to a final transform.) =20 If you need more help, you may have to lay out your problem a little more clearly. >>> my.name.is.hans@gmail.com 2005/09/27 11:40:16 AM >>> I've got a very basic question that I got stuck with.... maybe someone can help me out? I have a web publishing system that stores all images in eXist, using a number as the file name, e.g. 44500.jpg Each image has a metadata file, describing at what URL the image should be shown (and also some other things, not shown here), e.g. webdesign/cocoon banner.jpg In the html files, the url to the file points at its virutal location, and virtual name, e.g. webdesign/cocoon/banner.jpg Thus, I could write a cocoon sitemap matcher like this: ? How to call the second pipeline with the result of the query? The xquery generates the file name to use in the second pipeline, like this 44500.jpg The image is then to be fetched from eXist using this pipeline: But how do I call the second pipeline, using the file name created by the generator in the first pipeline? This is a very basic question, but I got stuck with it anyway... Any ideas? Hans --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org=20 For additional commands, e-mail: users-help@cocoon.apache.org=20 --=20 This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. =20 CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html=20 =20 CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html=20 =20 For electronic copies of the CSIR Copyright, Terms and Conditions and the C= SIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to HelpDesk@csir.co.za. This message has been scanned for viruses and dangerous content by MailScan= ner,=20 and is believed to be clean. MailScanner thanks Transtec Computers for the= ir support. --=__Part4C6E3B7E.0__= Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Description: HTML
Its not clear what you mean by the "second pipeline" - do
you mean the **.jpg ?  If so, can you not simply call that
from the page where it needs to appear?  (And the page
itself is generated using the output from the first pipeline;
cinclude or simply a map:aggregate will feed the XML into yo= ur
page prior to a final transform.)
 
If you need more help, you may have to lay out your problem
a little more clearly.

>>> my.name.is.hans@gmail.com 2005/09/27 11:40:16 AM >= >>
I've got a very basic question that I got stuck with.... maybe = someone
can help me out?

I have a web publishing system that stor= es all images in eXist, using
a number as the file name, e.g. 44500.jpg<= BR>
Each image has a metadata file, describing at what URL the image
= should be shown (and also some other things, not shown here), e.g.
<m= etadata>
<live><at>webdesign/cocoon</at></live&g= t;
<filename>banner.jpg</filename>
</metadata>
<= BR>In the html files, the url to the file points at its virutal location,and virtual name, e.g. webdesign/cocoon/banner.jpg
Thus, I could write= a cocoon sitemap matcher like this:

<map:match pattern=3D"*/*/*.= jpg>
<map:generate src=3D"xq/{1}.xq" type=3D"xquery">
<ma= p:parameter name=3D"file" value=3D"{1}/{2}/{3}"/>
</map:generate&g= t;
? How to call the second pipeline with the result of the query?
&l= t;/map:match>

The xquery generates the file name to use in the se= cond pipeline, like this
<file>
44500.jpg
</file>
<= BR>The image is then to be fetched from eXist using this pipeline:
<m= ap:match pattern=3D"*.jpg">
<map:read type=3D"image"

src= =3D"http://guest:guest@localhost:8080/cocoon/webdav/db/contents/jpeg/{1}.jpg" "
mime-type=3D"text/jpg "/>
&= lt;/map:match>

But how do I call the second pipeline, using the f= ile name created by
the generator in the first pipeline? This is a very = basic question,
but I got stuck with it anyway... Any ideas?

Hans=

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


--=20
This message is subject to the CSIR's copyright, terms and conditions= and e-mail legal notice.=20
Views expressed herein do not necessarily represent the views of the = CSIR.
=20
CS= IR E-mail Legal Notice
=20
CSIR Copyri= ght, Terms and Conditions
=20
For electronic copies of the CSIR Copyright, Terms and Conditions and= the CSIR Legal Notice=20
send a blank message with "REQUEST LEGAL" in the subject line to CSIR HelpDesk


This message has been scanned for viruses and dangerous content by MailScanner,=20
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
--=__Part4C6E3B7E.0__=--