cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lai, Harry" <H...@coremetrics.com>
Subject RE: aggregator element question
Date Tue, 10 Sep 2002 22:33:33 GMT
Hi Nick,

While you can't do this using the aggregator, you might be able to
accomplish what you want via the cinclude transformer.  Here's the base
Cocoon documentation for this transformer:


-----Original Message-----
From: Nick Airey [mailto:nick.airey@ihavemoved.com]
Sent: Tuesday, September 10, 2002 6:19 AM
To: Cocoon Users
Subject: aggregator element question


Hi everyone, 

when using the aggregator, is it possible to specify an attribute as
well as the name of the parent element, eg


<map:match pattern="about">

 <map:aggregate element="page">
  <map:part src="cocoon:/info"/>
  <map:part type="file" src="otherInfo.xml"/>
 </map:aggregate>

 <map:transform type="xslt" src="faq.xsl"/>
 <map:serialize type="xhtml"/>
</map:match>

will give me

<page>
 <info/>
 <otherInfo/>
</page>

whereas I would like

<page type="info">
 <info/>
 <otherInfo/>
</page>


Is this possible?

Kind regards,
Nick


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message