Project

Profile

Help

Revision fcfc4529

Added by Michael Kay over 12 years ago

Fix bug 2688052 (type-available)

View differences:

latest9.1/bj/net/sf/saxon/functions/Available.java
7 7
import net.sf.saxon.trans.XPathException;
8 8
import net.sf.saxon.type.BuiltInAtomicType;
9 9
import net.sf.saxon.type.SchemaType;
10
import net.sf.saxon.type.BuiltInListType;
10 11
import net.sf.saxon.value.AtomicValue;
11 12
import net.sf.saxon.value.BooleanValue;
12 13
import net.sf.saxon.value.NumericValue;
......
108 109
                        SchemaType type = config.getSchemaType(fingerprint);
109 110
                        if (type instanceof BuiltInAtomicType) {
110 111
                            b = env.isAllowedBuiltInType((BuiltInAtomicType)type);
112
                        } else if (type instanceof BuiltInListType) {
113
                            b = config.isSchemaAware(Configuration.XSLT);
111 114
                        } else {
112
                            b = (type != null && (NamespaceConstant.SCHEMA.equals(uri) || env.isImportedSchema(uri)));
115
                            b = (type != null && (uri.equals(NamespaceConstant.SCHEMA) || env.isImportedSchema(uri)));
113 116
                        }
114 117
                    }
115 118
                } catch (QNameException e) {

Also available in: Unified diff