Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-707

Strings are not restricted with the pattern facet

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • s10
    • None
    • None
    • None
    • Win7, 0.9.1 CLI

      If an element is a string that is restricted with the pattern facet, Daffodil ignores the restriction.

      For example, Daffodil allows john,doe to be a valid LocalPart, even though the comma is not an allowed character.

      <xsd:element dfdl:textStringPadCharacter="%SP;" name="LocalPart">
          <xsd:simpleType>
              <xsd:restriction base="xsd:string">
                  <xsd:pattern value="[.A-Za-z0-9!#$%&amp;'*+-/=?^_`{|}~]+"/>
              </xsd:restriction>
          </xsd:simpleType>
      </xsd:element>

              twise Taylor Wise
              james.garriss James Garriss
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: