Make sure the XHTML serializer component definition in your main sitemap has <indent>yes</indent> declared, like this:

<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd</doctype-system>
<omit-xml-declaration>yes</omit-xml-declaration>
<encoding>iso-8859-1</encoding>
<indent>yes</indent>
</map:serializer>



robin.

On 30 Jun 2004, at 21:57, Pete wrote:

in xslt, you can use

...<xsl:text>
</xsl:text>...
to emit a newline into the output

Peter

Kirk Storer wrote:

I am transforming an xml file into xhtml, which is
working.
Currently each portion of the xslt generated code is
on a single, extremely long line.

Is there anyway to put line breaks in the code so that
it is more readable. I tried escape n like you would
use in perl or php, but no luck.

Thanks,
Kirk


__________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail

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








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



Reply via email to