Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - how can I add next line? >Thread Next - Re: how can I add next line? Re: how can I add next line?To: NULL Date: 11/10/2008 6:46:00 PM qwerty007 wrote: > Hi all, > > I'm creating a table and need to add few lines in a row. But I can not > find which syntax I have to use. > > For instance, I have this string, > > <ItemDef OID = "Automobile" Name = "Sedan" def:Label = "Car Size" > DataType = "text" Length = "20" Comment = "Camry Accord Azera > Maxima"> > </ItemDef> > > and this will output in a table (in a cell) as > > Camry Accord Azera Maxima > > > But now I want the comment to output in a cell as > > Carmy > Accord > Azera > Maxima > > Is there any syntax to return the value within a cell or a row? What kind of cell is that? A HTML table cell? How do you generate the HTML table cell, with XSLT? Is that XSLT 1.0 or 2.0? With 2.0 you can easily do e.g. <td> <xsl:for-each select="tokenize(@Comment, '\s+')"> <xsl:value-of select="."/> <xsl:if test="position() != last()"> <br/> </xsl:if> </xsl:for-each> </td> -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
