break;
}
case ATTRIBUTE:
if (out instanceof SequenceReceiver) {
Orphan o = new Orphan(in.getPipelineConfiguration().getConfiguration());
o.setNameCode(getNameCode());
o.setNodeKind(Type.ATTRIBUTE);
o.setStringValue(getStringValue());
((SequenceReceiver)out).append(o, 0, 0);
break;
} else {
out.attribute(getNameCode(), getTypeAnnotation(), getStringValue(), 0, 0);
break;
//throw new XPathException("Cannot serialize a free-standing attribute node");
}
case NAMESPACE:
if (out instanceof SequenceReceiver) {
Orphan o = new Orphan(in.getPipelineConfiguration().getConfiguration());
o.setNameCode(getNameCode());
o.setNodeKind(Type.NAMESPACE);
o.setStringValue(getStringValue());
((SequenceReceiver)out).append(o, 0, 0);
break;
} else {
int nsCode = getNamePool().getNamespaceCode(getNameCode());
out.namespace(nsCode, 0);