Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-3695

number:max-denominator-digits attribute to number:fraction

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      Proposal #1:
      Include:
      ------------------------------------------------------------------------------
      19.xxx number:max-denominator-digits
      The number:max-denominator-digits attribute specifies the maximum number of digits to use for the chosen denominator if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-digits attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-digits attribute indicates that no maximum number of difgits is specified.

      Note: The number:max-denominator-digits attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction.

      The number:max-denominator-digits attribute is usable with the following element:
      <number:fraction> 16.27.6.
      The number:max-denominator-digits attribute has the data type positiveInteger 18.2.
      ------------------------------------------------------------------------------

      In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-digits (19.xxx).

      In the schema in
      ------------------------------------------------------------------------------
      <define name="number-fraction-attlist">
      <interleave>
      <optional>
      <attribute name="number:min-numerator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:min-denominator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:denominator-value">
      <ref name="integer"/>
      </attribute>
      </optional>
      </interleave>
      </define>
      ------------------------------------------------------------------------------
      insert a section on number:max-denominator-digits, ie:
      ------------------------------------------------------------------------------
      <define name="number-fraction-attlist">
      <interleave>
      <optional>
      <attribute name="number:min-numerator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:min-denominator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:max-denominator-digits">
      <ref name="positiveInteger"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:denominator-value">
      <ref name="integer"/>
      </attribute>
      </optional>
      </interleave>
      </define>
      ------------------------------------------------------------------------------

      ------------------------------------------------------------------------------------------------------------------------------------------------------------

      Proposal #2:

      Include:
      ------------------------------------------------------------------------------
      19.xxx number:max-denominator-value
      The number:max-denominator-value attribute specifies the maximum denominator permitted to be chosen if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-value attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-value attribute indicates that no maximum denominator is specified.

      Note: The number:max-denominator-value attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction.

      Note: A number:max-denominator-value attribute value of 99 is equivalent to pemitting any 1 or 2 digit denominator. A number:max-denominator-value attribute value of 999 is equivalent to pemitting any 1, 2, or 3 digit denominator.

      The number:max-denominator-value attribute is usable with the following element:
      <number:fraction> 16.27.6.
      The number:max-denominator-value attribute has the data type positiveInteger 18.2.
      ------------------------------------------------------------------------------

      In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-value (19.xxx).

      In the schema in
      ------------------------------------------------------------------------------
      <define name="number-fraction-attlist">
      <interleave>
      <optional>
      <attribute name="number:min-numerator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:min-denominator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:denominator-value">
      <ref name="integer"/>
      </attribute>
      </optional>
      </interleave>
      </define>
      ------------------------------------------------------------------------------
      insert a section on number:max-denominator-value, i.e.:
      ------------------------------------------------------------------------------
      <define name="number-fraction-attlist">
      <interleave>
      <optional>
      <attribute name="number:min-numerator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:min-denominator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:max-denominator-value">
      <ref name="positiveInteger"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:denominator-value">
      <ref name="integer"/>
      </attribute>
      </optional>
      </interleave>
      </define>
      ------------------------------------------------------------------------------

      Show
      Proposal #1: Include: ------------------------------------------------------------------------------ 19.xxx number:max-denominator-digits The number:max-denominator-digits attribute specifies the maximum number of digits to use for the chosen denominator if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-digits attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-digits attribute indicates that no maximum number of difgits is specified. Note: The number:max-denominator-digits attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction. The number:max-denominator-digits attribute is usable with the following element: <number:fraction> 16.27.6. The number:max-denominator-digits attribute has the data type positiveInteger 18.2. ------------------------------------------------------------------------------ In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-digits (19.xxx). In the schema in ------------------------------------------------------------------------------ <define name="number-fraction-attlist"> <interleave> <optional> <attribute name="number:min-numerator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:min-denominator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:denominator-value"> <ref name="integer"/> </attribute> </optional> </interleave> </define> ------------------------------------------------------------------------------ insert a section on number:max-denominator-digits, ie: ------------------------------------------------------------------------------ <define name="number-fraction-attlist"> <interleave> <optional> <attribute name="number:min-numerator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:min-denominator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:max-denominator-digits"> <ref name="positiveInteger"/> </attribute> </optional> <optional> <attribute name="number:denominator-value"> <ref name="integer"/> </attribute> </optional> </interleave> </define> ------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------------ Proposal #2: Include: ------------------------------------------------------------------------------ 19.xxx number:max-denominator-value The number:max-denominator-value attribute specifies the maximum denominator permitted to be chosen if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-value attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-value attribute indicates that no maximum denominator is specified. Note: The number:max-denominator-value attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction. Note: A number:max-denominator-value attribute value of 99 is equivalent to pemitting any 1 or 2 digit denominator. A number:max-denominator-value attribute value of 999 is equivalent to pemitting any 1, 2, or 3 digit denominator. The number:max-denominator-value attribute is usable with the following element: <number:fraction> 16.27.6. The number:max-denominator-value attribute has the data type positiveInteger 18.2. ------------------------------------------------------------------------------ In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-value (19.xxx). In the schema in ------------------------------------------------------------------------------ <define name="number-fraction-attlist"> <interleave> <optional> <attribute name="number:min-numerator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:min-denominator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:denominator-value"> <ref name="integer"/> </attribute> </optional> </interleave> </define> ------------------------------------------------------------------------------ insert a section on number:max-denominator-value, i.e.: ------------------------------------------------------------------------------ <define name="number-fraction-attlist"> <interleave> <optional> <attribute name="number:min-numerator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:min-denominator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:max-denominator-value"> <ref name="positiveInteger"/> </attribute> </optional> <optional> <attribute name="number:denominator-value"> <ref name="integer"/> </attribute> </optional> </interleave> </define> ------------------------------------------------------------------------------
    • Resolution:
      Hide

      Include:
      ------------------------------------------------------------------------------
      19.xxx number:max-denominator-value
      The number:max-denominator-value attribute specifies the maximum denominator permitted to be chosen if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-value attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-value attribute indicates that no maximum denominator is specified.

      Note: The number:max-denominator-value attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction.

      Note: A number:max-denominator-value attribute value of 99 is equivalent to pemitting any 1 or 2 digit denominator. A number:max-denominator-value attribute value of 999 is equivalent to pemitting any 1, 2, or 3 digit denominator.

      The number:max-denominator-value attribute is usable with the following element:
      <number:fraction> 16.27.6.
      The number:max-denominator-value attribute has the data type positiveInteger 18.2.
      ------------------------------------------------------------------------------

      In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-value (19.xxx).

      In the schema in
      ------------------------------------------------------------------------------
      <define name="number-fraction-attlist">
      <interleave>
      <optional>
      <attribute name="number:min-numerator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:min-denominator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:denominator-value">
      <ref name="integer"/>
      </attribute>
      </optional>
      </interleave>
      </define>
      ------------------------------------------------------------------------------
      insert a section on number:max-denominator-value, i.e.:
      ------------------------------------------------------------------------------
      <define name="number-fraction-attlist">
      <interleave>
      <optional>
      <attribute name="number:min-numerator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:min-denominator-digits">
      <ref name="integer"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:max-denominator-value">
      <ref name="positiveInteger"/>
      </attribute>
      </optional>
      <optional>
      <attribute name="number:denominator-value">
      <ref name="integer"/>
      </attribute>
      </optional>
      </interleave>
      </define>
      ------------------------------------------------------------------------------

      Show
      Include: ------------------------------------------------------------------------------ 19.xxx number:max-denominator-value The number:max-denominator-value attribute specifies the maximum denominator permitted to be chosen if its <number:fraction> element does not have a number:denominator-value attribute. The number:max-denominator-value attribute is ignored in the presence of a number:denominator-value attribute attribute. The absence of the number:max-denominator-value attribute indicates that no maximum denominator is specified. Note: The number:max-denominator-value attribute is used with number:grouping 19.348, number:min-denominator-digits 19.350, number:min-integer-digits 19.352 and number:min-numerator-digits 19.353 to define the display of a floating point number as a fraction. Note: A number:max-denominator-value attribute value of 99 is equivalent to pemitting any 1 or 2 digit denominator. A number:max-denominator-value attribute value of 999 is equivalent to pemitting any 1, 2, or 3 digit denominator. The number:max-denominator-value attribute is usable with the following element: <number:fraction> 16.27.6. The number:max-denominator-value attribute has the data type positiveInteger 18.2. ------------------------------------------------------------------------------ In the listing of applicable attributes for 16.27.6 <number:fraction> include number:max-denominator-value (19.xxx). In the schema in ------------------------------------------------------------------------------ <define name="number-fraction-attlist"> <interleave> <optional> <attribute name="number:min-numerator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:min-denominator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:denominator-value"> <ref name="integer"/> </attribute> </optional> </interleave> </define> ------------------------------------------------------------------------------ insert a section on number:max-denominator-value, i.e.: ------------------------------------------------------------------------------ <define name="number-fraction-attlist"> <interleave> <optional> <attribute name="number:min-numerator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:min-denominator-digits"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="number:max-denominator-value"> <ref name="positiveInteger"/> </attribute> </optional> <optional> <attribute name="number:denominator-value"> <ref name="integer"/> </attribute> </optional> </interleave> </define> ------------------------------------------------------------------------------

      Description

      In ODF 1.2 the <number:fraction> element has the attribute number:denominator-
      value. If this attribute is not present, a denominator that is appropriate for
      displaying the number is used. Clearly what is considered appropriate will be implementation dependent/defined. For example LibreOffice considers the appropriate denominator for of:=PI() to be 7 although a denominator of 113 would create a much closer approximation. From a user perspective if formatting a number as a fraction usually the size of the denominator is important even if the exact chosen denominator does not matter. Some implementations, for example Gnumeric, permit the user to determine a maximum number of digits to be used in the choice of the denominator. Currently Gnumeric stores that information in a foreign element: gnm:max-denominator-digits. In the interest of interoperability it would be desirable to include a similar attribute in the ODF1.3 standard.

        Attachments

          Activity

            People

            • Assignee:
              aguelzow Andreas Guelzow
              Reporter:
              aguelzow Andreas Guelzow
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: