public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { DocumentInstr inst = new DocumentInstr(false, null); inst.setValidationAction(validationAction, schemaType); Expression b = compileSequenceConstructor(exec, decl, true); if (b == null) { b = Literal.makeEmptySequence(); } inst.setContentExpression(b); inst.setLocation(allocateLocation()); return inst; }
public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { DocumentInstr inst = new DocumentInstr(false, null); inst.setValidationAction(validationAction, schemaType); Expression b = compileSequenceConstructor(exec, decl, true); if (b == null) { b = Literal.makeEmptySequence(); } inst.setContentExpression(b); inst.setLocation(allocateLocation()); return inst; }
public Expression compile(Executable exec) throws XPathException { DocumentInstr inst = new DocumentInstr(false, null, getBaseURI()); inst.setValidationMode(validationAction); inst.setSchemaType(schemaType); Expression b = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true); if (b == null) { b = Literal.makeEmptySequence(); } inst.setContentExpression(b); return inst; }
public Expression compile(Executable exec) throws XPathException { DocumentInstr inst = new DocumentInstr(false, null, getBaseURI()); inst.setValidationAction(validationAction); inst.setSchemaType(schemaType); Expression b = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true); if (b == null) { b = Literal.makeEmptySequence(); } inst.setContentExpression(b); return inst; }