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

simple problem of getting line breaks in the output

Subject: simple problem of getting line breaks in the output
From: Shalaka Tendulkar <stendulk@xxxxxxxxxxxxxxxx>
Date: Sat, 29 Apr 2000 12:18:48 -0400 (EDT)
shalaka tendulkar
Hi All,

I have this problem which seems to be pretty simple to fix, but I havent
been able to fix it cuz I am totally new to xsl and stuff.. Could anyone
help me with this please..

The output I get is :
<?xml version="1.0" encoding="UTF-8"?>
<constant>reading</constant><constant>singing</constant>

but the output I need is:
<?xml version="1.0" encoding="UTF-8"?>
<constant>reading</constant>
<constant>singing</constant>

My question is, how do I have every new hobby on a different line...

Thanks a lot,
Shalaka
-------------------------------------------------------------------------

This is my xml file:
-------------------

<?xml version="1.0"?>
<person>
 <name>x</name>
 <address>y</address>
 <hobbylist>
   <hobby>reading</hobby>
   <hobby>singing</hobby>
 </hobbylist>
</person>   


This is my xsl file:
-------------------

<?xml version="1.0"?> 

<xsl:stylesheet xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:template match="/">

   <xsl:for-each select = "//hobby">
   <constant> <xsl:value-of select ="."/></constant>
   
   </xsl:for-each>

  </xsl:template>

</xsl:stylesheet>





 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.