[xquery-talk] What does [.] do.

David Carlisle davidc at nag.co.uk
Mon Jan 27 07:08:23 PST 2014


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)


David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


More information about the talk mailing list