[xquery-talk] What does [.] do.
Ihe Onwuka
ihe.onwuka at gmail.com
Mon Jan 27 07:14:53 PST 2014
On Mon, Jan 27, 2014 at 3:08 PM, David Carlisle <davidc at 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.
More information about the talk
mailing list