title: XSLT to map source to target
body: <p>I have a source which has a element <strong>personOrBusiness</strong> </p>
  
  <pre><code>&lt;xsd:element name="personOrBusiness" minOccurs="0"&gt;
  &lt;xsd:simpleType&gt;
  &lt;xsd:restriction base="xsd:string"&gt;
  &lt;xsd:enumeration value="business"/&gt;
  &lt;xsd:enumeration value="person"/&gt;
  &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  &lt;/xsd:element&gt;
  </code></pre>
  
  <p>I want this to be mapped to FirmOrPerson any idea what xslt map should i write.</p>
  
  <pre><code>&lt;element name="ContactParty"&gt;
         &lt;complexType&gt;
          &lt;sequence&gt;
           &lt;element name="Language" type="string"/&gt;
           &lt;element name="Service" type="string"/&gt;
           &lt;element name="ContactRole" type="string"/&gt;
           &lt;element name="FirmOrPerson" type="string"/&gt;
           &lt;element name="Address" minOccurs="0"&gt;
            &lt;complexType&gt;
             &lt;sequence&gt;
              &lt;element name="Street" type="string"/&gt;
              &lt;element name="HouseNumber" type="int"/&gt;
              &lt;element name="Box" type="string"/&gt;
              &lt;element name="City" type="string"/&gt;
              &lt;element name="ZIPCode" type="int"/&gt;
              &lt;element name="State" type="string"/&gt;
              &lt;element name="Region" type="string"/&gt;
              &lt;element name="Country" type="string"/&gt;
               &lt;element name="isInCityLimit" type="boolean"/&gt;
              &lt;/sequence&gt;
            &lt;/complexType&gt;
           &lt;/element&gt;
           &lt;choice&gt;
            &lt;element name="Firm"&gt;
             &lt;complexType&gt;
              &lt;sequence&gt;
               &lt;element name="legalForm" type="string"/&gt;
               &lt;element name="legalName" type="string"/&gt;
               &lt;element name="EnterpriseNumber" type="string"/&gt;
               &lt;element name="NACEcode" type="string"/&gt;
              &lt;/sequence&gt;
             &lt;/complexType&gt;
            &lt;/element&gt;
            &lt;element name="Person"&gt;
             &lt;complexType&gt;
              &lt;sequence&gt;
               &lt;element name="Title" type="string"/&gt;
               &lt;element name="LastName" type="string"/&gt;
               &lt;element name="firstName" type="string"/&gt;
               &lt;element name="NationalRegistrationNumber" type="string"/&gt;
                &lt;element name="PhoneType" type="string"/&gt;
                &lt;element name="Phone" type="string"/&gt;
               &lt;/sequence&gt;
             &lt;/complexType&gt;
            &lt;/element&gt;
           &lt;/choice&gt;
          &lt;/sequence&gt;
         &lt;/complexType&gt;
        &lt;/element&gt;
  </code></pre>