mapping choice/equivalent elements in BT2004
From: cdovhgx (cdovhgx.1kjtx1_at_mail.webservertalk.com)
Date: 02/16/05
- Next message: Gavin G. Jones: "Re: Custom Functoid - intermitment toolbar image"
- Previous message: Xerox: "Re: Receive adapter deletes empty files, doesn't forward on message!"
- Next in thread: Matt Milner: "Re: mapping choice/equivalent elements in BT2004"
- Reply: Matt Milner: "Re: mapping choice/equivalent elements in BT2004"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Feb 2005 07:17:50 -0600
Hello all,
Like a lot of people, I'm new to BT2004 and I've run into a hurdle.
I'm trying to use the whole power of xml schema by creating reusable
types. As such, I'm trying to use abstract types as a basis of many of
my types. for example, i have this classic test case:
<!-- BEGIN SNIPPIT -->
<xs:element name="Shape" type="Shape"/>
<complexType name="Shape" abstract="true">
<sequence>
<element name="Area" type="double" />
</sequence>
</complexType>
<complexType name="Square">
<complexContent>
<extension base="Shape">
<sequence>
<element name="Length" type="double" />
<element name="Width" type="double" />
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="Circle">
<complexContent>
<extension base="Shape">
<sequence>
<element name="Radius" type="double" />
</sequence>
</extension>
</complexContent>
</complexType>
<!-- END SNIPPIT -->
I'd like to simply map this to a simpler to understand ( for a
non-programmer ) xsd following this format:
<!-- BEGIN SNIPPIT -->
<xs:element name="Shape">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element name="Circle" type="Circle"/>
<xs:element name="Square" type="Square"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- END SNIPPIT -->
My problem is I don't know how to map this using the biztalk mapper.
Should I use a functoid? Should I connect both the 'derived' elements
of 'area' to both choices? I just don't know how to proceed.
>From all the times I've tried, I keep getting: [The destination node
"Area" is required but the source node "Area" is within a choice
block.] I get this for all the attributes...
Can anyone help or point me to WHERE on the net I can find an example
of this? Thus far, I've found only straight mapping examples... That's
"cake"! :) I just can't map a choice / equivalent elemnet...
Thanks to anyone who responds,
cdovhgx
-- cdovhgx ------------------------------------------------------------------------ Posted via http://www.webservertalk.com ------------------------------------------------------------------------ View this thread: http://www.webservertalk.com/message922131.html
- Next message: Gavin G. Jones: "Re: Custom Functoid - intermitment toolbar image"
- Previous message: Xerox: "Re: Receive adapter deletes empty files, doesn't forward on message!"
- Next in thread: Matt Milner: "Re: mapping choice/equivalent elements in BT2004"
- Reply: Matt Milner: "Re: mapping choice/equivalent elements in BT2004"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|