In Microsoft Visual Studio 2005, you may receive an error message that resembles the following when you try to compile a Microsoft BizTalk Server 2006 solution:
Namespace:Element1 cannot be a member of substitution group with head element Namespace:Element2.
Note Namespace represents the namespace for a schema that is the source or destination schema in a BizTalk map.
Element1 and
Element2 represent elements in the schema.
In Microsoft Visual Studio .NET 2003, you may receive an error message that resembles one of the following error messages when you try to select a schema as the source or destination schema in a BizTalk map in a Microsoft BizTalk Server 2004 project:
Error message 1
Failed to load Source Schema.
Reason:
'xs' is an undeclared namespace.
Error message 2
Failed to load Target Schema.
Reason:
'xs' is an undeclared namespace.
Additionally, the XSLT that is produced by the BizTalk Mapper may not appear as expected.
This issue occurs if the schema contains the
substitutionGroup element.
To resolve this issue, modify the schema so that the schema does not contain the
substitutionGroup element.
To work around this issue, add a scripting functoid that uses inline XSLT to the BizTalk solution.
This behavior is by design.
In BizTalk Server 2006 and in Microsoft BizTalk Server 2004, the Schema Editor does not support the use of the
substitutionGroup element. Therefore, you cannot develop an XML schema that contains the
substitutionGroup element in BizTalk Server 2006 or in BizTalk Server 2004.
The
substitutionGroup element is used in many standard schemas. For example, the
substitutionGroup element is used in EAN, UCC, and EDI schemas.
For more information about how to use EDI schemas included with BizTalk Server 2004, click the following article number to view the article in the Microsoft Knowledge Base: