<?xml version="1.0"?>
<!-- File Name: level.xml
     Author:    John R. Victorine
     Date:      7 November 2012
     Copyright (c) 2012 Kansas Geological Survey
     1930 Constant Avenue, Lawrence, Kansas, 66047, U.S.A.
     All Rights Reserved.

     This XML File contains a list of level symbols.
     Note: This file contains all the necessary attributes
           for drawing the symbol.
 -->
 <!DOCTYPE levels [
 <!ELEMENT levels (background, foreground, symbols)+>

 <!ELEMENT background (color*)>
 <!ATTLIST background records CDATA #REQUIRED>

 <!ELEMENT foreground (color*)>
 <!ATTLIST foreground records CDATA #REQUIRED>

 <!ELEMENT color    EMPTY>
 <!ATTLIST color    symbol CDATA #IMPLIED
                    r      CDATA #IMPLIED
                    g      CDATA #IMPLIED
                    b      CDATA #IMPLIED>

 <!ELEMENT symbols (level*)>
 <!ATTLIST symbols records CDATA #REQUIRED
                    rows    CDATA #REQUIRED
                    columns CDATA #REQUIRED>

 <!ELEMENT level  (column, symbol)>

 <!ELEMENT column   EMPTY>
 <!ATTLIST column   id       CDATA #REQUIRED
                    color    CDATA #REQUIRED
                    name     CDATA #REQUIRED>

 <!ELEMENT symbol  (line*)>
 <!ATTLIST symbol  records CDATA #REQUIRED>

 <!ELEMENT line   EMPTY>
 <!ATTLIST line   row      CDATA #IMPLIED
                  c        CDATA #IMPLIED
                  o        CDATA #IMPLIED>]>
                  
<levels>
  <background records="5">
    <color symbol="white"  r="255" g="255" b="255" />
    <color symbol="gold"   r="217" g="217" b="25" />
    <color symbol="silver" r="230" g="232" b="250" />
    <color symbol="copper" r="217" g="135" b="25" />
    <color symbol="lead"   r="100" g="100" b="100" />
  </background>

  <foreground records="10">
    <color symbol="." r="255" g="255" b="255" />
    <color symbol="*" r="0"   g="0"   b="0" />
    <color symbol="x" r="64"  g="64"  b="64" />
    <color symbol="+" r="128" g="128" b="128" />
    <color symbol="-" r="192" g="192" b="192" />
    <color symbol="w" r="255" g="255" b="255" />
    <color symbol="g" r="217" g="217" b="25" />
    <color symbol="s" r="230" g="232" b="250" />
    <color symbol="c" r="217" g="135" b="25" />
    <color symbol="l" r="100" g="100" b="100" />
  </foreground>
          
  <symbols records="4" rows="10" columns="10">
    <level>
      <column id="3" color="lead" level="poor" />
      <symbol records="10">
        <line row="0" c="....*....." o="....l....." />
        <line row="1" c="....*....." o="....l....." />
        <line row="2" c="..*****..." o="..lllll..." />
        <line row="3" c="....*....." o="....l....." />
        <line row="4" c="....***..." o="....lll..." />
        <line row="5" c="....*..*.." o="....l..l.." />
        <line row="6" c="....*..*.." o="....l..l.." />
        <line row="7" c="......*..." o="......l..." />
        <line row="8" c=".....*...." o=".....l...." />
        <line row="9" c="....*....." o="....l....." />
      </symbol>
    </level>

    <level>
      <column id="2" color="copper" level="fair" />
      <symbol records="10">
        <line row="0" c="....*....." o="....c....." />
        <line row="1" c="...*.*...." o="...c.c...." />
        <line row="2" c="..*...*..." o="..c...c..." />
        <line row="3" c="..*...*..." o="..c...c..." />
        <line row="4" c="...*.*...." o="...c.c...." />
        <line row="5" c="....*....." o="....c....." />
        <line row="6" c="....*....." o="....c....." />
        <line row="7" c="..*****..." o="..ccccc..." />
        <line row="8" c="....*....." o="....c....." />
        <line row="9" c="....*....." o="....c....." />
      </symbol>
    </level>

    <level>
      <column id="1" color="silver" level="good" />
      <symbol records="10">
        <line row="0" c="..***....." o="..sss....." />
        <line row="1" c="....**...." o="....ss...." />
        <line row="2" c=".....**..." o=".....ss..." />
        <line row="3" c="......**.." o="......ss.." />
        <line row="4" c="......**.." o="......ss.." />
        <line row="5" c="......**.." o="......ss.." />
        <line row="6" c="......**.." o="......ss.." />
        <line row="7" c=".....**..." o=".....ss..." />
        <line row="8" c="....**...." o="....ss...." />
        <line row="9" c="..***....." o="..sss....." />
      </symbol>
    </level>

    <level>
      <column id="0" color="gold" level="excellent" />
      <symbol records="10">
        <line row="0" c="...****..." o="...gggg..." />
        <line row="1" c="..*....*.." o="..g....g.." />
        <line row="2" c=".*......*." o=".g......g." />
        <line row="3" c="*........*" o="g........g" />
        <line row="4" c="*...**...*" o="g...gg...g" />
        <line row="5" c="*...**...*" o="g...gg...g" />
        <line row="6" c="*........*" o="g........g" />
        <line row="7" c=".*......*." o=".g......g." />
        <line row="8" c="..*....*.." o="..g....g.." />
        <line row="9" c="...****..." o="...gggg..." />
      </symbol>
    </level>
  </symbols>
</levels>
                  
