xsl-list
[Top] [All Lists]

Re[2]: Preserve Line break ?

2004-06-07 11:39:11
Hello Michael,

Saturday, June 5, 2004, 6:43:37 PM, you wrote:

Thanks Mike pre worked I looked up FAQ and that worked as well!

MK> Are you sure it becomes hex 20? I suspect it becomes hex 0A, which a browser
MK> will display in the same way as a single space. 

MK> If you want the browser to display multiple lines, you need either to wrap
MK> the text in an HTML <pre> element, or to convert the newlines into <br/>
MK> elements. See in the FAQ under "replace" for how to do that.

MK> Michael Kay

-----Original Message-----
From: Arthur Maloney [mailto:ArthurM(_at_)seipas(_dot_)com] 
Sent: 05 June 2004 14:01
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Preserve Line break ?

Hello xsl-list,


XML data :
<contact>
        <person>
                <personId>191</personId>
                <formal-name>Fred Blogs</formal-name>
                <organisation>
                        <addressId>5</addressId>
                        <address>PO Box 99
MANCHESTER
M21 678</address>
                        <organisationId>112</organisationId>
                        <name>SEEP</name>
                        <epitome>SEE</epitome>
                </organisation>
        </person>
</contact>

In the address element after PO BOX 99 Hex 0d 0A and each 
line of the address

When I transform it becomes Hex 20  How do you preserve the newline  ?
Its going to xhtml
-- 
Best regards,
 Arthur                          mailto:ArthurM(_at_)seipas(_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>
--+--





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




-- 
Best regards,
 Arthur                            mailto:ArthurM(_at_)seipas(_dot_)com



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