RE: [xsl] Concat function - URGENT pls

Subject: RE: [xsl] Concat function - URGENT pls
From: "Dion Houston" <dionh@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Mar 2003 15:38:25 -0800
Hi Harsha:

Give this a shot:

<xsl:element name="MovementDateTime">
   <xsl:value-of select="concat(PODDate, '@', PODTime, ':00')"/>
</xsl:element>

Assuming that the current element is the parent of your two elements
below, this will give you the results your looking for.

For your other question, yes, concat takes any number of parameters.

HTH!

Dion
-----Original Message-----
From: Challa, Harsha [mailto:hchalla@xxxxxxxxxxxx] 
Sent: Monday, March 10, 2003 3:22 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx


I give up 

I am having trouble using the concat function 
I am just forming a date time element by selecting values of date and
time
elements
I am getting all sorts of errors, syntactical 

Source
<PODDate>3/10/2003</PODDate>
<PODTime>9:14</PODTime>


Needs to be transformed to
<MovementDateTime>03/17/2003@09:14:0</MovementDateTime>



<xsl:element name="MovementDateTime">
							<xsl:value-of
select= "concat(
					
						&lt;value-of
select="//MovementDate">&lt;xsl:value-of>,'@', &lt;value-of
select="//MovementTime"></xsl:value-of>,':00')"/>
	
</xsl:element>

Any help will be appreciated, 
BTW, Can I concat any number of strings with the concat function?


thanks in advance
Harsha

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread