cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maring, Steve" <Steve_Mar...@tvratings.com>
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"
src="org.apache.cocoon.transformation.XIncludeTransformer"/>

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"/>
	    </map:match>


helloworld.xml:

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


message.xml:

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

helloworld.xsl:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="page">
    <HTML>
      <BODY>
        <H1><xsl:value-of select="title"/></H1>
        <BR/>
        <H1><xsl:value-of select="message"/></H1>
      </BODY>
    </HTML>
  </xsl:template>
</xsl:stylesheet>


I'm just getting:
org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.lang.NullPointerException at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:228) at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:344) at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:992) at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:886) at
org.apache.cocoon.sitemap.Handler.process(Handler.java:175) at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:97) at
org.apache.cocoon.Cocoon.process(Cocoon.java:287) at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:463) 

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


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