You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Hahn Kurt (CHA)" <ku...@etat.ge.ch> on 2002/06/07 10:15:57 UTC

RE: A little help with aggregation/Solution FOUND

Thanks to all, when I finally completed the part mapping with element names
and ns-attributes, it worked all  of sudden. I didn't see that in the sample
aggregation in the sitemap, but it seems this two attributes are needed.

Kurt

-----Message d'origine-----
De : Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
Envoyé : vendredi, 7. juin 2002 00:06
À : cocoon-users@xml.apache.org
Objet : RE: A little help with aggregation


> From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> 
> Hahn Kurt (CHA) wrote:
> > I changed the sitemap a little to make it clearer, it now looks like
this:
> >
> > <map:match pattern="pvDoc/*.pdf">
> >     <map:aggregate element="pvDoc">
> > 	<map:part src="cocoon:/pv/title/{1}.xml" element="title"
> > ns="http://etat.geneve.com/title"/>
> > 	<map:part src="cocoon:/pv/{1}.xml" element="pvtexte"
> > ns="http://etat.geneve.com/pvtexte"/>
> >     	</map:aggregate>
> >     	<map:serialize type="xml"/>
> > </map:match>
> >
> > As I mentioned before, the parts called individually work fine. I'm
> > suspecting that maybe the parameter isn't passed correctly. Can
somebody
> > confirm (or disconfirm ) if my syntaxe is correct?
> 
> Wild guess: does
>   <map:part src="cocoon:/pv/title/{../1}.xml" element="title" ...

Yes, this is wild... This reminds me once again that we need to document
sitemap/matcher/action interactions and how substitutions work better
then what we have now...

Hint-hint? ;)


PS To 'J.': I believe that author of this sitemap snippet wants to
substitute {1} with '*' from the matcher, and not with something not
shown in this snippet... Because '../1' will bring you one level up -
above this matcher. 


Vadim


> work?
> 
> J.Pietschmann
> 


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

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


RE: A little help with aggregation/Solution FOUND

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Hahn Kurt (CHA) [mailto:kurt.hahn@etat.ge.ch]
> 
> Thanks to all, when I finally completed the part mapping with element
names
> and ns-attributes, it worked all  of sudden. I didn't see that in the
sample
> aggregation in the sitemap, but it seems this two attributes are
needed.

Summary:
ns and element are optional. Slash in cocoon:/ is required.

Vadim

> 
> Kurt
> 
> -----Message d'origine-----
> De : Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Envoyé : vendredi, 7. juin 2002 00:06
> À : cocoon-users@xml.apache.org
> Objet : RE: A little help with aggregation
> 
> 
> > From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
> >
> > Hahn Kurt (CHA) wrote:
> > > I changed the sitemap a little to make it clearer, it now looks
like
> this:
> > >
> > > <map:match pattern="pvDoc/*.pdf">
> > >     <map:aggregate element="pvDoc">
> > > 	<map:part src="cocoon:/pv/title/{1}.xml" element="title"
> > > ns="http://etat.geneve.com/title"/>
> > > 	<map:part src="cocoon:/pv/{1}.xml" element="pvtexte"
> > > ns="http://etat.geneve.com/pvtexte"/>
> > >     	</map:aggregate>
> > >     	<map:serialize type="xml"/>
> > > </map:match>
> > >
> > > As I mentioned before, the parts called individually work fine.
I'm
> > > suspecting that maybe the parameter isn't passed correctly. Can
> somebody
> > > confirm (or disconfirm ) if my syntaxe is correct?
> >
> > Wild guess: does
> >   <map:part src="cocoon:/pv/title/{../1}.xml" element="title" ...
> 
> Yes, this is wild... This reminds me once again that we need to
document
> sitemap/matcher/action interactions and how substitutions work better
> then what we have now...
> 
> Hint-hint? ;)
> 
> 
> PS To 'J.': I believe that author of this sitemap snippet wants to
> substitute {1} with '*' from the matcher, and not with something not
> shown in this snippet... Because '../1' will bring you one level up -
> above this matcher.
> 
> 
> Vadim
> 
> 
> > work?
> >
> > J.Pietschmann
> >
> 
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>



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