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

Strings are not restricted with the pattern facet

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: s10
    • Component/s: None
    • Labels:
      None
    • Environment:
      Win7, 0.9.1 CLI

      Description

      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>

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks