"Daniel Fagerstrom" <[EMAIL PROTECTED]> wrote: > With XSLT and agreagate you could write something like: > > <map:match pattern="/news/*"> > <map:aggregate element="page"/> > <map:part src="cocoon:/data/articles/{1}"/> > <map:part src="cocoon:/data/authors/{request-param:author}/author"/> > <map:part src="cocoon:/data/lists/topnews"/> > </map:aggregate> > <map:transform src="/templates/news.xslt"/> > <map:serialize/> > </map:match>
No, I can't... You see where do you get the author from? You get it from a request parameter. While in my case the author information (or ID) is stored in the article original XML data... It would be fair enough if I could rewrite it like <map:match pattern="/news/*"> <map:aggregate element="page"/> <map:part src="cocoon:/data/articles/{1}"/> <map:part src="cocoon:/data/authors/{document(cocoon:/data/articles/{1})/article/autho r}"/> <map:part src="cocoon:/data/lists/topnews"/> </map:aggregate> <map:transform src="/templates/news.xslt"/> <map:serialize/> </map:match> But, darn, that's UGLY! :-( Pier