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

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 UTC