You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "J.Pietschmann" <j3...@yahoo.de> on 2002/06/25 23:38:57 UTC

Re: Text Serializer

Cenk Uysal wrote:
> Hi,
> 
> When I use Text serializer to get Text output, a need occurs. I want
> to write a couple of outputs each of them in new lines. So how can I
> prepare such a XSL? In other words what to do for a new line in XSL
> of a text output. 

This kind of question is better asked on the XSL list
  http://www.mulberrytech.com/xsl/xsl-list/

You can get newlines in text output (or any other output)
by copying them from the input XML, or by using newlines
from the style sheet. Newlines and any other whitespace
adjacent to non-whitesspace characters is copied to the
output. If you want to output a single newline, use
  <xsl:text>&#xA;</xsl:text>
or
  <xsl:text>
</xsl:text>
(there is a newline there, look carefully)

HTH
J.Pietschmann


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>