cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maring, Steve" <>
Subject C2 pipeline probs
Date Tue, 29 May 2001 14:04:50 GMT
I'm still quite a bit hazy on how to properly construct pipelines in C2a7.
The docs and examples don't seem to be clearing it up too much for me.

For instance, I'm trying to create a classic "Hello World" that uses
XInclude to pull a message in from another XML file.  I've added:

<map:transformer     name="xinclude"

to the sitemap.xmap, and the pipeline for my webapp looks like this:

	    <map:match pattern="helloworld.html">
		<map:generate src="helloworld.xml"/>
		<map:transform type="xinclude"/>
		<map:transform src="helloworld.xsl"/>
		<map:serialize type="html"/>


<?xml version="1.0" ?>
	<title>The Message</title>
	<xinclude:include href="message.xml" parse="xml"/>


<?xml version="1.0" ?>
<message>Hello World!</message>


<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  <xsl:template match="page">
        <H1><xsl:value-of select="title"/></H1>
        <H1><xsl:value-of select="message"/></H1>

I'm just getting:
org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.lang.NullPointerException at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS at
org.apache.cocoon.www.sitemap_xmap.process( at
org.apache.cocoon.www.sitemap_xmap.process( at
org.apache.cocoon.sitemap.Handler.process( at
org.apache.cocoon.sitemap.Manager.invoke( at
org.apache.cocoon.Cocoon.process( at

Any help would be appriciated.
-Steve Maring
Tarpon Springs, FL

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message