cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: Text Serializer
Date Tue, 25 Jun 2002 21:38:57 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message