Note that there are some explanatory texts on larger screens.

plurals
  1. POBizTalk Map Value Mapping Looping Functoids
    primarykey
    data
    text
    <p>I have a source schema in which the address may be given either as multiple "AddressLine" elements or as multiple "Street" elements, or a combination. My destination schema simply has multiple "Street" elements. I'm having trouble mapping this with functoids (it's no problem with custom XSLT but I'd rather use the graphical method for this map). I've tried mapping both source elements to a looping functoid and then out of this into the destination element but this just produces XSLT that loops through the source "AddressLine" and "Street" elements but doesn't write anything to the destination!</p> <p>I've pasted the relevant sections of the source and destination schemas below:</p> <p><strong>Source</strong></p> <pre><code>&lt;xsd:complexType name="Address"&gt; &lt;xsd:sequence&gt; &lt;xsd:element name="AddressLine" type="xsd:string" minOccurs="0" maxOccurs="unbounded"&gt; &lt;xsd:annotation&gt; &lt;xsd:documentation&gt;Free format address lines may be used instead of (or in addition to) specific Street etc elements.&lt;/xsd:documentation&gt; &lt;/xsd:annotation&gt; &lt;/xsd:element&gt; &lt;xsd:element name="Street" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;xsd:element name="City" type="xsd:string" minOccurs="0"/&gt; &lt;xsd:element name="State" type="xsd:string" minOccurs="0"&gt; &lt;xsd:annotation&gt; &lt;xsd:documentation&gt;State/County/Province&lt;/xsd:documentation&gt; &lt;/xsd:annotation&gt; &lt;/xsd:element&gt; &lt;xsd:element name="PostCode" type="xsd:string" minOccurs="0"&gt; &lt;xsd:annotation&gt; &lt;xsd:documentation&gt;Post/ZIP code&lt;/xsd:documentation&gt; &lt;/xsd:annotation&gt; &lt;/xsd:element&gt; &lt;xsd:element name="Country" minOccurs="0"&gt; &lt;xsd:complexType&gt; &lt;xsd:simpleContent&gt; &lt;xsd:extension base="xsd:string"&gt; &lt;xsd:attribute name="Code" type="xsd:string" use="optional"/&gt; &lt;xsd:attribute name="Codelist" type="xsd:string" use="optional"/&gt; &lt;/xsd:extension&gt; &lt;/xsd:simpleContent&gt; &lt;/xsd:complexType&gt; &lt;/xsd:element&gt; &lt;/xsd:sequence&gt; &lt;/xsd:complexType&gt; </code></pre> <p><strong>Destination</strong></p> <pre><code>&lt;xs:element name="Address" minOccurs="0"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="Street" type="xs:string" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;xs:element name="City" type="xs:string" minOccurs="0"/&gt; &lt;xs:element name="State" type="xs:string" minOccurs="0"&gt; &lt;xs:annotation&gt; &lt;xs:documentation&gt;State/County/Province&lt;/xs:documentation&gt; &lt;/xs:annotation&gt; &lt;/xs:element&gt; &lt;xs:element name="PostCode" type="xs:string" minOccurs="0"&gt; &lt;xs:annotation&gt; &lt;xs:documentation&gt;Post/ZIP code&lt;/xs:documentation&gt; &lt;/xs:annotation&gt; &lt;/xs:element&gt; &lt;xs:element name="Country" minOccurs="0"&gt; &lt;xs:complexType&gt; &lt;xs:simpleContent&gt; &lt;xs:extension base="xs:string"&gt; &lt;xs:attribute name="Code" type="xs:string"/&gt; &lt;/xs:extension&gt; &lt;/xs:simpleContent&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload