SPARQL Variable Binding Results to XHTML table (XQuery)

x hpage name mbox age blurb friend
nodeID r1 URI http://work.example.org/alice/ Alice [unbound] [unbound] <p xmlns="http://www.w3.org/1999/xhtml">My name is <b>alice</b></p> (datatype http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral ) nodeID r2
nodeID r2 URI http://work.example.org/bob/ Bob @ en URI mailto:bob@work.example.org 30 (datatype http://www.w3.org/2001/XMLSchema#integer ) [unbound] nodeID r1