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

Displaying XML element contents with line breaks

Subject: Displaying XML element contents with line breaks
From: hyflam@xxxxxxxxxxxxxxxxxxxx
Date: Fri, 29 Jan 1999 21:22:56 -0500 (EST)
display xml element
--- Begin Message ---
Subject: Displaying Element Content with Line Breaks
From: hyflam@xxxxxxxxxxxxxxxxxxxx
Date: Thu, 28 Jan 1999 22:44:02 -0500 (EST)
Hi

RE: I want to display a xml file WITH LINE BREAKS after each tag's 
content.

I have this XML file:
...
<FileTag>
      		<IncludeTag>include stdio.h:</IncludeTag>
	</FileTag>
	<FileTag>
		<IncludeTag>include math.h</IncludeTag>
	</FileTag>
...

with this XSL style sheet:

...
<xsl:for-each order-by="+ IncludeTag" select="Language/FileTag">
  	<TD STYLE="padding-left:1em">        
		<SPAN><html:BR><xsl:value-of Select="IncludeTag"/></html:BR></SPAN>
        </TD>      
</xsl:for-each>
...

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"

I tried adding <BR></BR> but it didn't work. Can someone please give me 
advice. Thanks for your help

Felix


--- End Message ---
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.