Eliot,
Thanx for the link. I studying it right now :-)
Rob
-----Oorspronkelijk bericht----- Van: Eliot Kimber [mailto:ekimber@contrext.com] Verzonden: woensdag 29 juli 2015 17:35 Aan: Rob Stapper; BaseX Onderwerp: Re: [basex-talk] question
I believe you need to use the "castable as" or "instance of" operators to determine the type, e.g.:
let $typeName := if ($somevar castable as xs:integer) then 'integer' else if ($somevar castable as xs:string) then 'string' else 'unknown type'
Or something close to that. There is also "instance of", which might be
I also found this paper, which might be interesting:
http://www.balisage.net/Proceedings/vol8/html/Holstege01/BalisageVol8-Holst ege01.html
Cheers,
E. ---- Eliot Kimber, Owner Contrext, LLC http://contrext.com
On 7/29/15, 9:54 AM, "Rob Stapper" <basex-talk-bounces@mailman.uni-konstanz.de on behalf of r.stapper@lijbrandt.nl> wrote:
Hello,
I must be overlooking something, so excuses in advance, but: How can I retrieve the datatype of a variable?
TIA, Rob Stapper
https://www.avast.com/antivirus Dit e-mailbericht is gecontroleerd op
virussen met Avast
antivirussoftware. www.avast.com https://www.avast.com/antivirus
--- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. https://www.avast.com/antivirus