English 中文(简体)
biztalk xslt映射
原标题:biztalk xslt - mapping

I m a newbie on bts - just started yesterday, having a "tutor" giving me a a few concepts - after the first mapping using bts tools (shipped on visual studio). now the guy who is tutoring ask me to do that manually... i write my own xslt file.

since i never work with xslt befor i m a little bit lost. i had an "incomming" xml with a namespace wich i want to modify to an output xml, with a diferent namespace. after that i had to pass directly values from one xml xml to another and to other values i had to sum or multiply .

incoming xml namespace = http://NWMessaging.CustomerOrder outcoming xml namespace = http://FKMessaging.SupplierPO/

我没有办法从第一个xml到第二个xml获取值。

有什么建议可以开始吗?

<?xml version="1.0" encoding="utf-8"?>

问题回答

如果您在Visual Studio的BizTalk映射器中创建映射,它可以为您生成XSLT,这可能是开始理解XSLT工作原理的最佳方式。这使您可以看到名称空间将被设置为什么,从输入到输出模式的链接节点是什么样子的,等等。

在Visual Studio中:

  • go to the Solution Explorer
  • right-click on your map file ([something].btm)
  • select Validate Map
  • after VS compiles and runs the validation, the Output pane will show you the location of the "output XSLT" file

除非你要做非常复杂的映射,否则你可能不需要对XSLT有太多的了解。如果你确实需要这样做,那么你总是可以拿起一本书





相关问题
Matrix to Represent a Triangle in Screen Space

So i have a set of four points in 3D Space. P1 [0, 0, 0] P2 [128, 0, 0] P3 [0, 128, 0] P4 [128, 128, 0] Which I m then projecting orthographically to the screen effectively giving me two ...

Using LINQ To SQL with multiple database tables

I have an employee class with as follows: public class Employee { public string FirstName { get; set; } public string LastName { get; set; } public string UserName { get; set; } ...

Mapping points from Euclician 2-space onto a Poincare disc

For some reason it seems that everyone writing webpages about Poincare discs is only concerned with how to represent lines and measure distances. I d like to morph a collection of 2D points (as ...

Fluent NHibernate, varbinary(max) and SQLite

I have a varbinary field in my sql server database that needs to be varbinary(max). I create my database with NHibernate and I use Fluent Nhibernate for my mappings. I also use SQLite for my unit ...

Javascript redirect

I am working with javascript and here is what I am trying to do: 1. Send a get request which looks like "http://localhost:8080/myapp/verify.htm?verifyId=Agkvhs" My requests reaches my verify.jsp in ...

热门标签