Class UnparsedEntity

All Implemented Interfaces:
Callable, IContextAccessorFunction, IFunctionWithRetainedParameterNames, FunctionItem, GroundedValue, Item, Sequence
Direct Known Subclasses:
UnparsedEntity.UnparsedEntityPublicId, UnparsedEntity.UnparsedEntityUri

public abstract class UnparsedEntity extends SystemFunction implements IContextAccessorFunction
Implements the unparsed-entity-uri() function defined in XSLT 1.0 and the unparsed-entity-public-id() function defined in XSLT 2.0
  • Field Details

    • URI

      public static int URI
    • PUBLIC_ID

      public static int PUBLIC_ID
  • Constructor Details

    • UnparsedEntity

      public UnparsedEntity()
  • Method Details

    • dependsOnContext

      public boolean dependsOnContext()
      Description copied from interface: IContextAccessorFunction
      Ask whether this function is actually dependent on the dynamic context
      Specified by:
      dependsOnContext in interface IContextAccessorFunction
      Returns:
      true if the function cannot be used unless the dynamic context is first bound
    • getOp

      public abstract int getOp()
    • call

      public StringValue call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate the expression
      Specified by:
      call in interface Callable
      Parameters:
      context - the dynamic evaluation context
      arguments - the values of the arguments, supplied as SequenceIterators
      Returns:
      the result of the evaluation, in the form of a SequenceIterator
      Throws:
      XPathException - if a dynamic error occurs during the evaluation of the expression
    • bindContext

      public FunctionItem bindContext(XPathContext context) throws XPathException
      Bind context information to appear as part of the function's closure. If this method has been called, the supplied context will be used in preference to the context at the point where the function is actually called.
      Specified by:
      bindContext in interface IContextAccessorFunction
      Parameters:
      context - the context to which the function applies. Must not be null.
      Throws:
      XPathException