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. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...