cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert NEOtyk Iwaniuk <hube...@office.ferienwelt.com.pl>
Subject Re: ESQL Nested Queries
Date Wed, 07 Nov 2001 15:19:36 GMT
On Wed, Nov 07, 2001 at 09:01:12AM -0600, Mark S. Kent wrote:
> > To achieve this i use xslt after generation and then serialize to xml.
> 
> Once you have serialized the newly structured XML with XSLT, do you use that
> data directly or save to a file to use in a second XSLT transformation to
> another format (like HTML)?  I've got a similar ESQL query nested at 3
> levels for which I would rather just run one query.
> 
Hi Mark,
	I do it this way:
	1) generate structured date
		1.1) xsp returning flat data
		1.2) xslt transforming flat xml data to structured xml data

	2) use structured data
		2.1) i use output from 1 as a part of aggregation
		2.2) apply xslt converting data to html for example

sitemap.xmap

	<map:pipelines>
		<map:pipeline internal-only="true">
			<map:match pattern="structured-data">
				<map:generate
					type="serverpages"
					src="your-xsp-generating-flat-data.xsp"/>
				<map:transform
					type="xslt"
					src="transfor-flat-2-structure.xsl"/>
				<map:serialize
					type="xml"/>
			</map:match>
			...
		</map:pipeline>

		<map:pipeline>
			<map:match pattern="use-of-structure.html">
				<map:aggregate element="page">
					<map:part
						src="cocoon:/structured-data"
						element="element-containing-structure"/>
					<!-- other parts -->
				</map:aggregate>
				<map:transform
					type="xslt"
					src="transform-whatewer-2-html.xsl"/>
				<map:serialize
					type="html"/>
			</map:match>
			<!-- other mathers -->
		</map:pipeline>
	</map:pipelines>

Hope it helps,
	about week or two ago there was something about converting flat data to structured, if my
mail is not helping, look for this thred in archive.

once again, good luck,
	Hubert. 

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


Mime
View raw message