xsl-list
[Top] [All Lists]

RE: [xsl] How to avoid line break when using for-each

2007-08-30 10:21:04
I have never seen Java source code in the form of an XML document. Please post 
your input document (or a representative sample of it) so that we can 
understand the problem.
-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Yang Wang <ywocean(_at_)gmail(_dot_)com>
Sent:     Thu, 30 Aug 2007 10:14:09 -0700
To:       xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject:  [xsl] How to avoid line break when using for-each

I need help on this.

In my java code, I have a variable which is an ArrayList and the
elements inside are strings.

For example, aList has a type of ArrayList and it has elements "a",
"b","c", "d" ..... (the length of the aList is variable). In my xslt I
have the following code:

<xsl:for-each select="a:aList "><xsl:value-of select="."/>;</xsl:for-each>

the output is
a;
b;
c;
d;
...
But my expected output should be like
a;b;c;d;...;
all the elements need to be on the same line.

Does anybody have any idea how to do it? Thank you very much!

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>