/db/apps/prd/xql/article.xql 132 It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching. checking function parameter 2 in call transform:transform($article-xml, $stylesheet-doc, $stylesheet-params): XPTY0004: The actual cardinality for parameter 2 does not match the cardinality declared in the function's signature: transform:transform($node-tree as node()*, $stylesheet as item(), $parameters as node()?) node()?. Expected cardinality: exactly one, got 0.