RE: '\n' character in cocoon output stream
Yuri, not sure I've understood what you asked... Anyway, if you want to insert a line feed during an XSLT transformation stage, you could do the following in your stylesheet: firstline#x0a;secondline Regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 8:34 AM To: [EMAIL PROTECTED] Subject: '\n' character in cocoon output stream Hi all! Ho to I can insert the '\n' character (0x0a) in cocoon output stream (in serialized document)? I wish this symbol add in transformation step (if it possible). Thanx for advise. -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - 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] - 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]
Re: '\n' character in cocoon output stream
On Tue, 14 Jan 2003 09:30:32 +0100 Luca Morandini [EMAIL PROTECTED] wrote: Yuri, not sure I've understood what you asked... Anyway, if you want to insert a line feed during an XSLT transformation stage, you could do the following in your stylesheet: firstline#x0a;secondline Regards, Thanx, it work :) . -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - 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]
Re: '\n' character in cocoon output stream
Is it for viewing the output code (HTML or XML or whatever) in the browser? Then maybe simply switching indent to yes helps. map:serializer manyAttr=value encodingUTF-8/encoding indentyes/indent /map:serializer Or a view, which adds a transformer to the output and shows the code completely well-formatted. Furthermore you can use this XSL at every pipeline step, e.g. after generation, after first transformer, after i18n and so on. We use this in our development environment. By default indent is no and so the whole output is in one line in Cocoon. Regards, Joerg Yury Mikhienko wrote: On Tue, 14 Jan 2003 09:30:32 +0100 Luca Morandini [EMAIL PROTECTED] wrote: Yuri, not sure I've understood what you asked... Anyway, if you want to insert a line feed during an XSLT transformation stage, you could do the following in your stylesheet: firstline#x0a;secondline Regards, Thanx, it work :) - 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]