<?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>30197</bug_id>
          
          <creation_ts>2017-11-16 18:50:15 +0000</creation_ts>
          <short_desc>[SER31] Adaptive serialization does not specify xs:float, and no decimal format for xs:decimal and xs:float</short_desc>
          <delta_ts>2018-01-03 13:46:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Serialization 3.1</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>andrew_coleman</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128969</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2017-11-16 18:50:15 +0000</bug_when>
    <thetext>This applies to the Adaptive Output Method:

For xs:double the specified format is scientific notation.

For xs:float, such format is not specified, which I think is an oversight. It should probably be the same as xs:double, albeit with less precision.

Also, for neither xs:decimal and xs:float, the decimal format properties are specified. This was discussed earlier through bug 29824, but only applied to xs:double, not the other two.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129016</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2017-12-14 10:40:04 +0000</bug_when>
    <thetext>I agree that xs:float should follow the same rule as xs:double.  I can make that change in the errata doc.

xs:decimal is specified as follows:

  - An instance of xs:integer or xs:decimal is serialized by converting the value to a string using the fn:string function.

F&amp;O specifies this behaviour:
https://www.w3.org/TR/xpath-functions-31/#casting-to-string
which in turn references the schema spec:
https://www.w3.org/TR/xmlschema-2/#decimal-canonical-representation
I don&apos;t think the decimal format properties are relevant to this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129021</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2017-12-19 16:52:21 +0000</bug_when>
    <thetext>The WG discussed this and decided that the current rule for serializing xs:float is well defined and expresses the desired intent.

- An atomic value of any other type is serialized using the syntax of a constructor function...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129043</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2018-01-03 13:46:02 +0000</bug_when>
    <thetext>Ok, if that was intentional (and I can see now why it is), than it wasn&apos;t a bug. Thanks and happy New Year!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>