> return fn:concat($fi/id/text(), "|", $fi/addr/text(), "|", $fi/city/text(), > "|", $fi/state/text(), "|", $de/test/text(), "|", $de/test1/text())
With a common delimiter like that, string-join() can be used: string-join(($fi/id, $fi/addr, $fi/city, $fi/state, $de/test, $de/test1), '|') -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/ _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general