Interface LocationProvider

All Known Subinterfaces:
InstructionInfo, SaxonLocator, SourceLocationProvider
All Known Implementing Classes:
AbsentExtensionElement, AttributeSet, DocumentSender, DOMSender, ExpressionLocation, ExpressionParser.TemporaryContainer, ExtensionInstruction, IdentityTransformerHandler, InstructionDetails, KeyDefinition, LiteralResultElement, LocationCopier, LocationMap, Procedure, ReceivingContentHandler, SaxonAssign, SaxonCallTemplate, SaxonCollation, SaxonDoctype, SaxonEntityRef, SaxonImportQuery, SaxonScript, SaxonWhile, SQLClose, SQLColumn, SQLConnect, SQLDelete, SQLInsert, SQLQuery, SQLUpdate, StaxBridge, StyleElement, Template, TemplatesHandlerImpl, TraceExpression, TransformerHandlerImpl, UserFunction, XQueryFunction, XSLAnalyzeString, XSLApplyImports, XSLApplyTemplates, XSLAttribute, XSLAttributeSet, XSLCallTemplate, XSLCharacterMap, XSLChoose, XSLComment, XSLCopy, XSLCopyOf, XSLDecimalFormat, XSLDocument, XSLElement, XSLFallback, XSLForEach, XSLForEachGroup, XSLFunction, XSLGeneralIncorporate, XSLGeneralVariable, XSLIf, XSLImport, XSLImportSchema, XSLInclude, XSLKey, XSLMatchingSubstring, XSLMessage, XSLNamespace, XSLNamespaceAlias, XSLNextMatch, XSLNumber, XSLOtherwise, XSLOutput, XSLOutputCharacter, XSLParam, XSLPerformSort, XSLPreserveSpace, XSLProcessingInstruction, XSLResultDocument, XSLSequence, XSLSort, XSLStringConstructor, XSLStylesheet, XSLTemplate, XSLText, XSLValueOf, XSLVariable, XSLVariableDeclaration, XSLWhen, XSLWithParam

public interface LocationProvider
LocationProvider: this interface represents an object that provides the location of elements in a source document or instructions in a stylesheet or query. A locationProvider may be passed down the Receiver pipeline as part of the PipelineConfiguration object; on the input pipeline, this will be a SaxonLocator object, on the output pipeline, it will be a LocationMap

A LocationProvider that represents locations in the source document from which the events are derived (as distinct from locations in a query or stylesheet of the instructions causing the events) will also implement the marker interface SourceLocationProvider

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getLineNumber(int locationId)
    Get the line number within the document or module containing a particular location
    getSystemId(int locationId)
    Get the URI of the document or module containing a particular location
  • Method Details

    • getSystemId

      String getSystemId(int locationId)
      Get the URI of the document or module containing a particular location
      Parameters:
      locationId - identifier of the location in question (as passed down the Receiver pipeline)
      Returns:
      the URI of the document or module.
    • getLineNumber

      int getLineNumber(int locationId)
      Get the line number within the document or module containing a particular location
      Parameters:
      locationId - identifier of the location in question (as passed down the Receiver pipeline)
      Returns:
      the line number within the document or module.