W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2010

[Bug 10955] New: [FO11] Observation on new functions

From: <bugzilla@jessica.w3.org>
Date: Fri, 01 Oct 2010 15:07:12 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-10955-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10955

           Summary: [FO11] Observation on new functions
           Product: XPath / XQuery / XSLT
           Version: Member-only Editors Drafts
          Platform: PC
               URL: http://www.w3.org/XML/Group/qtspecs/specifications/xpa
                    th-functions-11/html/Overview.html
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 1.1
        AssignedTo: mike@saxonica.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org
             Group: XSLXQuery_WG


Many existing F&O functions have signatures of the form:

func-name($arg as T?) as T?

which return an empty sequence when the argument is the empty sequence.

I was surprised that some of the new functions, such as:

 fn:get-environment-variable
 fn:parse-xml
 fn:serialize

don't follow this convention, and wondered if there was a good reason why not.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 1 October 2010 15:07:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:44 UTC