<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7230</bug_id>
          
          <creation_ts>2009-08-06 08:53:44 +0000</creation_ts>
          <short_desc>UI crash possible when an image size is over a MB</short_desc>
          <delta_ts>2009-08-06 12:59:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Web interface</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          <qa_contact name="fd">fd</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26258</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-08-06 08:53:44 +0000</bug_when>
    <thetext>For some reason, the fn:sum method sometimes returns a double instead of an integer, even when its arguments do look like integers. The problem is that doubles in XSLT2 are formatted using the scientific notation.

Thus, big image sizes may be reported in the completed moki file as:
 size=&quot;2.260045E6&quot; instead of size=&quot;2260045&quot;
This is in turn wouldn&apos;t be a problem if XSLT2 knew how to parse and convert such numbers into integers, but it doesn&apos;t work, and xs:integer(&apos;2.260045E6&apos;) results in a FORG0001 error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26261</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-08-06 10:26:54 +0000</bug_when>
    <thetext>xs:integer() now wraps calls to fn:sum() to force the conversion to integers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26267</commentid>
    <comment_count>2</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-08-06 12:59:41 +0000</bug_when>
    <thetext>Also updated the UI to call the new moki:format-bytes functions and thus display sizes in a more human-friendly format</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>