[get this back on the Forrest user list ...]

Rick
--- Begin Message ---
I think this is the last iteration!  I took out a lot of the stuff
that was (incorrectly) in my sitemap so maybe this will get simpler
now.  The PDF is still generated but the HTML is still blank.  Here's
the pipeline:

 <map:pipelines>
    <!-- internal pipeline for "header" and "projinfo" omitted -->
    <map:pipeline>
      <map:match pattern="**/*projects.xml">
        <map:aggregate element="document">
          <map:part src="cocoon:/header" element="header"/>
          <map:part src="cocoon:/projinfo" element="section"/>
        </map:aggregate>
        <!--<map:transform type="xslt"
src="{project:stylesheets-dir}/xml2document.xsl"/> -->
        <map:serialize type="xml"/>
      </map:match>
  </map:pipeline>

1.  Since the HTML is blank, I figured maybe I needed to make sure the
DTD was being set (since it might not be from the aggregation).  So I
made a stylesheet that simply puts a doctype on and copies the rest
over (xml2document.xsl).
2.  With the transform line above, I get an error (cause: null,
request-uri: projects/projects.html).
3.  If I put the stylesheet into the forrest stylesheet directory and
change the src to forrest:stylesheets the page loads - but the HTML is
still empty.
4.  Running the stylesheet manually against a well-formed xdocs
document (as, ostensibly, the aggregated document above would be),
produces a valid xdocs document.

Are there any clues that I should be following based on the fact that
the PDF is generated (though the PDF is not skinned and not pretty -
but the content is there)?

-- Andy

On Tue, 04 Jan 2005 12:02:28 -0800, Rick Tessner <[EMAIL PROTECTED]> wrote:

> Hmmm ... it should not be looking like the main forrest.xmap ...
> Comments in-line:

Yes, I thought that that shouldn't have been the case.

> >     <map:pipeline>
> >       <map:match pattern="**/*projects.html">
> 
> >         <map:serialize type="html"/>
> 
> Change this to type="xml".  I believe that in cocoon, the serializer in
> any given pipelilne is the last thing to run.  So, the
> <map:call-resource> below will not be done.  Just remove it.
>
 
I changed the serialization to xml and removed the resources call.

> <snip what="aggregation"/>

I'm not sure if this was a suggestion or a question.
 
> Let forrest do the work for you.  :)  Just produce the document XML and
> forrest should do the rest.

That seems smart!  Will try to do that. . .
 
> Hope this helps,
> 
> Rick

Attachment: projects.pdf
Description: Adobe PDF document


--- End Message ---

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to