scan(literal.getType());
scanReferences(literal.getTypeCasts());
if (literal.getValue() != null){
if (literal.getValue().toString().equals("true") || literal.getValue().toString().equals("false")){
XpathBooleanExpression boolExpr = xpathFactory.createBoolean();
Boolean b = new Boolean(literal.getValue().toString());
boolExpr.setBoolean(b);
literalData.xpathLiteralExpr = boolExpr;
literalData.xpathExpr = boolExpr;
resolveTypeReference(literal.getType(),literalData);
literalData.xpathLiteralType = XpathExprType.BOOLEAN_EXPR_TYPE;
} else {