cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Mayrhuber <christian.mayrhu...@gmx.net>
Subject Problems retrieving coplet:copletData/attributes/...
Date Wed, 28 Jan 2004 18:34:52 GMT
Hi,

Version: cocoon-2.1.4-23.01.2004-cvs, Portal engine.
I cannot retrieve the vol-base attribute from copletdata/portal.xml
in the coplet sitmap when I access it trough the cocoon:/... URL.
{coplet:copletData/attributes/vol-base} yields "" in this case.
See below:
<map:pipelines>
   <map:pipeline>	
     <map:match pattern="">
         <map:aggregate element="menu">
            <map:part src="cocoon:/traversable/" element="volume"/>
            <map:part src="cocoon:/traversable/test/" element="issue"/>
         </map:aggregate>
         <map:transform type="xslt" 
src="../../../stylesheets/system/xml2html.xslt"/>
         <map:transform type="portal-coplet"/>
         <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>

   <!-- internal pipline to retrieve traversable listings -->
   <map:pipeline internal-only="true">	
     <map:match pattern="traversable/**">
         <map:generate 
src="{global:hwhost}{coplet:copletData/attributes/vol-base}{1}" 
type="traversable">
             <map:parameter name="depth" value="1"/>
         </map:generate>
         <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>
</map:pipelines>

If I retrieve the vol-base attribute "in normal fashion" everything
goes well:
<map:pipelines>
   <map:pipeline>	
     <map:match pattern="">
         <map:generate 
src="{global:hwhost}{coplet:copletData/attributes/vol-base}" 
type="traversable">
             <map:parameter name="depth" value="1"/>
         </map:generate>
         <map:transform type="xslt" 
src="../../../stylesheets/system/xml2html.xslt"/>
         <map:transform type="portal-coplet"/>
         <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>
</map:pipelines>

Is there a way to obtain the copletdata attributes when using internal
piplines?

-- 
lg, Chris


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


Mime
View raw message