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

Re: XSL/FOP:Implementing a counter within a recursive

Subject: Re: XSL/FOP:Implementing a counter within a recursive routine
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 8 Nov 2001 15:27:51 +0000
implementing a counter in xslt
Hi Rachael,

I don't know where the extra line feed is coming from, but it sounds
as if it's from the source XML? If so, then you should try using
normalize-space() to prevent it:

  <xsl:value-of select="normalize-space(header)" />
  <xsl:value-of select="normalize-space(comment)" />

You might want to add a space between them:

  <xsl:value-of select="normalize-space(header)" />
  <xsl:text> </xsl:text>
  <xsl:value-of select="normalize-space(comment)" />

I might be missing something as I'm not sure why you think a recursive
template with a counter would help, so if the above doesn't do what
you need it to, try sending some XML with some data in it (the input
that's giving you the problem), the stylesheet you're using, the
result that you're getting (the output that you don't want) and the
result that you want (the output that you do want) and we should be
able to come up with something.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.