DEPL 1.0 MAILINGLIST Avatar
  1. OMG Issue

DEPL — Any string content clarification

  • Key: DEPL-38
  • Legacy Issue Number: 6052
  • Status: open  
  • Source: Zuehlke Engineering ( Frank Pilhofer)
  • Summary:

    According to section 9.5.6, "the SimpleValue element is used for
    primitive values, enum values and object references. Its value
    attribute contains a stringified representation of the primitive
    value."

    It goes on, "for char, wchar, string, wstring types, the value
    attribute holds an unquoted literal (i.e. no single or double
    quotes, and no leading L prefix) that conforms to the IDL
    syntax and semantics chapter."

    This was intended to allow inclusion of escaped characters such
    as \x0d. However, that is unnecessary, as XML is perfectly able
    to process Unicode and escape arbitrary (and markup) characters
    in itself, such as

    Proposed resolution:

    Replace the 10th sentence of the first paragraph of section 9.5.6,

    For char, wchar, string, wstring types, the value attribute
    holds an unquoted literal (i.e. no single or double quotes,
    and no leading L prefix) that conforms to the IDL syntax and
    semantics chapter.

    to read

    For the char and wchar types, the value attribute holds a
    string of length 1.

  • Reported: DEPL 1.0b1 — Tue, 12 Aug 2003 04:00 GMT
  • Updated: Fri, 6 Mar 2015 20:58 GMT