XPST0051
A sequence type refers to a type (other than within the element() or attribute( ) constructs) that is not an atomic type in the in-scope schema definitions. Sequence types most commonly appear in function signatures, as in:
declare function local:xyz ($arg1 as xs:string*, $arg2 as prod:SizeType?) { }where xs:string* and prod:SizeType? are sequence types that described the types of the arguments. This error might be raised if you:
Misspelled or incorrectly capitalized the name of a built-in type, e.g.,
xs:Stringorxs:srting.Used a user-defined type name that is not declared in an in-scope schema—for example, if
SizeTypeis not in an imported schema.Used a user-defined type name that is a complex or list type, not an atomic type—for example, if
SizeTypeallows children. Using the sequence typeelement(*,SizeType)would be allowed.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access