mapping choice/equivalent elements in BT2004

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: cdovhgx (cdovhgx.1kjtx1_at_mail.webservertalk.com)
Date: 02/16/05


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
 


Relevant Pages

  • Re: Newbie: Struggling again map
    ... def calc: ... map() and zipperform two different tasks. ... If one sequence is shorter than the other, ... stops at the end of the shorter sequence, ...
    (comp.lang.python)
  • Modal-logic with scope-modifying operators
    ... A few years ago I thought of an obvious extension of modal predicate logic in which subformulae of a modally quantified formula may be "exempted" from the scope of the modal operator and subformulae of such exempted formulae may again be introduced into the scope. ... The semantics for this extension can be given in a natural fashion by defining the relation "the sequence of worlds w_1,...,w_n at ...
    (sci.logic)
  • Re: Biztalk 2002 - Mapping
    ... >> I have a inbound XML which has one record repeat upt to 8 times, ... In the map, the output I expect ... But if the value is on top of the sequence, ... If make script functoid as equal ...
    (microsoft.public.biztalk.general)
  • Re: Gravesend Street Query
    ... the Google Earth view of the site, it now appears to be a car park! ... Assuming the plot boundaries on the 1899 map are accurate and the ... I believe it's possible to look at census records to work out which route ... where the same sequence occurs in the bookfor consecutive censuses ...
    (soc.genealogy.britain)
  • Re: Homology, very basic quesiton..
    ... Shouldn't this be the same for i_* since i is a chain map? ... how we get the long exact sequence, ... So C_is the collection of (linear combinations of) ...
    (sci.math)