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/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10729

           Summary: 4.5.1 fn:format-integer - usability issue with third
                    argument
           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


Hi,

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">
  <out>
    <xsl:value-of select="format-integer(. ,'w','de' cast as xs:language)"/>  
  </out>
</xsl:for-each>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:06 GMT