private void invalidAttributeName(String message) throws XPathException { // if (forwardsCompatibleModeIsEnabled()) { // DynamicError err = new XPathException(message); // err.setErrorCode("XTDE0850"); // err.setLocator(this); // attributeName = new ErrorExpression(err); // } else { compileError(message, "XTDE0850"); // prevent a duplicate error message... attributeName = new StringLiteral("saxon-error-attribute"); // } }
private void invalidAttributeName(String message) throws XPathException { // if (forwardsCompatibleModeIsEnabled()) { // DynamicError err = new XPathException(message); // err.setErrorCode("XTDE0850"); // err.setLocator(this); // attributeName = new ErrorExpression(err); // } else { compileError(message, "XTDE0850"); // prevent a duplicate error message... attributeName = new StringLiteral("saxon-error-attribute"); // } }
private void invalidAttributeName(String message) throws XPathException { // if (forwardsCompatibleModeIsEnabled()) { // DynamicError err = new XPathException(message); // err.setErrorCode("XTDE0850"); // err.setLocator(this); // attributeName = new ErrorExpression(err); // } else { compileError(message, "XTDE0850"); // prevent a duplicate error message... attributeName = new StringLiteral("saxon-error-attribute"); // } }
public void validate() throws XPathException { if (schemaType != null) { if (schemaType.isNamespaceSensitive()) { compileError("Validation at attribute level must not specify a " + "namespace-sensitive type (xs:QName or xs:NOTATION)", "XTTE1545"); } } attributeName = typeCheck("name", attributeName); namespace = typeCheck("namespace", namespace); select = typeCheck("select", select); separator = typeCheck("separator", separator); super.validate(); }
public void validate() throws XPathException { if (schemaType != null) { if (schemaType.isNamespaceSensitive()) { compileError("Validation at attribute level must not specify a " + "namespace-sensitive type (xs:QName or xs:NOTATION)", "XTTE1545"); } } attributeName = typeCheck("name", attributeName); namespace = typeCheck("namespace", namespace); select = typeCheck("select", select); separator = typeCheck("separator", separator); super.validate(); }
public void validate() throws XPathException { if (schemaType != null) { if (schemaType.isNamespaceSensitive()) { compileError("Validation at attribute level must not specify a " + "namespace-sensitive type (xs:QName or xs:NOTATION)", "XTTE1545"); } } attributeName = typeCheck("name", attributeName); namespace = typeCheck("namespace", namespace); select = typeCheck("select", select); separator = typeCheck("separator", separator); super.validate(); }
if (namespace instanceof StringLiteral) { if (!StandardURIChecker.getInstance().isValidURI(((StringLiteral) namespace).getStringValue())) { compileError("The value of the namespace attribute must be a valid URI", "XTDE0865"); compileError( "The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); } else { SchemaType type = getSchemaType(typeAtt); if (type == null) { compileError("Unknown attribute type " + typeAtt, "XTSE1520"); } else { if (type.isSimpleType()) { schemaType = (SimpleType) type; } else { compileError("Type annotation for attributes must be a simple type", "XTSE1530"); compileError("The validation and type attributes are mutually exclusive", "XTSE1505"); validationAction = getDefaultValidation(); schemaType = null;
if (namespace instanceof StringLiteral) { if (!StandardURIChecker.getInstance().isValidURI(((StringLiteral) namespace).getStringValue())) { compileError("The value of the namespace attribute must be a valid URI", "XTDE0865"); compileError( "The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); } else { SchemaType type = getSchemaType(typeAtt); if (type == null) { compileError("Unknown attribute type " + typeAtt, "XTSE1520"); } else { if (type.isSimpleType()) { schemaType = (SimpleType) type; } else { compileError("Type annotation for attributes must be a simple type", "XTSE1530"); compileError("The validation and type attributes are mutually exclusive", "XTSE1505"); validationAction = getDefaultValidation(); schemaType = null;
if (namespace instanceof StringLiteral) { if (!AnyURIValue.isValidURI(((StringLiteral)namespace).getStringValue())) { compileError("The value of the namespace attribute must be a valid URI", "XTDE0865"); validationAction = Validation.getCode(validationAtt); if (validationAction != Validation.STRIP && !getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("To perform validation, a schema-aware XSLT processor is needed", "XTSE1660"); validationAction = getContainingStylesheet().getDefaultValidation(); compileError("Invalid value of validation attribute", "XTSE0020"); validationAction = getContainingStylesheet().getDefaultValidation(); compileError( "The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); } else { SchemaType type = getSchemaType(typeAtt); if (type == null) { compileError("Unknown attribute type " + typeAtt, "XTSE1520"); } else { if (type.isSimpleType()) { schemaType = (SimpleType)type; } else { compileError("Type annotation for attributes must be a simple type", "XTSE1530"); type = null; compileError("The validation and type attributes are mutually exclusive", "XTSE1505"); validationAction = getContainingStylesheet().getDefaultValidation(); schemaType = null;
if (namespace instanceof StringLiteral) { if (!AnyURIValue.isValidURI(((StringLiteral)namespace).getStringValue())) { compileError("The value of the namespace attribute must be a valid URI", "XTDE0865"); validationAction = Validation.getCode(validationAtt); if (validationAction != Validation.STRIP && !getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("To perform validation, a schema-aware XSLT processor is needed", "XTSE1660"); validationAction = getContainingStylesheet().getDefaultValidation(); compileError("Invalid value of validation attribute", "XTSE0020"); validationAction = getContainingStylesheet().getDefaultValidation(); compileError( "The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); } else { SchemaType type = getSchemaType(typeAtt); if (type == null) { compileError("Unknown attribute type " + typeAtt, "XTSE1520"); } else { if (type.isSimpleType()) { schemaType = (SimpleType)type; } else { compileError("Type annotation for attributes must be a simple type", "XTSE1530"); type = null; compileError("The validation and type attributes are mutually exclusive", "XTSE1505"); validationAction = getContainingStylesheet().getDefaultValidation(); schemaType = null;
if (namespace instanceof StringLiteral) { if (!AnyURIValue.isValidURI(((StringLiteral)namespace).getStringValue())) { compileError("The value of the namespace attribute must be a valid URI", "XTDE0865"); validationAction = Validation.getCode(validationAtt); if (validationAction != Validation.STRIP && !getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("To perform validation, a schema-aware XSLT processor is needed", "XTSE1660"); validationAction = getContainingStylesheet().getDefaultValidation(); compileError("Invalid value of validation attribute", "XTSE0020"); validationAction = getContainingStylesheet().getDefaultValidation(); compileError( "The @type attribute is available only with a schema-aware XSLT processor", "XTSE1660"); } else { SchemaType type = getSchemaType(typeAtt); if (type == null) { compileError("Unknown attribute type " + typeAtt, "XTSE1520"); } else { if (type.isSimpleType()) { schemaType = (SimpleType)type; } else { compileError("Type annotation for attributes must be a simple type", "XTSE1530"); type = null; compileError("The validation and type attributes are mutually exclusive", "XTSE1505"); validationAction = getContainingStylesheet().getDefaultValidation(); schemaType = null;