Skip to Content
author's profile photo Former Member
Former Member

how to concatenate string in simple transformations?

Hi,

I want to use a business field (data that is passed via ROOT to a simple transformation) to build a URL.

For ex. business field 'product_name' contains the value 'ipod'. Now, within the simple transformation, i want my xml to look link this:

http://google.com/ipod"/>

I want the "ipod" in the link attribute to be picked up from the business field. In other words, i want to concatenate: "link="http://google.com/" and product_name.

How can i do this string concatenation within simple transformation?

Regards,

Ram

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 16, 2009 at 06:23 AM

    Hi

    You can use CONCATENATE statement for it..

    PRODUCT_NAME = 'ipod'.
    CONCATENATE 'http://google.com/' PRODUCT_NAME INTO LINK.

    Now the Link Variable will be having

    http://google.com/ipod

    Hope it will solve your problem..

    Thanks & Regards

    ilesh 24x7

    ilesh Nandaniya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2009 at 10:23 AM

    Hi,

    I've been trying for some time now and still no idea how (/if) it is possible. Just to add clarity to the issue i'm facing, in XSLT, to concatenate strings with the data values, for ex. to create a URL, the following code will work:

    <prodct name='{$product/name}' *product_link='http://google.com/search?{$product/name}'*/>

    I want to achieve the above functionality (building the product_link attribute) with simple transformations. Is this possible? If yes, how? Any help in this regard is deeply appreciated.

    Thanks,

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.