开发者

XSD-XSD Mapping

I have two XSD files (source and target)... on what basis should I map these two files to get an XSLT? I know how MapForce helps in mapping but I worked with the sample project ..Now I wanted to know on what basis should I map these file that my开发者_如何学C client sent me..


I don't think there could be any general way to generate an XSLT given two XSD (if this is what your are after). The XSDs describe the structure of the XML files, but they don't say anything about what is the data they contain (their semantics if you will).

E.g.

<Customer>
   <Name>ACME</Name>
   <Address>9 Main Street, Anytown, USA</Address>
</Customer>

and

<Customer Name="ACME" City="Anytown" Country="USA" Address="9 Main Street"/>

are two XML describing more or less the same thing - but there is no way to know reading their XSD that the <Address> element in one correspond to three different attributes Address, City and Country in the other.

I am afraid you have to create the XSLT manually - and my suggestion would be to start from sample XML files, not the XSDs - much easier.


am afraid you have to create the XSLT manually - and my suggestion would be to start from sample XML files, not the XSDs - much easier.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜