cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miller, Grant" <Grant.Mil...@COGNOS.com>
Subject FW: 'Dependency' tag output when chaining pipelines using custom logicsheets (Cocoon 2)
Date Fri, 04 Jan 2002 16:35:20 GMT

I realise this isn't strictly a dev question but I've had no responses from
the users list and it does seem a bit obscure so hopefully dev is a better
place to ask...

>  -----Original Message-----
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message