XSD Element Groups
The use of certain structures in a schema may create variations in the Extensible Stylesheet Language Transformations (XSLT) that BizTalk Mapper generates. One case is including a schema in your map that defines sequence, choice, or all element groups. For example, if you use a schema that includes a Choice Group node, it is possible for you to create a map that requires two or more of the children of the Choice Group node to appear in an output instance message. In this case, BizTalk Mapper displays a warning when you compile the map. The warning tells you that only one of the required fields you have mapped may be populated in the same iteration of the parent loop at run time. BizTalk Mapper will not give you an error that your mapping logic is incorrect.
Another situation in which you might generate variations in the XSLT is when the following conditions are met:
- Record A has a child Field Element B.
- Record A and child Field Element B occur once.
- Record A is part of a Choice Group that repeats.
In this situation, BizTalk Mapper generates XSLT that contains iteration logic to handle the possibility of the many variations of the source records.
Note You must be explicit with respect to mappings involving groups. For example, if a destination schema contains a Choice Group node with child nodes A and B, it is not valid to have A and B simultaneously on the same iteration of their parent group. BizTalk Mapper does not prevent you from creating mappings that are not valid. Therefore, you must use logical functoids to set up mappings whereby A and B can never occur at the same time.
See Alsohttp://go.microsoft.com/fwlink/?linkid=20616.Copyright © 2004 Microsoft Corporation.
All rights reserved.