Friday, January 20, 2012

XQuery, extract file name from directory

fn:tokenize(fn:replace($theDirectory, '\\', '/'), '/')[fn:last()]


input: C:\tmp\bla\po\in\if2

output: if2

No comments: