| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Splitting comma separated text into divs|
I have an XML file which contains comma separated text within an element. How does one go about placing each of these within it's own "div"?
What I'd like to output is
The solution probably requires making use of a template, but what has thrown me off is the fact that there are only two commas, so I can't use
<xsl:value-of select="substring-before(., '</div>')"/> or
<xsl:value-of select="substring-after(., '<div>')"/>
Actually I could probably do something along the lines of opening a div before the XSL, then closing it after the XSL, but how do I split up the string?
[edited by: SilverLining at 9:46 am (utc) on Oct. 3, 2008]
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved