Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: How to concatenate 2 fields [Thread Next] Re: How to concatenate 2 fieldsTo: NULL Date: 8/1/2007 1:40:00 PM jrheltmach@m... wrote: > keying away....Anyway, below is where I believe it's pulling the > Timekeeper field from my datasource.... > > <xsl:text>|</xsl:text> > <xsl:value-of select="tk_id"/> <!-- TIMEKEEPER_ID --> OK, so all you hhave to do is modify that to include the additional data. Since you said you just want to prefix the value with a literal zero character, the easiest solution is to add it to the literal text you're already outputting at that point: <xsl:text>|0</xsl:text> <xsl:value-of select="tk_id"/> or, if you wanted to add a trailing zero instead, <xsl:value-of select="tk_id"/> <xsl:text>0|</xsl:text> Obviously more sophisticated things can be done -- combining data from multiple places in the source document, parameterizing the literal value, etc. See a good XSLT tutorial for much, much more detail. (Standard pointers to a lot of good info: http://www.ibm.com/xml for articles and tutorials, and The XSL FAQ website for many example solutions from trivial to extremely obscure.) -- Joe Kesselman / Beware the fury of a patient man. -- John Dryden | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
