Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.6
    • Fix Version/s: not determined
    • Component/s: runtime
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      422

      Description

      This is a blocking issue for my company. We have a string that contains control
      characters – as defined by Character.isISOControl(char). These values can
      legally be encoded in XML 1.1 (but not in XML 1.0). The XML version should be
      selectable in JAXB RI (possibly through a System property) and the values
      property encoded. The class responsible for encoding is:

      com.sun.xml.bind.v2.runtime.output.Encoded

        Activity

        Hide
        kohsuke added a comment -

        Would it be fair to characterize this as "XML 1.1 support" ?

        Show
        kohsuke added a comment - Would it be fair to characterize this as "XML 1.1 support" ?
        Hide
        brettw added a comment -

        yes. and no. I think there are many XML 1.0 implementations that would deal
        with XML 1.1 style escaping. In my opinion it would be preferable to attempt
        the escape anyway, because if you don't the call blows up way down in the
        unmarshall stack anyway.

        Show
        brettw added a comment - yes. and no. I think there are many XML 1.0 implementations that would deal with XML 1.1 style escaping. In my opinion it would be preferable to attempt the escape anyway, because if you don't the call blows up way down in the unmarshall stack anyway.
        Hide
        kohsuke added a comment -

        I don't think it's wise for us to produce non well-formed (in XML 1.0 sense) XML
        documents by default. Today we already take a lot of heat for not doing more
        rigorous well-formedness check on what we produce, as it violates the internet
        principle of "be strict about what you produce, and be forgiving about what you
        receive."

        Having a mode to support XML 1.1 would be good, though (with proper XML 1.1
        prolog and everything.)

        Show
        kohsuke added a comment - I don't think it's wise for us to produce non well-formed (in XML 1.0 sense) XML documents by default. Today we already take a lot of heat for not doing more rigorous well-formedness check on what we produce, as it violates the internet principle of "be strict about what you produce, and be forgiving about what you receive." Having a mode to support XML 1.1 would be good, though (with proper XML 1.1 prolog and everything.)

          People

          • Assignee:
            Martin Grebac
            Reporter:
            brettw
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: