W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2005

[Bug 2262] [xqueryx] 0-ary function arguments

From: <bugzilla@wiggum.w3.org>
Date: Fri, 16 Sep 2005 13:34:52 +0000
To: public-qt-comments@w3.org
Message-Id: <E1EGGMe-0001Np-SV@wiggum.w3.org>


           Summary: [xqueryx]  0-ary function arguments
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX
        AssignedTo: jim.melton@acm.org
        ReportedBy: davidc@nag.co.uk
         QAContact: public-qt-comments@w3.org

The schema has:

<xsd:complexType name="functionCallExpr">
      <xsd:extension base="expr">
          <xsd:element name="functionName" type="QName"/>
          <xsd:element name="arguments" type="exprList" minOccurs="0"/>
so the arguments child may be omitted (it also may be present, but empty)
If however it is omitted then the stylesheet does not put () after the function
name, and the construct will be an Xpath to select a child element not a
function call. minOccurs="0" should be deleted, and a 0-argument function should
be represented by a functionCallExpr with an empty (but present) arguments

Received on Friday, 16 September 2005 13:35:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:08 UTC