@designliquido/xpath
    Preparing search index...

    Class AttributeTest

    AttributeTest: attribute() or attribute(name) or attribute(name, type)

    Examples:

    • attribute() - any attribute
    • attribute(id) - attribute with local name "id"
    • attribute(*, xs:IDREF) - any attribute with xs:IDREF type
    • attribute(lang, xs:language) - attribute "lang" with xs:language type

    Hierarchy

    • KindTestImpl
      • AttributeTest
    Index

    Constructors

    Properties

    name: string

    Human-readable name of the item type

    nodeKind: string

    The node kind being tested Possible values: 'element', 'attribute', 'text', 'comment', 'processing-instruction', 'document-node'

    nodeName?: string

    Optional name constraint for the node

    nodeType?: string

    Optional type constraint for the node

    isWildcardName?: boolean

    Indicates if name is a wildcard (*)

    Methods

    • Check if a value matches this ItemType

      Parameters

      • value: any

      Returns boolean