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

[Bug 10729] New: 4.5.1 fn:format-integer - usability issue with third argument

From: <bugzilla@jessica.w3.org>
Date: Fri, 24 Sep 2010 17:09:46 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-10729-523@http.www.w3.org/Bugs/Public/>

           Summary: 4.5.1 fn:format-integer - usability issue with third
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 1.1
        AssignedTo: mike@saxonica.com
        ReportedBy: oneil@saxonica.com
         QAContact: public-qt-comments@w3.org


I would like to raise a usability issue relating the format-integer
function.The optional third argument (i.e. $language as xs:language) is
somewhat error prone from a users prospective, it would be simpler maybe to
have the type as xs:string.

For example: 

<xsl:for-each select="number">
    <xsl:value-of select="format-integer(. ,'w','de' cast as xs:language)"/>  

We observe the user is forced into casting the 'de' as xs:language, rather than
the more natural approach:

<xsl:value-of select="format-integer(. ,'w','de')"/>

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, 24 September 2010 17:09:47 UTC

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