cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miller, Grant" <Grant.Mil...@COGNOS.com>
Subject 'Dependency' tag output when chaining pipelines using custom logi csheets (Cocoon 2)
Date Fri, 04 Jan 2002 12:05:43 GMT
Hi,

I have a sub sitemap which chains 2 pipelines as follows:

	<map:match pattern="xspsrc">
		<map:generate type="serverpages" src="xspsrc.xsp"/>
		<map:transform src="createxsp.xsl"/>
		<map:serialize type="xml"/>
	</map:match>

	<map:match pattern="xspsink">
		<map:generate type="serverpages" src="cocoon:/xspsrc"/>
		<map:serialize type="xml"/>
	</map:match>

When xspsink is requested it uses the output of the xspsrc pipeline as it's
input. The output of xspsrc is itself an xsp page and xspsink processes it
(so making it possible to have multiple generate steps). This works fine.
However, problems arise when I try to use custom logicsheets in the input to
xspsink.
'createxsp.xsl' wraps the output of the preceeding generate step in an
xsp:page tag. This tag contains the namespaces I want to use to process the
output of xspsrc in xspsink. For example:

	<xsl:template match="/">
		<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:esql="http://apache.org/cocoon/SQL/v2" version="1.0">
			<xsl:apply-templates/>
		</xsp:page>
	</xsl:template>

	<xsl:template match="@*|node()" priority="-1">
		<xsl:copy>
			<xsl:apply-templates select="@*|node()"/>
		</xsl:copy>
	</xsl:template>

So I can then use the esql logicsheet when processing the output of xspsrc
in xspsink. This works too.
However, as soon as I include a custom logicsheet in the output xsp:page tag
it fails to work. I get the output from xspsink as follows (assuming I use
custom logicsheet named 'test'):

	<dependency xmlns:xml="http://www.w3.org/XML/1998/namespace" 
		xmlns:xsp="http://apache.org/xsp" 
		xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1" 
		xmlns:esql="http://apache.org/cocoon/SQL/v2" 
		xmlns:xsp-request="http://apache.org/xsp/request/2.0" 
		xmlns:test="http://test"> 
		/E:/Tomcat/Program Files/Apache Tomcat
4.0/webapps/cocoon/WEB-INF/classes/com/mylogicsheets/test.xsl
	</dependency>

What does all this mean? The dependency tag includes namespaces I haven't
used at all and the path to the test logicsheet has been resolved correctly
(presumably via cocoon.xconf file). I can use the test logicsheet fine if
not chaining pipelines.
Can anyone help?

Thanks,

Grant Miller


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate, or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender by
e-mail promptly that you have done so.  Thank You.

---------------------------------------------------------------------
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