/** * Simplify the expression * @return the simplified expression * @param visitor an expression visitor */ public Expression simplify(ExpressionVisitor visitor) throws XPathException { StaticContext env = visitor.getStaticContext(); if ((targetType instanceof BuiltInAtomicType) && !env.isAllowedBuiltInType((BuiltInAtomicType)targetType)) { // this is checked here because the ConstructorFunctionLibrary doesn't have access to the static // context at bind time XPathException err = new XPathException("The type " + targetType.getDisplayName() + " is not recognized by a Basic XSLT Processor", this); err.setErrorCode("XPST0080"); err.setIsStaticError(true); throw err; } operand = visitor.simplify(operand); if (Literal.isAtomic(operand)) { return typeCheck(visitor, Type.ITEM_TYPE); } return this; }
/** * Simplify the expression * @return the simplified expression * @param visitor an expression visitor */ public Expression simplify(ExpressionVisitor visitor) throws XPathException { StaticContext env = visitor.getStaticContext(); if ((targetType instanceof BuiltInAtomicType) && !env.isAllowedBuiltInType((BuiltInAtomicType)targetType)) { // this is checked here because the ConstructorFunctionLibrary doesn't have access to the static // context at bind time XPathException err = new XPathException("The type " + targetType.getDisplayName() + " is not recognized by a Basic XSLT Processor", this); err.setErrorCode("XPST0080"); err.setIsStaticError(true); throw err; } operand = visitor.simplify(operand); if (Literal.isAtomic(operand)) { return typeCheck(visitor, Type.ITEM_TYPE); } return this; }
if (!env.isAllowedBuiltInType((BuiltInAtomicType)t)) { grumble("The type " + qname + " is not recognized by a Basic XSLT Processor. ", "XPST0080");
if (!env.isAllowedBuiltInType((BuiltInAtomicType)t)) { grumble("The type " + qname + " is not recognized by a Basic XSLT Processor. ", "XPST0080");
SchemaType type = config.getSchemaType(fingerprint); if (type instanceof BuiltInAtomicType) { b = env.isAllowedBuiltInType((BuiltInAtomicType)type); } else if (type instanceof BuiltInListType) { b = config.isSchemaAware(Configuration.XSLT);
if (uri.equals(NamespaceConstant.SCHEMA)) { ItemType t = Type.getBuiltInItemType(uri, parts[1]); if (t instanceof BuiltInAtomicType && !env.isAllowedBuiltInType((BuiltInAtomicType)t)) { grumble("The type " + fname + " is not recognized by a Basic XSLT Processor. ", "XPST0080");
if (uri.equals(NamespaceConstant.SCHEMA)) { ItemType t = Type.getBuiltInItemType(uri, parts[1]); if (t instanceof BuiltInAtomicType && !env.isAllowedBuiltInType((BuiltInAtomicType)t)) { grumble("The type " + fname + " is not recognized by a Basic XSLT Processor. ", "XPST0080"); return null;
SchemaType type = config.getSchemaType(fingerprint); if (type instanceof BuiltInAtomicType) { b = env.isAllowedBuiltInType((BuiltInAtomicType)type); } else { b = (type != null && env.isImportedSchema(uri));
SchemaType type = config.getSchemaType(fingerprint); if (type instanceof BuiltInAtomicType) { b = env.isAllowedBuiltInType((BuiltInAtomicType)type); } else { b = (type != null && env.isImportedSchema(uri));