Right, I want to substitute {1} with '*' from the matcher, which seems to
work fine, since the error I'm getting is :
Could not get sitemap source
http://st-080234:8080/cocoon/mount/AigleK/pv/title/251567.xml. But this URL
is working!! In addition to my main matcher, I'm posting now the two
part-matchers:
The aggregation:
<map:match pattern="pvDoc/*.pdf">
<map:aggregate element="docComplet">
<map:part src="cocoon:pv/title/{1}.xml"/>
<map:part src="cocoon:pv/{1}.xml" />
</map:aggregate>
<map:serialize type="xml"/>
</map:match>
BTW it doesn't change a lot if I leave just one part, or if I change the
order. The error is always the above error for the part that comes first.
part 1 matches to:
<map:match pattern="pv/title/*.xml">
<map:generate src="Queries/raw-query.xml"/>
<map:transform src="Queries/title_odj_query.xsl">
<map:parameter name="var" value="{1}"/>
</map:transform>
<map:transform type="sql">
<map:parameter name="use-connection"
value="aigle_oracle_pool" />
<map:parameter name="show-nr-of-rows" value="true"/>
</map:transform>
<map:transform src="Stylesheets/title_ODJ_contents.xsl"/>
<map:transform type="i18n"/>
<map:transform src="Stylesheets/titleOdJFOP.xsl"/> <!-- -->
<map:serialize type="xml"/>
</map:match>
part 2:
<map:match pattern="pv/*.xml">
<map:generate src="Queries/raw-query.xml"/>
<map:transform src="Queries/pv_query.xsl">
<map:parameter name="var" value="{1}"/>
</map:transform>
<map:transform type="sql">
<map:parameter name="use-connection"
value="aigle_oracle_pool" />
<map:parameter name="show-nr-of-rows" value="true"/>
</map:transform>
<map:transform src="Stylesheets/pv1.xsl"/>
<map:transform type="i18n"/>
<map:transform src="Stylesheets/pv2fo.xsl"/><!-- -->
<map:serialize type="xml"/>
</map:match>
-----Message d'origine-----
De : Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Envoy� : vendredi, 7. juin 2002 00:06
� : [EMAIL PROTECTED]
Objet : RE: A little help with aggregation
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
>
> 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: <[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]>