|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Whitespace again
> > Thank you for you answer, > but it still doesn´t work. > > > > > > > I have a xml documnet: > > > > > > <text>line 1 > > > line 2 > > > </text> > > > > > > My problem is that in the html output there is no > linebreak. The XSL facilities for whitespace control (xsl:preserve-space, etc) are irrelevant to this: they only affect whitespace that is surrounded on both sides by tags. Whitespace that has text before or after it (or in this case, both before and after) should be copied to the output file. But if the output is HTML, this is irrelevant, because newline characters in HTML are equivalent to spaces. If you want a visible line break in the page as displayed by the HTML browser, your options are: a) generate a <PRE> </PRE> element around the output text b) convert the newlines in the text to <BR> tags (a nice little exercise in the use of substring-before, concat, etc) Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








