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

adding space in xslt and trimming last space in java-p

Subject: adding space in xslt and trimming last space in java-problem
From: remko de knikker <remko.deknikker@xxxxxxxx>
Date: Wed, 16 Jul 2003 15:57:07 -0400
space in java
situation:

I have an XML-file that contains a sequence of ids. I need to transform this to a String of space separated ids.
So I transform the xml to a text file and after each id-node I add a space, like this:


<xsl:template match="*">
   <xsl:for-each select="//ns1:genbankid">
       <xsl:value-of select="text()"/>&#xa0;</xsl:for-each>
</xsl:template>

but when I try to trim the space of the lastly added id, it refuses to do it! My application is in Java:

ids.trim()

does not work. Any suggestions?? In VIM the transformed file shows not a space but a capital A with a ^ on top, I assume this is the problem.
what can I use instead of &#xa0;??


remko




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.