xsl-list
[Top] [All Lists]

Re: [xsl] line breaks missing

2006-06-28 11:32:28
It could be like this:

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE xsl:stylesheet [<!ENTITY minus "?">]><!-- ? -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:o="urn:schemas-microsoft-com:office:office"
exclude-result-prefixes="o">
        <xsl:output method="html"/>
        <xsl:template match="/">
<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--[if gte mso 9]><xml>
<w:WordDocument>
 <w:View>Print</w:View>
</w:WordDocument>
</xml><![endif]-->
<STYLE>

   @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 {
                page:Section1;
        }
        BODY {
                margin-top:                     0;/*2.54cm; - not working as 
expected when displayed in MSWord*/
                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;
                mso-table-layout-alt:fixed;
        }
        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;
        }
        TABLE.no-border {
                border-collapse:        collapse;
                mso-yfti-tbllook:       191;
                mso-padding-alt:        0cm 5.4pt 0cm 5.4pt;
        }
        TABLE.no-border TR {
                mso-yfti-irow:          0;
                mso-yfti-firstrow:      yes;
        }
        TABLE.no-border TH, TABLE.no-border TD {
                border:                         0;
                padding:                        0cm 5.4pt 0cm 5.4pt
        }
        TABLE.no-border TD.vertical-text {
/*              writing-mode:           tb-rl;*/
/*              filter:                         flipv() fliph();*/
        }
</STYLE>
</HEAD>
<BODY>

<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"/>
               </TD>
           </TR>
</TABLE>
</xsl:for-each>
</div>

</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>

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(_at_)yahoo(_dot_)fr> 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
result.

  Regards,

--drkm































___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface 
révolutionnaire.
http://fr.mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>