jsr-283
  1. jsr-283
  2. JSR_283-807

Empty namespace and the expanded form

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: namespaces
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      807

      Description

      The current spec is not clear on how the empty namespace should be handled
      in the expanded form. For example, given the current spec the string "{}foo"
      could be parsed either as the expanded form of ("", "foo") or as the prefixed
      form of ("", "{}foo").

      To solve this ambiguity, I propose that we change the relevant syntax in section
      3.2.5.1 Expanded Form to:

      ExpandedName ::= [ '

      {' Uri '}

      ' ] LocalName

      Uri ::= /* see §3.2.1 Namespaces */

      A clarifying note like the following should probably also be added:

      The expanded form of a name in the empty namespace is simply the local
      part of the name. This representation is equal to the qualified form of
      the name, see 3.2.5.3 Qualified Form with the Empty Namespace.

      Note that this interpretation is different than what is currently implemented in
      the RI candidate! If we can't make this change before JCR 2.0 is final, then
      I would drop this proposal and simply accept that names like ("", "{}foo") can
      not be used in qualified form and should always be expressed in the expanded
      form "{}{}foo".

        Activity

        Hide
        reschke added a comment -

        I think losing the ability to express all names in both formats would be bad.

        Thus, I support making the suggested change; even if the timing really is a problem.

        Show
        reschke added a comment - I think losing the ability to express all names in both formats would be bad. Thus, I support making the suggested change; even if the timing really is a problem.

          People

          • Assignee:
            jsr-283-issues
            Reporter:
            jukka_zitting
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: