@designliquido/xpath
    Preparing search index...

    Class SequenceType

    SequenceType specifies the expected type and cardinality of a sequence

    Special cases:

    • empty-sequence() : represents a sequence with no items
    • item() : matches any single item
    • xs:integer+ : one or more integers
    Index

    Constructors

    Methods

    • Get a string representation of this SequenceType Examples: "empty-sequence()", "xs:integer", "xs:integer?", "element(*)"

      Returns string

    • Get the minimum cardinality allowed by this type 0 = allows empty, 1 = requires at least one item

      Returns number

    • Get the maximum cardinality allowed by this type 1 = exactly one item, Infinity = unbounded

      Returns number

    • Check if another SequenceType is compatible with this one (i.e., can values of that type be assigned to this type)

      This is a simple compatibility check. Full implementation would require schema information and type hierarchy checking.

      Parameters

      Returns boolean