Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to concatenate 2 fields

From: Joseph Kesselman <keshlam-nospam@-------.--->
To: 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent