copyNamespaces = false; } else { compileError("Value of copy-namespaces must be 'yes' or 'no'", "XTSE0020"); validation = Validation.getCode(validationAtt); if (validation != Validation.STRIP && !getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("To perform validation, a schema-aware XSLT processor is needed", "XTSE1660"); compileError("invalid value of validation attribute", "XTSE0020"); schemaType = getSchemaType(typeAtt); if (!getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); compileError("The @validation and @type attributes are mutually exclusive", "XTSE1505"); readOnce = false; } else { compileError("saxon:read-once attribute must be 'yes' or 'no'");
copyNamespaces = false; } else { compileError("Value of copy-namespaces must be 'yes' or 'no'", "XTSE0020"); validation = Validation.getCode(validationAtt); if (validation != Validation.STRIP && !getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("To perform validation, a schema-aware XSLT processor is needed", "XTSE1660"); compileError("invalid value of validation attribute", "XTSE0020"); schemaType = getSchemaType(typeAtt); if (!getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); compileError("The @validation and @type attributes are mutually exclusive", "XTSE1505"); readOnce = false; } else { compileError("saxon:read-once attribute must be 'yes' or 'no'");
typeAtt = Whitespace.trim(atts.getValue(a)); } else if (atts.getLocalName(a).equals("read-once") && atts.getURI(a).equals(NamespaceConstant.SAXON)) { compileError("The saxon:read-once attribute is no longer available - use xsl:stream"); } else { checkUnknownAttribute(atts.getNodeName(a)); schemaType = getSchemaType(typeAtt); if (!isSchemaAware()) { compileError("The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); compileError("The @validation and @type attributes are mutually exclusive", "XTSE1505");
typeAtt = Whitespace.trim(atts.getValue(a)); } else if (atts.getLocalName(a).equals("read-once") && atts.getURI(a).equals(NamespaceConstant.SAXON)) { compileError("The saxon:read-once attribute is no longer available - use xsl:stream"); } else { checkUnknownAttribute(atts.getNodeName(a)); schemaType = getSchemaType(typeAtt); if (!isSchemaAware()) { compileError("The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); compileError("The @validation and @type attributes are mutually exclusive", "XTSE1505");