"remko de knikker" <remko(_dot_)deknikker(_at_)yale(_dot_)edu> wrote in message
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:value-of select="text()"/> </xsl:for-each>
A number of observations:
1. You have put inside a template matching every element code that does not
depend on the current node. It may be executed several times and this is a
2. & # x a 0 ; without the intervening spaces is a character reference for
the so-called "non-breaking space" -- it has nothing to do with the space
3. Your problem is artificial and it must be eliminated in your XSLT code --
no need to call an extension function.
Add code, which tests if the position of the current node in the node-list
is not the last -- only then output your whateverSpace character.
http://fxsl.sourceforge.net/ -- the home of FXSL
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list