On Mon, Jan 27, 2014 at 3:08 PM, David Carlisle <dav...@nag.co.uk> wrote: > On 27/01/2014 14:55, Ihe Onwuka wrote: >> >> I am using one transformation for two different data sources with two >> different schemas. >> >> One site may call a resoure readingMaterial another site may call the >> same concept a publication, but they are otherwise similar and you may >> want to treat them as such. >> >> (xs:string(readingMaterial),xs:string(publication))[.] >> > > > > I'd probably write that as > > (readingMaterial|publication)/string() > > or if you know that exactly one of them is always there > > > > string(readingMaterial|publication) >
I started with some variation of the union version (without the string) and was getting error messages. I can't remember what they were now and I've had to reboot my machine so can't go back and look. _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk