Package net.sf.saxon.om
Interface Sequence
-
- All Known Subinterfaces:
AnyExternalObject
,AtomicSequence
,FunctionItem
,GroundedValue
,Item
,MutableNodeInfo
,NodeInfo
,SiblingCountingNode
,SteppingNode
,VirtualNode
- All Known Implementing Classes:
Abs
,AbsentExtensionElement
,AbstractArrayItem
,AbstractFunction
,AbstractNodeWrapper
,AbstractVirtualNode
,AccessorFn
,AccessorFn.DayFromDate
,AccessorFn.DayFromDateTime
,AccessorFn.DaysFromDuration
,AccessorFn.HoursFromDateTime
,AccessorFn.HoursFromDuration
,AccessorFn.HoursFromTime
,AccessorFn.LocalNameFromQName
,AccessorFn.MinutesFromDateTime
,AccessorFn.MinutesFromDuration
,AccessorFn.MinutesFromTime
,AccessorFn.MonthFromDate
,AccessorFn.MonthFromDateTime
,AccessorFn.MonthsFromDuration
,AccessorFn.NamespaceUriFromQName
,AccessorFn.PrefixFromQName
,AccessorFn.SecondsFromDateTime
,AccessorFn.SecondsFromDuration
,AccessorFn.SecondsFromTime
,AccessorFn.TimezoneFromDate
,AccessorFn.TimezoneFromDateTime
,AccessorFn.TimezoneFromTime
,AccessorFn.YearFromDate
,AccessorFn.YearFromDateTime
,AccessorFn.YearsFromDuration
,AccumulatorFn
,AccumulatorFn.AccumulatorAfter
,AccumulatorFn.AccumulatorBefore
,Adjust_1
,Adjust_2
,Aggregate
,AllDifferent
,AllEqual
,AnalyzeStringFn
,AnalyzeUri
,AnnotationParent
,AnyURIValue
,ApplyFn
,ArrayFunctionSet.ArrayAppend
,ArrayFunctionSet.ArrayBuild
,ArrayFunctionSet.ArrayEmpty
,ArrayFunctionSet.ArrayExists
,ArrayFunctionSet.ArrayFilter
,ArrayFunctionSet.ArrayFlatten
,ArrayFunctionSet.ArrayFoldLeft
,ArrayFunctionSet.ArrayFoldRight
,ArrayFunctionSet.ArrayFoot
,ArrayFunctionSet.ArrayForEach
,ArrayFunctionSet.ArrayForEachPair
,ArrayFunctionSet.ArrayFromSequence
,ArrayFunctionSet.ArrayGeneratingFunction
,ArrayFunctionSet.ArrayGet
,ArrayFunctionSet.ArrayHead
,ArrayFunctionSet.ArrayIndexWhere
,ArrayFunctionSet.ArrayInsertBefore
,ArrayFunctionSet.ArrayJoin
,ArrayFunctionSet.ArrayMembers
,ArrayFunctionSet.ArrayOfMembers
,ArrayFunctionSet.ArrayPut
,ArrayFunctionSet.ArrayRemove
,ArrayFunctionSet.ArrayReplace
,ArrayFunctionSet.ArrayReverse
,ArrayFunctionSet.ArraySize
,ArrayFunctionSet.ArraySlice
,ArrayFunctionSet.ArraySplit
,ArrayFunctionSet.ArraySubarray
,ArrayFunctionSet.ArrayTail
,ArrayFunctionSet.ArrayToSequence
,ArrayFunctionSet.ArrayTrunk
,ArrayItem
,ArraySort
,AtomicArray
,AtomicConstructorFunction
,AtomicEqual
,AtomicValue
,AttributeImpl
,AvailableEnvironmentVariables
,AvailableSystemProperties
,Average
,AxiomAttributeWrapper
,AxiomDocumentNodeWrapper
,AxiomElementNodeWrapper
,AxiomLeafNodeWrapper
,AxiomParentNodeWrapper
,Base64BinaryValue
,BaseUri_1
,BigDecimalValue
,BigIntegerValue
,Bindery.FailureValue
,BooleanFn
,BooleanValue
,BuildURI
,CalendarValue
,CallableFunction
,Ceiling
,CharactersFn
,CharactersFn
,CharFn
,Closure
,CodepointEqual
,CodepointsToString
,CoercedFunction
,CollatingFunctionFixed
,CollatingFunctionFree
,CollationKeyFn
,CollectionFn
,CommentImpl
,CompactStringValue
,Compare
,CompileQuery
,CompileStylesheet
,CompileXPath
,Concat
,Concat31
,ConstantFunction
,ConstantFunction.False
,ConstantFunction.True
,Contains
,ContainsToken
,ContextAccessorFunction
,ContextItemAccessorFunction
,ContextItemAccessorFunction.Number_0
,ContextItemAccessorFunction.StringAccessor
,CopyOfFn
,Count
,Current
,CurrentGroup
,CurrentGroupingKey
,CurrentMergeGroup
,CurrentMergeKey
,CurrentOutputUri
,CurriedFunction
,Data_1
,DataElement
,DateTimeConstructor
,DateTimeValue
,DateValue
,DayTimeDurationValue
,DecimalDivide
,DecimalValue
,DecodeFromURI
,DeepEqual
,DelegatingArrayItem
,DelegatingMapItem
,DictionaryMap
,DistinctValues
,Doc
,Doc_2
,DocAvailable
,DocumentFn
,DocumentImpl
,DocumentUri_1
,DOM4JNodeWrapper
,DominoAttr
,DominoNode
,DOMNodeWrapper
,DoubleValue
,DuplicateValues
,DurationValue
,DynamicContextAccessor
,DynamicContextAccessor.CurrentDate
,DynamicContextAccessor.CurrentDateTime
,DynamicContextAccessor.CurrentTime
,DynamicContextAccessor.DefaultLanguage
,DynamicContextAccessor.ImplicitTimezone
,ElementAvailable
,ElementImpl
,Empty
,EmptyAtomicSequence
,EmptySequence
,EncodeForUri
,EndsWith
,EnvironmentVariable
,EQName
,Error
,EscapeHtmlUri
,EscapeNCName
,Eval
,Evaluate
,EveryFn
,Exists
,ExpandedQNameFn
,EXPathBinaryFunctionSet.BinaryAnd
,EXPathBinaryFunctionSet.BinaryBin
,EXPathBinaryFunctionSet.BinaryDecodeString
,EXPathBinaryFunctionSet.BinaryEncodeString
,EXPathBinaryFunctionSet.BinaryFind
,EXPathBinaryFunctionSet.BinaryFromOctets
,EXPathBinaryFunctionSet.BinaryHex
,EXPathBinaryFunctionSet.BinaryInsertBefore
,EXPathBinaryFunctionSet.BinaryJoin
,EXPathBinaryFunctionSet.BinaryLength
,EXPathBinaryFunctionSet.BinaryNot
,EXPathBinaryFunctionSet.BinaryOctal
,EXPathBinaryFunctionSet.BinaryOr
,EXPathBinaryFunctionSet.BinaryPackDouble
,EXPathBinaryFunctionSet.BinaryPackFloat
,EXPathBinaryFunctionSet.BinaryPackInteger
,EXPathBinaryFunctionSet.BinaryPadLeft
,EXPathBinaryFunctionSet.BinaryPadRight
,EXPathBinaryFunctionSet.BinaryPart
,EXPathBinaryFunctionSet.BinaryShift
,EXPathBinaryFunctionSet.BinaryToOctets
,EXPathBinaryFunctionSet.BinaryUnpackDouble
,EXPathBinaryFunctionSet.BinaryUnpackFloat
,EXPathBinaryFunctionSet.BinaryUnpackInteger
,EXPathBinaryFunctionSet.BinaryUnpackUnsignedInteger
,EXPathBinaryFunctionSet.BinaryVersion
,EXPathBinaryFunctionSet.BinaryXor
,EXPathFileFunctionSet.FileAppend
,EXPathFileFunctionSet.FileAppendBinary
,EXPathFileFunctionSet.FileAppendText
,EXPathFileFunctionSet.FileAppendTextLines
,EXPathFileFunctionSet.FileBaseDir
,EXPathFileFunctionSet.FileChildren
,EXPathFileFunctionSet.FileCopy
,EXPathFileFunctionSet.FileCreateDir
,EXPathFileFunctionSet.FileCreateTempDir
,EXPathFileFunctionSet.FileCreateTempFile
,EXPathFileFunctionSet.FileCurrentDir
,EXPathFileFunctionSet.FileDelete
,EXPathFileFunctionSet.FileDirSeparator
,EXPathFileFunctionSet.FileExists
,EXPathFileFunctionSet.FileIsDir
,EXPathFileFunctionSet.FileIsFile
,EXPathFileFunctionSet.FileLastModified
,EXPathFileFunctionSet.FileLineSeparator
,EXPathFileFunctionSet.FileList
,EXPathFileFunctionSet.FileMove
,EXPathFileFunctionSet.FileName
,EXPathFileFunctionSet.FileParent
,EXPathFileFunctionSet.FilePathSeparator
,EXPathFileFunctionSet.FilePathToNative
,EXPathFileFunctionSet.FilePathToUri
,EXPathFileFunctionSet.FileReadBinary
,EXPathFileFunctionSet.FileReadText
,EXPathFileFunctionSet.FileReadTextLines
,EXPathFileFunctionSet.FileResolvePath
,EXPathFileFunctionSet.FileSize
,EXPathFileFunctionSet.FileTempDir
,EXPathFileFunctionSet.FileWrite
,EXPathFileFunctionSet.FileWriteBinary
,EXPathFileFunctionSet.FileWriteText
,EXPathFileFunctionSet.FileWriteTextLines
,ExpressionFn
,ExsltCommonFunctionSet.NodeSetFn
,ExsltCommonFunctionSet.ObjectTypeFn
,ExtensionInstruction
,FilterFn
,FleetingDocumentNode
,FleetingElementNode
,FleetingNode
,FleetingParentNode
,FloatValue
,Floor
,FoldingFunction
,FoldLeftFn
,FoldRightFn
,FootFn
,ForEachFn
,ForEachPairFn
,FormatDate
,FormatInteger
,FormatNumber
,FunctionAnnotations
,FunctionArity
,FunctionAvailable
,FunctionLookup
,FunctionName
,GDateValue
,GDayValue
,GenerateId_1
,GMonthDayValue
,GMonthValue
,GroupStarting
,GYearMonthValue
,GYearValue
,HasChildren_1
,HashTrieMap
,HeadFn
,HexBinaryValue
,HighestOrLowest
,HighestOrLowest
,IdentityFn
,Idref
,ImmutableArrayItem
,Index
,IndexedValue
,IndexOf
,IndexWhere
,Innermost
,InScopeNamespacesFn
,InScopePrefixes
,InsertBefore
,Int64Value
,IntegerRange
,IntegerValue
,Intersperse
,IriToUri
,IsNaN
,ItemsAt
,ItemsEnding
,ItemsEnding.ItemsBefore
,ItemsEnding.ItemsUntil
,ItemsStarting
,ItemsStarting.ItemsAfter
,ItemsStarting.ItemsFrom
,IterateWhileFn
,IXSLFunctionSet.Call
,IXSLFunctionSet.Eval
,IXSLFunctionSet.ScheduleActionFn
,IXSLFunctionSet.Source
,IXSLFunctionSet.Stub
,IXSLPromise
,IXSLRemoveAttribute
,IXSLRemoveProperty
,IXSLScheduleAction
,IXSLSetAttribute
,IXSLSetProperty
,IXSLSetStyle
,JDOM2NodeWrapper
,JsonDoc
,JsonToXMLFn
,KeyFn
,KeyMap
,Lang
,LastModified
,LazySequence
,Leading
,ListCastableFunction
,ListConstructorFunction
,LiteralResultElement
,LoadXqueryModule
,LocalName_1
,LowerCase
,MapCreate
,MapFunctionSet.MapBuild
,MapFunctionSet.MapContains
,MapFunctionSet.MapEntries
,MapFunctionSet.MapEntry
,MapFunctionSet.MapFilter
,MapFunctionSet.MapFind
,MapFunctionSet.MapForEach
,MapFunctionSet.MapGet
,MapFunctionSet.MapKeys
,MapFunctionSet.MapMerge
,MapFunctionSet.MapOfPairs
,MapFunctionSet.MapPair
,MapFunctionSet.MapPairs
,MapFunctionSet.MapPut
,MapFunctionSet.MapRemove
,MapFunctionSet.MapSize
,MapItem
,MapSearch
,MapUntypedContains
,Matches
,MathFunctionSet.Atan2Fn
,MathFunctionSet.PiFn
,MathFunctionSet.PowFn
,MathFunctionSet.TrigFn1
,MemoClosure
,MemoFunction
,MemoFunction.NodeSurrogate
,MemoSequence
,MessageCount
,Minimax
,Minimax.Max
,Minimax.Min
,Name_1
,NamespaceForPrefix
,NamespaceNode
,NamespaceUriFn_1
,NewAttribute
,NewComment
,NewDocument
,NewElement
,NewNamespace
,NewProcessingInstruction
,NewText
,Nilled_1
,NodeImpl
,NodeName_1
,NormalizeSpace_1
,NormalizeUnicode
,NotationValue
,NotFn
,Number_1
,NumericValue
,ObjectMap
,ObjectValue
,One
,OneOrMore
,OpFn
,OriginalFunction
,Orphan
,Outermost
,Parcel
,ParcelFn
,ParentNodeImpl
,Parse
,ParseHtml
,ParseIetfDate
,ParseInteger
,ParseJsonFn
,ParseQNameFn
,ParseURI
,ParseXml
,ParseXmlFragment
,ParseXPath
,Partition
,Parts
,Path_1
,PedigreeArrayItem
,PedigreeFn
,PedigreeMapItem
,PositionAndLast
,PositionAndLast.Last
,PositionAndLast.Position
,ProcInstImpl
,Put
,QNameFn
,QNameValue
,QualifiedNameValue
,QueryFn
,RandomNumberGenerator
,RangeKey
,ReadBinaryResource
,RebasedNode
,RegexFunction
,RegexFunctionSansFlags
,RegexGroup
,Remove
,Replace
,ReplaceWith
,Replicate
,ResolveQName
,ResolveURI
,Reverse
,Root_1
,Round
,RoundHalfToEven
,SaxonAssign
,SaxonChange
,SaxonDeepEqual
,SaxonDeepUpdate
,SaxonDelete
,SaxonDo
,SaxonDoctype
,SaxonEntityRef
,SaxonImportQuery
,SaxonInsert
,SaxonParam
,SaxonPreprocess
,SaxonRename
,SaxonReplace
,SaxonSlice
,SaxonTabulateMaps
,SaxonUpdate
,SaxonWhile
,ScalarSystemFunction
,SchemaElement
,SchemaFn
,SchemaTypeFn
,SearchableValue
,SendMail
,SequenceExtent
,SequenceExtent.Of
,SequenceMatching
,SequenceMatching.ContainsSequence
,SequenceMatching.EndsWithSequence
,SequenceMatching.StartsWithSequence
,Serialize
,Serialize
,SimpleArrayItem
,SingleEntryMap
,SingletonClosure
,Slice
,SnapshotFn
,SnapshotNode
,SomeFn
,Sort_1
,Sort_2
,Sort_3
,SpaceStrippedNode
,SQLClose
,SQLColumn
,SQLConnect
,SQLConnectFn
,SQLDelete
,SQLDeleteFn
,SQLExecute
,SQLExecuteFn
,SQLInsert
,SQLInsertFn
,SQLPreparedQueryFn
,SQLPreparedStatementFn
,SQLQuery
,SQLQueryFn
,SQLTable
,SQLTableFn
,SQLUpdate
,SQLUpdateFn
,StartsWith
,StaticBaseUri
,StaticContextAccessor
,StaticContextAccessor.DefaultCollation
,StreamableUserFunction
,StreamAvailable
,StreamFn
,String_1
,StringJoin
,StringLength_1
,StringToCodepoints
,StringValue
,StyleElement
,Subsequence_2
,Subsequence_3
,Substring
,SubstringAfter
,SubstringBefore
,Sum
,SuperId
,SuperId.ElementWithId
,SuperId.Id
,SystemFunction
,SystemFunctionWithBoundContextItem
,SystemProperty
,TailFn
,TextFragmentValue
,TextImpl
,TextValueTemplateNode
,TimestampFn
,TimeValue
,TinyAttributeImpl
,TinyDocumentImpl
,TinyElementImpl
,TinyNodeImpl
,TinyParentNodeImpl
,TinyTextImpl
,TinyTextualElement
,TinyTextualElement.TinyTextualElementText
,Tokenize_1
,Tokenize_3
,Trace
,TransformFn
,TransformFn
,TransitiveClosure
,Translate
,TreatFn
,TreatFn.ExactlyOne
,TreatFn.OneOrMore
,TreatFn.ZeroOrOne
,Trunk
,Tuple
,TypeAvailable
,TypeStrippedNode
,UnescapeNCName
,Unindexed
,UnionCastableFunction
,UnionConstructorFunction
,UnknownElement
,Unordered
,UnparcelFn
,UnparsedEntity
,UnparsedEntity.UnparsedEntityPublicId
,UnparsedEntity.UnparsedEntityUri
,UnparsedText
,UnparsedTextAvailable
,UnparsedTextFunction
,UnparsedTextLines
,UnresolvedXQueryFunctionItem
,UpperCase
,UriCollection
,URIFunctions
,UserFunction
,UserFunctionReference.BoundUserFunction
,ValidateFn
,VendorFunctionSetHE.ArrayAsSequenceOfMaps
,VendorFunctionSetHE.ConcatenateSequences
,VendorFunctionSetHE.DynamicErrorInfoFn
,VendorFunctionSetHE.HasLocalNamespaces
,VendorFunctionSetHE.HasUniformNamespaces
,VendorFunctionSetHE.IsWholeNumberFn
,VendorFunctionSetHE.MapAsSequenceOfMaps
,VendorFunctionSetHE.YesNoBoolean
,VendorFunctionSetPE.AdjustToCivilTime
,VendorFunctionSetPE.Base64BinaryToOctets
,VendorFunctionSetPE.Base64BinaryToString
,VendorFunctionSetPE.ColumnNumber
,VendorFunctionSetPE.ConfigurationFn
,VendorFunctionSetPE.ContextFn
,VendorFunctionSetPE.ControllerFn
,VendorFunctionSetPE.CurrentModeName
,VendorFunctionSetPE.DiscardDocument
,VendorFunctionSetPE.GetContext
,VendorFunctionSetPE.GetPseudoAttribute
,VendorFunctionSetPE.HasSameNodes
,VendorFunctionSetPE.HexBinaryToOctets
,VendorFunctionSetPE.HexBinaryToString
,VendorFunctionSetPE.InSummerTime
,VendorFunctionSetPE.IsDefaulted
,VendorFunctionSetPE.LineNumber
,VendorFunctionSetPE.NamespaceNodeFn
,VendorFunctionSetPE.OctetsToBase64Binary
,VendorFunctionSetPE.OctetsToHexBinary
,VendorFunctionSetPE.ParseDateTime
,VendorFunctionSetPE.PrintStack
,VendorFunctionSetPE.StringToBase64BinaryFn
,VendorFunctionSetPE.StringToHexBinaryFn
,VendorFunctionSetPE.StringToUTF8
,VendorFunctionSetPE.SystemId
,VendorFunctionSetPE.TunnelParamsFn
,VendorFunctionSetPE.TypeAnnotationFn
,VendorFunctionSetPE.UnparsedEntities
,VendorFunctionSetPE.ValidCharacter
,VirtualCopy
,VirtualUntypedCopy
,VoidFn
,WhitespaceTextImpl
,WithPedigree
,XdmToJsonFn
,XMLToJsonFn
,XOMDocumentWrapper
,XOMNodeWrapper
,XQueryFn
,XSDAlternative
,XSDAnnotation
,XSDAny
,XSDAnyAttribute
,XSDAssert
,XSDAttribute
,XSDAttributeGroup
,XSDComplexContent
,XSDComplexContentRestriction
,XSDComplexType
,XSDCompositor
,XSDDefaultOpenContent
,XSDDocumentation
,XSDElement
,XSDExtension
,XSDFacet
,XSDFieldOrSelector
,XSDGroup
,XSDIdentityConstraint
,XSDImport
,XSDInclude
,XSDList
,XSDNotation
,XSDOpenContent
,XSDOverride
,XSDRedefine
,XSDSchema
,XSDSimpleContent
,XSDSimpleContentRestriction
,XSDSimpleType
,XSDSimpleTypeRestriction
,XSDUnion
,XSLAccept
,XSLAcceptExpose
,XSLAccumulator
,XSLAccumulatorRule
,XSLAnalyzeString
,XSLApplyImports
,XSLApplyTemplates
,XSLArray
,XSLArrayMember
,XSLAssert
,XSLAttribute
,XSLAttributeSet
,XSLBreak
,XSLBreakOrContinue
,XSLCallTemplate
,XSLCatch
,XSLCharacterMap
,XSLChoose
,XSLChooseOrSwitch
,XSLComment
,XSLContextItem
,XSLCopy
,XSLCopyOf
,XSLDecimalFormat
,XSLDocument
,XSLElement
,XSLEvaluate
,XSLExpose
,XSLFallback
,XSLForEach
,XSLForEachGroup
,XSLFork
,XSLFunction
,XSLGeneralIncorporate
,XSLGeneralVariable
,XSLGlobalContextItem
,XSLGlobalParam
,XSLGlobalVariable
,XSLIf
,XSLImport
,XSLImportSchema
,XSLInclude
,XSLItemType
,XSLIterate
,XSLKey
,XSLLeafNodeConstructor
,XSLLocalParam
,XSLLocalVariable
,XSLMap
,XSLMapEntry
,XSLMatchingSubstring
,XSLMerge
,XSLMergeAction
,XSLMergeKey
,XSLMergeSource
,XSLMessage
,XSLMode
,XSLModuleRoot
,XSLNamespace
,XSLNamespaceAlias
,XSLNextIteration
,XSLNextMatch
,XSLNumber
,XSLOnCompletion
,XSLOnEmpty
,XSLOnNonEmpty
,XSLOtherwise
,XSLOutput
,XSLOutputCharacter
,XSLOverride
,XSLPackage
,XSLPerformSort
,XSLPreserveSpace
,XSLProcessingInstruction
,XSLResultDocument
,XSLSequence
,XSLSort
,XSLSortOrMergeKey
,XSLSourceDocument
,XSLStylesheet
,XSLSwitch
,XSLTemplate
,XSLText
,XSLTry
,XSLUsePackage
,XSLValueOf
,XSLWhen
,XSLWherePopulated
,XSLWithParam
,YearMonthDurationValue
,ZenoSequence
,ZeroOrMore
,ZeroOrOne
public interface Sequence
This interface represents an XDM Value, that is, a sequence of items.Note that different implementations of Sequence might have very different performance characteristics, though all should exhibit the same behaviour. With some sequences, calling iterate() may trigger evaluation of the logic that computes the sequence, and calling iterate() again may cause re-evaluation.
Users should avoid assuming that a sequence of length one will always be represented as an instance of Item. If you are confident that the sequence will be of length one, call the head() function to get the first item.
- Since:
- 9.5. Generified in 9.9. Generics dropped in 10.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Item
head()
Get the first item in the sequence.SequenceIterator
iterate()
Get aSequenceIterator
over all the items in the sequencedefault Sequence
makeRepeatable()
Ensure that the sequence is in a form where it can be evaluated more than once.default GroundedValue
materialize()
Create aGroundedValue
containing the same items as this Sequence.
-
-
-
Method Detail
-
head
Item head() throws XPathException
Get the first item in the sequence.- Returns:
- the first item in the sequence if there is one, or null if the sequence is empty
- Throws:
XPathException
- in the situation where the sequence is evaluated lazily, and evaluation of the first item causes a dynamic error.
-
iterate
SequenceIterator iterate()
Get aSequenceIterator
over all the items in the sequence- Returns:
- an iterator (specifically, a Saxon
SequenceIterator
, which is not aIterator
) over all the items - Throws:
UncheckedXPathException
- in the situation where the sequence is evaluated lazily, and constructing an iterator over the items causes a dynamic error.
-
materialize
default GroundedValue materialize() throws XPathException
Create aGroundedValue
containing the same items as this Sequence. AGroundedValue
typically contains the entire sequence in memory; at any rate, it guarantees that the entire sequence can be read without any possibility of XPath dynamic errors arising.- Returns:
- a
GroundedValue
containing the same items as this Sequence - Throws:
XPathException
- if evaluating the contents of the sequence (lazily) fails with a dynamic error.
-
makeRepeatable
default Sequence makeRepeatable() throws XPathException
Ensure that the sequence is in a form where it can be evaluated more than once. Some sequences (for exampleLazySequence
andClosure
can only be evaluated once, and this operation causes these to be grounded. However, making it repeatable is not the same as making it grounded; it does not flush out all errors. Indeed, lazy evaluation relies on this property, because an expression that has been lifted out of a loop must not be evaluated unless the loop is executed at least once, to prevent spurious errors.- Returns:
- An equivalent sequence that can be repeatedly evaluated
- Throws:
XPathException
- if evaluation fails
-
-