Re: [xsl] line breaks missing

Subject: Re: [xsl] line breaks missing
From: Renate <renaate@xxxxxxxxx>
Date: Wed, 28 Jun 2006 21:32:07 +0300
It could be like this:

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE xsl:stylesheet [<!ENTITY minus "?">]><!-- ? -->
<xsl:stylesheet version="1.0"
	<xsl:output method="html"/>
	<xsl:template match="/">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--[if gte mso 9]><xml>

   @page Section1 {
		size:				595.3pt 841.9pt;
		margin:				72.0pt 64.35pt 62.95pt 89.85pt;
		mso-header-margin:	35.45pt;
		mso-footer-margin:	35.45pt;
		mso-paper-source:	0;
	div.Section1 {
		margin-top:			0;/*2.54cm; - not working as expected when displayed in
		margin-bottom:		0;/*2.22cm;*/
		margin-left:		0;/*3.17cm;*/
		margin-right:		0;/*2.27cm;*/
		padding:			0;
	P, UL, LI, H1, TH, TD {
		font-family:		"Times New Roman";
		font-size:			12pt;
		margin-top:			0px;
		margin-bottom:		0px;
	TH {
		font-size:		10pt;
		font-weight:	normal;
   TD {
		font-size:		10pt;
		font-weight:		normal;
	TABLE.signatures {
		border-collapse:	collapse;
		mso-yfti-tbllook:	191;
		mso-padding-alt:	0cm 5.4pt 0cm 5.4pt;
		mso-border-insideh:	.5pt solid windowtext;
	TABLE.signatures TH, TABLE.signatures TD {
		font-size:			11pt;
	P.section {
		text-align:			center;
               text-decoration:                underline;
       P.under {
		text-align:			justify;

	TD.dscr {
		text-align:			center;
		vertical-align:		top;
	/* The following style is used in MS Word 2000 */
	TABLE.border-table {
		border-collapse:	collapse;
		border:				none;
		mso-border-alt:		solid windowtext .5pt;
		mso-yfti-tbllook:	191;
		mso-padding-alt:	0cm 5.4pt 0cm 5.4pt;
		mso-border-insideh:	.5pt solid windowtext;
		mso-border-insidev:	.5pt solid windowtext;
	TABLE.border-table TR {
		mso-yfti-irow:		0;
		mso-yfti-firstrow:	yes;
	TABLE.border-table TH, TABLE.border-table TD {
		border:				solid windowtext 1.0pt;
		mso-border-alt:		solid windowtext .5pt;
		padding:			0cm 5.4pt 0cm 5.4pt;

	TABLE.border-table TH.vertical-text {
/*		writing-mode:		tb-rl;
		filter:				flipv() fliph();
		border-right:		0;
		border-bottom:		0;
		border-left:		1px solid black;
		border-top:			1px solid black;*/
	TABLE.border-table TR.spaced TH {
		padding-left:		5px;
		padding-right:		5px;
		padding-top:		5px;
		padding-bottom:		5px;
	TABLE.border-table TH {
		text-align:			center;
		padding:			0cm 5.4pt 0cm 5.4pt;
	TABLE.border-table TD {
		/* all text for cells in data table is centered */
		text-align:			left;
		vertical-align:		top;
		padding:			2.7pt 5.4pt 2.7pt 5.4pt;
	} {
		border-collapse:	collapse;
		mso-yfti-tbllook:	191;
		mso-padding-alt:	0cm 5.4pt 0cm 5.4pt;
	} TR {
		mso-yfti-irow:		0;
		mso-yfti-firstrow:	yes;
	} TH, TD {
		border:				0;
		padding:			0cm 5.4pt 0cm 5.4pt
	} TD.vertical-text {
/*		writing-mode:		tb-rl;*/
/*		filter:				flipv() fliph();*/

<div class="Section1">
 <xsl:for-each select="ROWSET/ROW/OBJECTS/OBJECTS_ROW">
    <xsl:variable name="AffiliationAmbitT" select="AFFILIATION_AMBIT_T"/>
	<TABLE class="no-border" cellspacing="0" cellpadding="0">
          <TR> <TD valign="top">
<xsl:value-of select="$AffiliationAmbitT"/>


AffiliationAmbitT is taken from database field and is text with no spaces.
As a result all the text is into one line and doesn't break to the
next line (no lines breaks).
Document is opened in Word.

On 6/28/06, Florent Georges <darkman_spam@xxxxxxxx> wrote:
Renate wrote:

> When I use <xsl:value-of select="$text"/>

> When I open the result, then I don't see the whole text, but
> only the first line. I've got a text without linebreaks.

> Why should it be so?

  It is hard to say without knowing your input, how you set the
variable, your output, maybe warning messages, and how you view the



Yahoo! Mail riinvente le mail ! Dicouvrez le nouveau Yahoo! Mail et son
interface rivolutionnaire.

Current Thread