Subject: Re: Displaying XML element contents with line breaks
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Jan 1999 20:44:39 -0800
|
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
|