Interface ForeignAttributes

All Superinterfaces:
Attributes
All Known Implementing Classes:
ForeignAttributesImpl

public interface ForeignAttributes extends Attributes
Foreign attributes on schema elements.

This is not a schema component as defined in the spec, but this is often useful for a schema processing application.

Author:
Kohsuke Kawaguchi
  • Method Details

    • getContext

      org.relaxng.datatype.ValidationContext getContext()
      Returns context information of the element to which foreign attributes are attached.

      For example, this can be used to resolve relative references to other resources (by using ValidationContext.getBaseUri()) or to resolve namespace prefixes in the attribute values (by using ValidationContext.resolveNamespacePrefix(String).

      Returns:
      always non-null.
    • getLocator

      Locator getLocator()
      Returns the location of the element to which foreign attributes are attached.