XTCE 1.2 RTF Avatar
  1. OMG Issue

XTCE12 — Change NameType regex from zero or more to one or more characters

  • Key: XTCE12-16
  • Legacy Issue Number: 19442
  • Status: closed  
  • Source: NASA ( Mr. James Kevin Rice)
  • Summary:

    NameType's regex currently allows a name to be empty, and it should not allow this...

  • Reported: XTCE 1.1 — Mon, 2 Jun 2014 04:00 GMT
  • Disposition: Resolved — XTCE 1.2
  • Disposition Summary:

    Propose to accept the updated regular expression and broaden it

    This is a valid issue and the regular expression should be modified from:

    <simpleType name="NameType">
    <annotation>
    <documentation xml:lang="en">Used for "directory" style unique names. We need to preclude spaces, '.', '/', ':", "[" and "]". Only letters, digits, '_', ' ' and "-" are allowed </documentation>
    </annotation>
    <restriction base="string">
    <pattern value="[a-zA-Z0-9_\-]*"/>
    </restriction>
    </simpleType>

    To:

    <simpleType name="NameType">
    <annotation>
    <documentation>Defines a name where all characters are allowed except '.', '[', ']', ':', ' ', and '/'. See NameDescriptionType.</documentation>
    </annotation>
    <restriction base="normalizedString">
    <pattern value="[^./:\[\] ]+"/>
    </restriction>
    </simpleType>

  • Updated: Tue, 10 Jul 2018 14:22 GMT