<<TableOfContents: execution failed [Argument "maxdepth" must be an integer value, not "[3]"] (see also the log)>>

What

You want the lighter debug solution of a pipeline ? Try the "debug" serializer.

Who

How

Insert/Delete it everywhere in your pipe (for now this bad practice is not yet forbid by cocoon) like that

<map:match="**">
  <map:generate ...>
  <map:transform ...>
  <map:transform ...>
  <!-- till here it works -->
  <map:transform ...>

  <!-- this step don't send what I need, lets serialize now to see what there is  -->
  <map:serialize type="debug">

  <map:transform ...>
  <map:transform ...>
  <map:serialize ...>
</map:match>

What is it ? Nothing more than a default XML serializer to declare, with some simple parameters to precise. Never read it in the doc, but found it in the code : the XML serializer use your default xsl engine to get text from SAX events.

<map:serializer name="debug" mime-type="text/plain" src="org.apache.cocoon.serialization.XMLSerializer">
  <indent>yes</indent>
</map:serializer>

view a one Mo xml file in your browser ? By server or client, it's always an XSL transform to HTML "pretty-view", expensive. Also, usually you need to verify the source to check <![CDATA[ ]]>, &entities;, or xmlns="" declarations.

Known Issues

Changes

References

xsl:output

See also


Display context of search results
Case-sensitive searching

XfolioDebugSerializer (last edited 2009-09-20 23:43:04 by localhost)