Cardinality

Discussion in 'XML' started by Istvan, Aug 28, 2006.

  1. Istvan

    Istvan Guest

    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:eek:ne-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 ?
     
    Istvan, Aug 28, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page