HI Graydon -

it isn't a builtin function, but maybe the functx:node-kind() and functx:sequence-type() functions are what you want[1,2]?
Hope that helps.

Best,
Bridger
[1] http://www.xqueryfunctions.com/xq/functx_node-kind.html
[2] http://www.xqueryfunctions.com/xq/functx_sequence-type.html

On Fri, Nov 9, 2018 at 12:40 PM Graydon Saunders <graydonish@gmail.com> wrote:
Hi!

I am overcome with the cabbage-nature today, because I can't find this in the docs.

I am convinced there's a way to go:

(//some-element/node()) ! fn:node-type(.)

and get a sequence of "element(),element(),text()..."  but do not know what the actual function is called. (it's not node-type()!)

How ought I to be approaching this?

Thanks!
Graydon