|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Displaying XML element contents with line breaks
At 99/01/29 21:22 -0500, hyflam@xxxxxxxxxxxxxxxxxxxx wrote: >RE: I want to display a xml file WITH LINE BREAKS after each tag's >content. > >I have this XML file: >... >with this XSL style sheet: >... > <SPAN><html:BR><xsl:value-of Select="IncludeTag"/></html:BR></SPAN> > >The result currently is: > >"include stdio.h: include math.h" > >BUT I want to display it with line breaks: > >"include stdio.h >include math.h" Use <DIV> instead of <SPAN> because DIV is a "block-level" grouping construct and SPAN is an "inline" grouping construct. The blocking will produce your line feeds, inline constructs don't interfere with the flow of a line of text. ........... Ken -- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, V: +1(613)489-0999 Kars, Ontario CANADA K0A-2E0 F: +1(613)489-0995 Training: http://www.CraneSoftwrights.com/s/schedule.htm Resources: http://www.CraneSoftwrights.com/s/resources.htm Shareware: http://www.CraneSoftwrights.com/s/shareware.htm Next XSL Training: X-Tech:1999-03-07 WWW8:1999-05-11 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








