Hi,

I've built a custom generator that gets a Document object from another 
source and sends it down the pipeline using the DOMStreamer.  This all 
seems to work as I would expect.  If I use a sitemap entry like this:

<map:generate type="dom"/>
<map:serialize type="xml"/>

I get a file back out of the system that is identical to the input, 
which is what I'd expect.
If I use a sitemap entry like this:

<map:generate type="dom"/>
<map:transform src="mystylesheet.xsl"/>
<map:serialize type="html"/>

... it doesn't work - basically the browser gets content with all the 
markup removed.

However, if I use a sitemap entry like this, which references the exact 
same xml source file using the file generator:

<map:generate src="myxmlfile.xml"/>
<map:transform src="mystylesheet.xsl"/>
<map:serialize type="html"/>

... it produces the formatted output that I would expect.


Any ideas why things would act differently in these two scenarios, given 
the fact that the input is apparently identical.

Thanks,

Chris



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to