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

Childnodes on separate lines

Subject: Childnodes on separate lines
From: Martijn Kint <martijn@xxxxxxxxxx>
Date: Mon, 08 Nov 2004 14:46:34 +0100
childnodes
Hi,

I was wondering if there is a way to insert line breaks after each processed childnode, take the example below:

XML file:
<artnrs>
<artno0>807207</artno0>
<artno1>807205</artno1>
<artno2>807211</artno2>
<artno3>807213</artno3>
<artno4>807208</artno4>
<artno5>807203</artno5>
<artno6>807209</artno6>
<artno7>807202</artno7>
<artno8>807206</artno8>
<artno9>807204</artno9>
<artno10>807201</artno10>
<artno11>807200</artno11>
<artno12>807212</artno12>
<artno13>807210</artno13>
</artnrs>

If I process these with the following snippet from my stylesheet

XSL:
<fo:block padding-top="1mm">
 <xsl:value-of select="artnrs[*]"/>
</fo:block>

Im getting this as a result:
807207 807205 807211 807213 etc etc.

But I want to get the following result:

807207
807205
807211
807213
etc
etc.

btw, i'm converting XML to PDF, so its actually xsl:fo if that matters at all :)

Kind regards,
Martijn
--

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.