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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to