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

Re: Getting a list of node Text()

Subject: Re: Getting a list of node Text()
From: Nicholas Orr <nick@xxxxxxxxxxx>
Date: Wed, 20 Jun 2007 09:35:14 +1000
Re:  Getting a list of node Text()
On 20/06/2007, at 9:14 AM, David Carlisle wrote:
once a variable has been bound to a value, it keeps that value.

Ah yes, I forgot about that one.

On 20/06/2007, at 9:22 AM, David Carlisle wrote:

<xsl:for-each select=".//Calculation">
<xsl:value-of select="."/>
<xsl:if test="position()!=last()">, </xsl:if>

This was exactly what I was after. Unfortunately I can't use XSLT2, so this worked fine. Thanks for your help, and thanks also to Andrew for your ideas.

One slightly related question, is it possible to remove whitespace ( returns and spaces ) from before and after the text. So in this line from above :

<xsl:value-of select="."/>

The XML actually looks like this :

<![CDATA[Table 1::Number1 & Custom 1 & External ( "Menu- Version"; "" ) & <Function Missing>]]>

So, the data comes with a lot of extra whitespace. I was able to filter it on import when I was getting one node at a time after the transform (it's an import into a DB), but now that I'm getting mutliple nodes in one step, it's all coming in between each block and makes it harder to filter.


Current Thread


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.
First Name
Last Name
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.