purple red orange black green pink brown blue yellow
I would like my output to look like this.
purple red orange black green pink brown blue yellow
Any pointers on how to accomplish this. Is there a way to load the data in some type of array structure and loop over the data or a way to tell the <xsl:value-of select="."/> to move to the next piece of data?
Thanks for the reply but I am still encountering the same problem. The following code
<xsl:if position() mod n=0 or position()==last()></tr></xsl:if>
is not considered well formed because of the </tr> by itself.
Whenever I try and write html output in an if or when statement it has to be well formed. All <tr> must have matching </tr> in same statement of it will complain of not being well formed.
I am really missing the boat on something. All I am trying to do is build a row with 3 columns of data.
brown red purple black green white
The input is coming in like <color> brown </color> <color> red </color> <color> purple </color> <color> black </color> <color> green </color> <color> white </color>