[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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:
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  ??
remko
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] adding space in xslt and trimming last space in java-problem
Subject: [xsl] 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 |
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()"/> </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  ??
remko
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: xmlns:xalan-nodeset names, Dimitre Novatchev | Thread | Re: [xsl] adding space in xslt and , J.Pietschmann |
[xsl] Re: xmlns:xalan-nodeset names, Dimitre Novatchev | Date | [xsl] Is there a public xslt styles, Bill Riegel |
Month |
Keywords