OASIS Open Document Format for Office Applications (OpenDocument) TC

 View Only

Error in OpenDocument-v1.4-schema.rng

  • 1.  Error in OpenDocument-v1.4-schema.rng

    Posted 28 days ago
    Hi all,

    the pattern for "nonNegativePercent" misses the % sign.

    Is:
    <rng:define name="nonNegativePercent">
    <rng:data type="string">
    <rng:param name="pattern">([0-9]+(\.[0-9]*)?|\.[0-9]+)</rng:param>
    </rng:data>
    Should be
    <rng:define name="nonNegativePercent">
    <rng:data type="string">
    <rng:param name="pattern">([0-9]+(\.[0-9]*)?|\.[0-9]+)%</rng:param>
    </rng:data>

    You see that it is really missing, when you compare it with the pattern
    <rng:define name="percent">
    <rng:data type="string">
    <rng:param name="pattern">-?([0-9]+(\.[0-9]*)?|\.[0-9]+)%</rng:param>
    </rng:data>
    </rng:define>

    or the pattern
    <rng:define name="zeroToHundredPercent">
    <rng:data type="string">
    <rng:param></rng:param>
    name="pattern">([0-9]?[0-9](\.[0-9]*)?|100(\.0*)?|\.[0-9]+)%
    </rng:data>
    </rng:define>

    I think, that is should be corrected.

    Kind regards,
    Regina</rng:define></rng:define>