[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Table <br/> conversion

Subject: Re: Table <br/> conversion
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 20 Feb 2004 09:47:17 GMT
css newlines
  Do anyone of you know how to enable an item in a table
  to go to next line without using <br/>

Just decide what html markup you want, and then get xslt to produce
it. XSLT knows _nothing_ about rendering html.

  If you are doing the xsl, if you used 
  <xsl:value-of select="'&#10;'"/> in the table, it
  won't works.  It won't go to the next line.

That produces a newline in teh html file but if you have an html file of


one
two
three

then it will render as one two three

as in html newlines render as a space unless they are in a <pre> element
or some equivalent css.

So to get a newline in the output you just need to make a newline in
your file (as you have done) togetjer with some markup such as pre or a
css class on the table entry and a css rule  setting the white space
property to preserve newlines, or you need to use markup, eith a br or
wrap each paragraph in a p or div.


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.