Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Xquery Question

From: jlamb77@----------.---
To: NULL
Date: 6/5/2007 4:31:00 AM

Hi All,

I am fairly new to xquery and I have hit a bit of a stumbling block
whilst trying to generate a mapping.

Basically I have a source XSD with a structure like the blow in it:

<xsd:complexType name="CustomerName">
     <xsd:sequence>
       <xsd:element name="CustomerTitle" type="xsd:string">
       <xsd:element name="CustomerForename" type="xsd:string"
maxOccurs="3"/>
      <xsd:element name="CustomerSurname" type="xsd:sting"/>
   </xsd:sequence>

As you can see the XSD allows for up to 3 Forenames per customer.

The target XSD simply has an element called CustomerName that is a
String.

What I need to do using Xquery is concatenate the CustomerTitle +
CustomerForename (*3) + CustomerSurname together and push that into
target CustomerName.

I am using Altova Mapforce to construct the Xquery and can't workout
how to do the above. Iterating though elements that have the same
element name seems to have gone way over my head.

Does anyone out there know how I can resolve my issue either using
Mapforce or a hand crafted Xquery extract?

Any help much appreciated.

Regards



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent