Uploaded image for project: 'XJDF / JDF'
  1. XJDF / JDF
  2. JDF-611

color names need to be case insensitive

    XMLWordPrintable

    Details

    • Type: Schema-Bug
    • Status: Implemented (View Workflow)
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.0-Final
    • Fix Version/s: 2.1, 2.0 errata
    • Component/s: Schema
    • Labels:
      None

      Description

      Our current definition enforces lower case. This is more restrictive than html practice and all lists.

      <xs:simpleType name="NamedColor">
      <xs:restriction base="xs:string">
      <xs:enumeration value="aliceblue"/>
      <xs:enumeration value="antiquewhite"/>
      <xs:enumeration value="aqua"/>

      Solution: replace values with patterns:

      <xs:simpleType>
      <xs:restriction base="xs:string">
      <xs:pattern value="[Oo][Nn]" />
      <xs:pattern value="[Oo][Ff][Ff]" />
      </xs:restriction>
      </xs:simpleType>

        Draft

         

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                prosi Rainer Prosi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: