[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Concat function - URGENT pls
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( <value-of select="//MovementDate"><xsl:value-of>,'@', <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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|