}
// process children
for(XQExpression content : contents) {
Sequence childs = content.eval(contextSeq, dynEnv);
if(childs != ValueSequence.EMPTY_SEQUENCE) {
CloneNodesSequence clonedseq = new CloneNodesSequence(childs, dynEnv);
dmelem.addContents(clonedseq, dynEnv);
}
}
if(hasNamespaceDecl) {
knownNamespaces.popContext();