Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Xquery Question Xquery QuestionTo: 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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
