SINN and XQuery: Results and Implementation