Cardinality

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Istvan

    #1

    Cardinality

    Hello

    Maybe somebody know how to construct the cardinality functions of
    required for XPath 2.0, XQuery 1.0 and XSLT 2.0 ?

    there are three functions normally,

    fn:zero-or-one(item,item,. ..) Returns the argument if it contains
    zero or one items, otherwise it raises an error
    fn:one-or-more(item,item, ...) Returns the argument if it contains one
    or more items, otherwise it raises an error
    fn:exactly-one(item,item,. ..) Returns the argument if it contains
    exactly one item, otherwise it raises an error

    How could I construct them with coding them ?

Working...