Schema Name ContextDefinition.xsd
Attribute Groups fontStyleAttributes
fontStyleAttributes_WithBgColor
Elements EditorContext
Simple Types boooleanStringType
XSD Schema Code
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" >
  <xs:element name="EditorContext">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="Delimiters">
          <xs:complexType>
            <xs:all minOccurs="0" maxOccurs="1">
              <xs:element minOccurs="0" name="CommentTokens">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="0" name="BlockCommentStartMark" type="xs:token"/>
                    <xs:element minOccurs="0" name="BlockCommentEndMark" type="xs:token"/>
                  </xs:sequence>

                  <xs:attributeGroup ref="fontStyleAttributes"/>
                </xs:complexType>

              </xs:element>

              <xs:element minOccurs="0" name="EndOfLineCommentTokens">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="0" name="EndOfLineCommentMark" type="xs:token"/>
                  </xs:sequence>

                  <xs:attributeGroup ref="fontStyleAttributes"/>
                </xs:complexType>

              </xs:element>

              <xs:element minOccurs="0" name="QuoteTokens">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="0" maxOccurs="unbounded" name="QuoteToken">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:token">
                            <xs:attributeGroup ref="fontStyleAttributes"/>
                          </xs:extension>

                        </xs:simpleContent>

                      </xs:complexType>

                    </xs:element>

                  </xs:sequence>

                </xs:complexType>

              </xs:element>

              <xs:element minOccurs="0" name="VariableTokens">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="0" maxOccurs="unbounded" name="VariableToken">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:token">
                            <xs:attributeGroup ref="fontStyleAttributes"/>
                          </xs:extension>

                        </xs:simpleContent>

                      </xs:complexType>

                    </xs:element>

                  </xs:sequence>

                </xs:complexType>

              </xs:element>

              <xs:element minOccurs="0" name="SeparatorTokens" type="xs:string"/>
              <xs:element minOccurs="0" name="NumberTokens">
                <xs:complexType>
                  <xs:attributeGroup ref="fontStyleAttributes_WithBgColor"/>
                </xs:complexType>

              </xs:element>

              <xs:element minOccurs="0" name="PlaceholderTokens">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="PlaceholderStartMark" type="xs:token"/>
                    <xs:element name="PlaceholderEndMark" type="xs:token"/>
                  </xs:sequence>

                  <xs:attributeGroup ref="fontStyleAttributes_WithBgColor"/>
                </xs:complexType>

              </xs:element>

            </xs:all>

          </xs:complexType>

        </xs:element>

        <xs:element minOccurs="0" name="WordsAndPhrases">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" maxOccurs="unbounded" name="WordGroup">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element minOccurs="0" maxOccurs="unbounded" name="Keyword">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute name="whiteSpace">
                              <xs:simpleType>
                                <xs:restriction base="xs:string">
                                  <xs:enumeration value="preserve"/>
                                  <xs:enumeration value="replace"/>
                                  <xs:enumeration value="collapse"/>
                                </xs:restriction>

                              </xs:simpleType>

                            </xs:attribute>

                            <xs:attribute name="alias" type="xs:token" use="optional"/>
                          </xs:extension>

                        </xs:simpleContent>

                      </xs:complexType>

                    </xs:element>

                  </xs:sequence>

                  <xs:attributeGroup ref="fontStyleAttributes"/>
                  <xs:attribute name="type" type="xs:token" use="optional"/>
                </xs:complexType>

              </xs:element>

            </xs:sequence>

          </xs:complexType>

        </xs:element>

      </xs:sequence>

    </xs:complexType>

  </xs:element>

  <xs:simpleType name="boooleanStringType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="true"/>
      <xs:enumeration value="false"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:attributeGroup name="fontStyleAttributes">
    <xs:attribute name="font-family" use="optional">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:pattern value="^[a-zA-Z ]+$"/><!-- allows spaces -->
        </xs:restriction>

      </xs:simpleType>

    </xs:attribute>

    <xs:attribute name="color" use="optional">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:pattern value="^[a-zA-Z]+$"/><!-- disallows spaces -->
        </xs:restriction>

      </xs:simpleType>

    </xs:attribute>

    <xs:attribute name="bold" type="boooleanStringType" use="optional"/>
    <xs:attribute name="italic" type="boooleanStringType" use="optional"/>
  </xs:attributeGroup>

  <xs:attributeGroup name="fontStyleAttributes_WithBgColor">
    <xs:attributeGroup ref="fontStyleAttributes"/>
    <xs:attribute name="background-color">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:pattern value="^[a-zA-Z]+$"/>
        </xs:restriction>

      </xs:simpleType>

    </xs:attribute>

  </xs:attributeGroup>

</xs:schema>
Generated using Liquid XML Studio - FREE Community Edition 7.0.0.604 by Liquid Technologies Ltd