"J.Pietschmann" wrote: > > Stefano Mazzocchi wrote: > > - deprecate 'internal-only' attribute of 'map:pipeline' > > [because named pipelines become implicitly internal-only] > > I use something like the following: > > <div class="newsbox"> > <xsl:for-each select= > "document(concat('cocoon://int/news/',$pubdir))/files/file"> > <xsl:sort select="@last-modified"/> > <p class="newsheadline"> > <xsl:value-of select="document(@name)/document/header/title"> > </p> > <p class="newsabstract"> > <xsl:value-of select="substring( > document(@name)/document/header/abstract,1,42)"> > </p> > </xsl:for-each> > ...
I personally don't like the document() function of XSLT. I normally suggest to use an xinclude stage to perform aggregation when the structure of the aggregation is not fixed, but that's really up to you. > and in the sitemap > <map:pipeline internal-only="yes"> > <map:match pattern="int/news/*"> > <map:generate type="directory" src="/my/news/{1}"/> > <map:transform src="xslt/newsfilter.xsl"/> > <map:serialize type="xml"/> > </map:match> > </map:pipeline> > > Is there a better way to solve this kind of problem? > (I worked around the caching issue). if you use named pipelines you could do <map:pipeline name="news"> <map:match pattern="*"> <map:generate type="directory" src="/my/news/{1}"/> <map:transform src="xslt/newsfilter.xsl"/> <map:serialize type="xml"/> </map:match> </map:pipeline> and then call it with pipeline://news/* > How will this be solved without internal-only pipelines? > The $pubdir is curently a parameter but there are reasons > to have it been taken from input XML in some cases. In > any case, aggregation seems not to be quite right. Why? what's the problem you are experiencing? -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. <[EMAIL PROTECTED]> Friedrich Nietzsche -------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]