5 Replies Latest reply: Nov 18, 2012 10:42 PM by RK.. RSS

    For Each function for a Concat Value

    RK..
      Hi:

      The scenario is, we need to concat two unbounded elements and map it to a target element using for each functionality.

      For example

      <BookStore>
      <Books>
      <Name>NAME1</Name>
      <Author>AUTHOR1</Author>
      <BookId>1</BookId>
      <Quantity>2</Quantity>
      <Price></Price>
      <Status></Status>
      <Books>
      <Books>
      <Name>NAME2</Name>
      <Author>AUTHOR2</Author>
      <BookId>2</BookId>
      <Quantity>2</Quantity>
      <Price></Price>
      <Status></Status>
      <Books>
      </BookStore>

      I need to concat "Name" and "Author" which is under the unbounded element "BookStore" and map it to a single element called "Sample" on the Target side.

      I am not able to use the "for-each" XSLT function to get the multiple value of Name and Author since concat function is used. Is there any other way to concat and get the multiple values of the element "Name" and "Author"?

      Regards
      RK