locked
Transformation using XSLT RRS feed

  • Question

  • Hi ,

     

    I am very new to XSLT. I have a requirement in which i have to use Xslt to transform the xml msg.

    My Source schema is of type "Any" and the distination has well defined schema.

    Now withe the help of Xslt i need to transform the incoming xml to my destination shema.

    how can i use the XSLT. I have already an XSLT prepared.

    Tuesday, March 1, 2011 6:52 AM

Answers

  • You still create a map in a BizTalk project in Visual studio. Select source and destination schemas, but instead of mapping using the visual tool (links and functoids) you click on the mapping canvas and under properties choose "Custom XSLT path" and choose your xslt file. Now the map will use only this file and ignore any visual mapping. Deploy the project and use the map as you would if it was a "normal" BizTalk map.

    Note: If you change your xslt after you have deployed your project, changes doesn't always apply until you either restart Visual Studio or clean the project (I believe it is because the .cs files still holds the old xslt)

     

    Morten la Cour

    • Proposed as answer by TBerg Tuesday, March 1, 2011 8:45 AM
    • Marked as answer by Manish kumar Tuesday, March 1, 2011 9:17 AM
    Tuesday, March 1, 2011 7:33 AM

All replies

  • You still create a map in a BizTalk project in Visual studio. Select source and destination schemas, but instead of mapping using the visual tool (links and functoids) you click on the mapping canvas and under properties choose "Custom XSLT path" and choose your xslt file. Now the map will use only this file and ignore any visual mapping. Deploy the project and use the map as you would if it was a "normal" BizTalk map.

    Note: If you change your xslt after you have deployed your project, changes doesn't always apply until you either restart Visual Studio or clean the project (I believe it is because the .cs files still holds the old xslt)

     

    Morten la Cour

    • Proposed as answer by TBerg Tuesday, March 1, 2011 8:45 AM
    • Marked as answer by Manish kumar Tuesday, March 1, 2011 9:17 AM
    Tuesday, March 1, 2011 7:33 AM
  • Here is some reference documents:


    If this is helpful or answers your question - please mark accordingly.
    Because I get points for it which gives my life purpose (also, it helps other people find answers quickly)
    Tuesday, March 1, 2011 10:10 AM