content.setLocationId(
allocateLocationId(getSystemId(), getLineNumber()));
}
}
if (content == null) {
content = new Literal(EmptySequence.getInstance());
}
inst.setContentExpression(content);
return inst;
}
} else {
// if the namespace URI must be deduced at run-time from the element name
// prefix, we need to save the namespace context of the instruction
if (namespace == null) {
nsContext = makeNamespaceContext();
}
}
ComputedElement inst = new ComputedElement(elementName,
namespace,
nsContext,
//(nsContext==null ? null : nsContext.getURIForPrefix("", true)),
schemaType,
validation,
inheritNamespaces,
false);
Expression content = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true);
if (attributeSets != null) {
UseAttributeSets use = new UseAttributeSets(attributeSets);
if (content == null) {
content = use;
} else {
content = Block.makeBlock(use, content);
content.setLocationId(
allocateLocationId(getSystemId(), getLineNumber()));
}
}
if (content == null) {
content = new Literal(EmptySequence.getInstance());
}
inst.setContentExpression(content);
return inst;
}