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-3497

OpenFormula Syntax has Conflicting Definitions of Identifier

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      1. Change the syntax in section 5.6 to be simply

      """
      FunctionName ::= LetterXML (LetterXML | DigitXML |'_' | '.' | CombiningCharXML)*

      Where LetterXML, DigitXML, and CombiningCharXML are Letter, Digit, and CombiningChar as they are defined in [XML1.0].

      Function names are case-insensitive.
      """

      Show
      1. Change the syntax in section 5.6 to be simply """ FunctionName ::= LetterXML (LetterXML | DigitXML |'_' | '.' | CombiningCharXML)* Where LetterXML, DigitXML, and CombiningCharXML are Letter, Digit, and CombiningChar as they are defined in [XML1.0] . Function names are case-insensitive. """
    • Resolution:
      Hide

      1. Change the syntax in section 5.6 to be simply

      """
      FunctionName ::= LetterXML (LetterXML | DigitXML |'_' | '.' | CombiningCharXML)*

      Where LetterXML, DigitXML, and CombiningCharXML are Letter, Digit, and CombiningChar as they are defined in [XML1.0].

      Function names are case-insensitive.
      """

      Show
      1. Change the syntax in section 5.6 to be simply """ FunctionName ::= LetterXML (LetterXML | DigitXML |'_' | '.' | CombiningCharXML)* Where LetterXML, DigitXML, and CombiningCharXML are Letter, Digit, and CombiningChar as they are defined in [XML1.0] . Function names are case-insensitive. """

      Description

      In ODF 1.2 CD05 Part 2, there are two different Syntax rules for the "Identifier" pattern in Section 5 Syntax.

      The first one is in section 5.6 where we have

      """
      FunctionName ::= Identifier

      Identifier ::= LetterXML (LetterXML | DigitXML |'_' | '.' | CombiningCharXML)*

      Where LetterXML, DigitXML, and CombiningCharXML are Letter, Digit, and CombiningChar as they are defined in [XML1.0].

      Function names are case-insensitive.
      """

      At the end of section 5.11, we have

      """
      Identifier ::= ( LetterXML
      (LetterXML | DigitXML | '_' | CombiningCharXML)* )

      • ( [A-Za-z][0-9] )
      • ([Tt][Rr][Uu][Ee]) - ([Ff][Aa][Ll][Ss][Ee])
        """

      which is quite different. Also, all references to Identifiers in the Section 5 syntax rules are from Named Expression rules, apart from the single use of Identifier as an intermediate for FunctionName.

        Attachments

          Activity

            People

            • Assignee:
              orcmid Dennis Hamilton (Inactive)
              Reporter:
              orcmid Dennis Hamilton (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: