xpath document() function in biztalk map

Home Page Forums BizTalk 2004 – BizTalk 2010 xpath document() function in biztalk map

Viewing 1 reply thread
  • Author
    Posts
    • #14910

      I have written an XSL stylesheet to transfrom a message which requires data from external xml file. I use the xpath document() function to load the external file, and when I run the transform with the VS.NET debugger it works perfectly.

      I created a biztalk map and set the Custom XSL property to use my
      stylesheet. However, when I run the Test Map function with the same input document, the transform fails becuase it will not the load the external data.

      I did a lot of testing with different external files in different locations
      (web, file system etc. ) and it seems that when run in the context of the
      mapper, the xpath document() function does not work at all.

      Has anyone else seen this behavior, or is there some reason that the
      function is not available?

      Any help would be greatly appreciated.

      Thanks,
      Seth

    • #14911

      Thanks Stephen,
      That did work for me eventually … I used an inline c# method to retrieve the doc and return it to the xsl. One thing to note with this method was that I had to use the msxsl:node-set() xpath function in order to convert the result of the c# method to a usable node set.

      • #14912

        I have tried to do similar things in the past. I don’t think that’s supported inside the map.

        You might want to try putting all the logic inside a .net component and calling that – not sure if that will work in your exact scenario though.

      • #24459

        Hello I have the same problem, could you post an example

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.