# ISO/IEC 15445

#======= ELEMENTS =======
$emptyTags = 'AREA|BR|COL|HR|IMG|INPUT|LINK|META|PARAM';
$pairTags = 'A|ABBR|ACRONYM|ADDRESS|B|BDO|BLOCKQUOTE|BODY|BUTTON|CAPTION|CITE'.
            '|CODE|COLGROUP|DD|DEL|DFN|DIV|DL|DT|EM|FIELDSET|FORM|H1|H2|H3|H4'.
            '|H5|H6|HEAD|HTML|I|INS|KBD|LABEL|LEGEND|LI|MAP|OBJECT|OL'.
            '|OPTGROUP|OPTION|P|PRE|Q|SAMP|SELECT|SPAN|STRONG|STYLE|SUB|SUP'.
            '|TABLE|TBODY|TD|TEXTAREA|TFOOT|TH|THEAD|TITLE|TR|TT|UL|VAR';
$deprecatedTags = '';
$omitStartTags = '';
$omitEndTags = 'BODY|COLGROUP|DD|DT|HEAD|LI|OPTION|P|TBODY|TD|TFOOT|TH|THEAD'.
               '|TR';
#$maybeEmpty = 'A|COLGROUP|LEGEND|OBJECT|OPTION|STYLE|TD|TEXTAREA|TH|TITLE';
$maybeEmpty = 'COLGROUP|OBJECT|STYLE|TEXTAREA|TD|TH';
%requiredTags = (
  'FIELDSET' => 'LEGEND|#000',
  'HEAD'     => 'TITLE',
  'HTML'     => 'HEAD|BODY',
  'TABLE'    => 'TBODY',
);
%onceonlyTags = (
  'FIELDSET' => 'LEGEND',
  'HEAD'     => 'TITLE',
  'HTML'     => 'HEAD|BODY',
  'TABLE'    => 'CAPTION|#001|THEAD|TFOOT',
);
$sequencialTags = 'TABLE|FIELDSET|HTML';
%tagsElements = (
  '#000'       => 'ADDRESS|TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP'.
                  '|OBJECT|IMG|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE'.
                  '|ACRONYM|ABBR|TT|SUP|SUB|I|B|#PCDATA|UL|TABLE|PRE|P|OL|HR'.
                  '|FORM|FIELDSET|DL|DIV|BLOCKQUOTE',
  '#001'       => 'COLGROUP|COL',
  'A'          => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM|ABBR'.
                  '|TT|SUP|SUB|I|B|#PCDATA',
  'ABBR'       => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'ACRONYM'    => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'ADDRESS'    => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|BR|BDO|A|VAR'.
                  '|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM|ABBR|TT|SUP|SUB'.
                  '|I|B|#PCDATA',
  'B'          => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'BDO'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'BLOCKQUOTE' => 'UL|TABLE|PRE|P|OL|HR|FORM|FIELDSET|DL|DIV|BLOCKQUOTE',
  'BODY'       => 'H6|H5|H4|H3|H2|H1|UL|TABLE|PRE|P|OL|HR|FORM|FIELDSET|DL'.
                  '|DIV|BLOCKQUOTE|DEL|INS',
  'BUTTON'     => 'SPAN|Q|MAP|OBJECT|IMG|BR|BDO|VAR|STRONG|SAMP|KBD|EM|DFN'.
                  '|CODE|CITE|ACRONYM|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'CAPTION'    => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'CITE'       => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'CODE'       => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'COLGROUP'   => 'COL',
  'DD'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA|UL|TABLE|PRE|P|OL|HR|FORM'.
                  '|FIELDSET|DL|DIV|BLOCKQUOTE',
  'DEL'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'DFN'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'DIV'        => 'ADDRESS|TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP'.
                  '|OBJECT|IMG|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE'.
                  '|ACRONYM|ABBR|TT|SUP|SUB|I|B|#PCDATA|UL|TABLE|PRE|P|OL|HR'.
                  '|FORM|FIELDSET|DL|DIV|BLOCKQUOTE',
  'DL'         => 'DD|DT',
  'DT'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'EM'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'FIELDSET'   => '#PCDATA|LEGEND|#000',
  'FORM'       => 'UL|TABLE|PRE|P|OL|HR|FIELDSET|DL|DIV|BLOCKQUOTE',
  'H1'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'H2'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'H3'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'H4'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'H5'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'H6'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'HEAD'       => 'TITLE|LINK|META|STYLE',
  'HTML'       => 'HEAD|BODY',
  'I'          => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'INS'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'KBD'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'LABEL'      => 'TEXTAREA|SELECT|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG|BR|BDO'.
                  '|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM|ABBR|TT'.
                  '|SUP|SUB|I|B|#PCDATA',
  'LEGEND'     => '#PCDATA',
  'LI'         => 'UL|TABLE|PRE|P|OL|HR|FORM|FIELDSET|DL|DIV|BLOCKQUOTE'.
                  '|TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'MAP'        => 'AREA|UL|TABLE|PRE|P|OL|HR|FORM|FIELDSET|DL|DIV|BLOCKQUOTE',
  'OBJECT'     => 'ADDRESS|TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP'.
                  '|OBJECT|IMG|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE'.
                  '|ACRONYM|ABBR|TT|SUP|SUB|I|B|#PCDATA|UL|TABLE|PRE|P|OL|HR'.
                  '|FORM|FIELDSET|DL|DIV|BLOCKQUOTE|PARAM',
  'OL'         => 'LI',
  'OPTGROUP'   => 'OPTION',
  'OPTION'     => '#PCDATA',
  'P'          => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'PRE'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|BR|BDO|A|VAR'.
                  '|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM|ABBR|TT|I|B'.
                  '|#PCDATA',
  'Q'          => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'SAMP'       => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'SELECT'     => 'OPTION|OPTGROUP',
  'SPAN'       => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'STRONG'     => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'STYLE'      => '%StyleSheet',
  'SUB'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'SUP'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'TABLE'      => 'CAPTION|#001|THEAD|TFOOT|TBODY',
  'TBODY'      => 'TR',
  'TD'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA|UL|TABLE|PRE|P|OL|HR|FORM'.
                  '|FIELDSET|DL|DIV|BLOCKQUOTE',
  'TEXTAREA'   => '#PCDATA',
  'TFOOT'      => 'TR',
  'TH'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA|UL|TABLE|PRE|P|OL|HR|FORM'.
                  '|FIELDSET|DL|DIV|BLOCKQUOTE',
  'THEAD'      => 'TR',
  'TITLE'      => '#PCDATA',
  'TR'         => 'TD|TH',
  'TT'         => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
  'UL'         => 'LI',
  'VAR'        => 'TEXTAREA|SELECT|LABEL|INPUT|BUTTON|SPAN|Q|MAP|OBJECT|IMG'.
                  '|BR|BDO|A|VAR|STRONG|SAMP|KBD|EM|DFN|CODE|CITE|ACRONYM'.
                  '|ABBR|TT|SUP|SUB|I|B|#PCDATA',
);
%excludedElems = (
  'A'        => 'A',
  'ADDRESS'  => 'IMG|OBJECT|MAP',
  'BUTTON'   => 'A|FIELDSET|FORM|BUTTON|INPUT|LABEL|SELECT|TEXTAREA',
  'DD'       => 'ADDRESS',
  'FIELDSET' => 'FIELDSET',
  'FORM'     => 'FORM',
  'LABEL'    => 'LABEL',
  'PRE'      => 'IMG|MAP|OBJECT|SUB|SUP',
  'TITLE'    => 'LINK|META|STYLE',
);
%includedElems = (
  'BODY' => 'DEL|INS',
  'HEAD' => 'LINK|META|STYLE',
);
#======= ATTRIBUTES =======
%tagsAttributes = (
  'A' => {
    'ACCESSKEY' => '%Character',
    'CHARSET'   => '%Charset',
    'CLASS'     => '%Class',
    'COORDS'    => '%Coords',
    'DIR'       => 'ltr|rtl',
    'HREF'      => '%URI',
    'HREFLANG'  => '%LanguageCode',
    'ID'        => 'ID',
    'LANG'      => '%LanguageCode',
    'NAME'      => '%Name',
    'REL'       => '%LinkTypes',
    'REV'       => '%LinkTypes',
    'SHAPE'     => 'circle|default|poly|rect',
    'TABINDEX'  => 'NUMBER',
    'TITLE'     => '%Text',
    'TYPE'      => 'CDATA',
  },
  'ABBR' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'ACRONYM' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'ADDRESS' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'AREA' => {
    'ACCESSKEY' => '%Character',
    'ALT'       => '%Text',
    'CLASS'     => '%Class',
    'COORDS'    => '%Coords',
    'DIR'       => 'ltr|rtl',
    'HREF'      => '%URI',
    'ID'        => 'ID',
    'LANG'      => '%LanguageCode',
    'NOHREF'    => 'nohref',
    'SHAPE'     => 'circle|default|poly|rect',
    'TABINDEX'  => 'NUMBER',
    'TITLE'     => '%Text',
  },
  'B' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'BDO' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'BLOCKQUOTE' => {
    'CITE'  => '%URI',
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'BODY' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'BR' => {
    'CLASS' => '%Class',
    'ID'    => 'ID',
    'TITLE' => '%Text',
  },
  'BUTTON' => {
    'ACCESSKEY' => '%Character',
    'CLASS'     => '%Class',
    'DIR'       => 'ltr|rtl',
    'DISABLED'  => 'disabled',
    'ID'        => 'ID',
    'LANG'      => '%LanguageCode',
    'NAME'      => '%Name',
    'TABINDEX'  => 'NUMBER',
    'TITLE'     => '%Text',
    'TYPE'      => 'submit|reset',
    'VALUE'     => 'CDATA',
  },
  'CAPTION' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'CITE' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'CODE' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'COL' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'SPAN'  => '%Span',
    'TITLE' => '%Text',
  },
  'COLGROUP' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'SPAN'  => '%Span',
    'TITLE' => '%Text',
  },
  'DD' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'DEL' => {
    'CITE'     => '%URI',
    'CLASS'    => '%Class',
    'DATETIME' => '%Datetime',
    'DIR'      => 'ltr|rtl',
    'ID'       => 'ID',
    'LANG'     => '%LanguageCode',
    'TITLE'    => '%Text',
  },
  'DFN' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'DIV' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'DL' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'DT' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'EM' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'FIELDSET' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'FORM' => {
    'ACCEPT'         => '%Content-Types',
    'ACCEPT-CHARSET' => '%Charsets',
    'ACTION'         => '%URI',
    'CLASS'          => '%Class',
    'DIR'            => 'ltr|rtl',
    'ENCTYPE'        => '%Content-Type',
    'ID'             => 'ID',
    'LANG'           => '%LanguageCode',
    'METHOD'         => 'get|post',
    'TITLE'          => '%Text',
  },
  'H1' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'H2' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'H3' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'H4' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'H5' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'H6' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'HEAD' => {
    'DIR'     => 'ltr|rtl',
    'LANG'    => '%LanguageCode',
    'PROFILE' => '%URIs',
  },
  'HR' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'HTML' => {
    'DIR'  => 'ltr|rtl',
    'LANG' => '%LanguageCode',
  },
  'I' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'IMG' => {
    'ALT'      => '%Text',
    'CLASS'    => '%Class',
    'DIR'      => 'ltr|rtl',
    'ID'       => 'ID',
    'ISMAP'    => 'ismap',
    'LANG'     => '%LanguageCode',
    'LONGDESC' => '%URI',
    'SRC'      => '%URI',
    'TITLE'    => '%Text',
    'USEMAP'   => '%URI',
  },
  'INPUT' => {
    'ACCEPT'    => '%Content-Types',
    'ACCESSKEY' => '%Character',
    'CHECKED'   => 'checked',
    'CLASS'     => '%Class',
    'DIR'       => 'ltr|rtl',
    'DISABLED'  => 'disabled',
    'ID'        => 'ID',
    'LANG'      => '%LanguageCode',
    'MAXLENGTH' => 'NUMBER',
    'NAME'      => '%Name',
    'READONLY'  => 'READONLY',
    'SIZE'      => 'CDATA',
    'TABINDEX'  => 'NUMBER',
    'TITLE'     => '%Text',
    'TYPE'      => 'checkbox|file|hidden|password|radio|reset|submit|text',
    'VALUE'     => 'CDATA',
  },
  'INS' => {
    'CITE'     => '%URI',
    'CLASS'    => '%Class',
    'DATETIME' => '%Datetime',
    'DIR'      => 'ltr|rtl',
    'ID'       => 'ID',
    'LANG'     => '%LanguageCode',
    'TITLE'    => '%Text',
  },
  'KBD' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'LABEL' => {
    'ACCESSKEY' => '%Character',
    'CLASS'     => '%Class',
    'DIR'       => 'ltr|rtl',
    'FOR'       => 'IDREF',
    'ID'        => 'ID',
    'LANG'      => '%LanguageCode',
    'TITLE'     => '%Text',
  },
  'LEGEND' => {
    'ACCESSKEY' => '%Character',
    'CLASS'     => '%Class',
    'DIR'       => 'ltr|rtl',
    'ID'        => 'ID',
    'LANG'      => '%LanguageCode',
    'TITLE'     => '%Text',
  },
  'LI' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'LINK' => {
    'CHARSET'  => '%Charset',
    'CLASS'    => '%Class',
    'DIR'      => 'ltr|rtl',
    'HREF'     => '%URI',
    'HREFLANG' => '%LanguageCode',
    'ID'       => 'ID',
    'LANG'     => '%LanguageCode',
    'MEDIA'    => '%MediaDesc',
    'REL'      => '%LinkTypes',
    'REV'      => '%LinkTypes',
    'TITLE'    => '%Text',
    'TYPE'     => 'CDATA',
  },
  'MAP' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'NAME'  => '%Name',
    'TITLE' => '%Text',
  },
  'META' => {
    'CONTENT'    => 'CDATA',
    'DIR'        => 'ltr|rtl',
    'HTTP-EQUIV' => 'NAME',
    'LANG'       => '%LanguageCode',
    'NAME'       => 'NAME',
    'SCHEME'     => 'CDATA',
  },
  'OBJECT' => {
    'CLASS'    => '%Class',
    'CLASSID'  => '%URI',
    'CODEBASE' => '%URI',
    'CODETYPE' => 'CDATA',
    'DATA'     => '%URI',
    'DECLARE'  => 'declare',
    'DIR'      => 'ltr|rtl',
    'ID'       => 'ID',
    'LANG'     => '%LanguageCode',
    'NAME'     => '%Name',
    'STANDBY'  => '%Text',
    'TABINDEX' => 'NUMBER',
    'TITLE'    => '%Text',
    'TYPE'     => 'CDATA',
    'USEMAP'   => '%URI',
  },
  'OL' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'OPTGROUP' => {
    'CLASS'    => '%Class',
    'DIR'      => 'ltr|rtl',
    'DISABLED' => 'disabled',
    'ID'       => 'ID',
    'LABEL'    => '%Text',
    'LANG'     => '%LanguageCode',
    'TITLE'    => '%Text',
  },
  'OPTION' => {
    'CLASS'    => '%Class',
    'DIR'      => 'ltr|rtl',
    'DISABLED' => 'disabled',
    'ID'       => 'ID',
    'LABEL'    => '%Text',
    'LANG'     => '%LanguageCode',
    'SELECTED' => 'selected',
    'TITLE'    => '%Text',
    'VALUE'    => 'CDATA',
  },
  'P' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'PARAM' => {
    'ID'        => 'ID',
    'NAME'      => '%Name',
    'TYPE'      => 'CDATA',
    'VALUE'     => 'CDATA',
    'VALUETYPE' => 'data|ref|object',
  },
  'PRE' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'Q' => {
    'CITE'  => '%URI',
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'SAMP' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'SELECT' => {
    'CLASS'    => '%Class',
    'DIR'      => 'ltr|rtl',
    'DISABLED' => 'disabled',
    'ID'       => 'ID',
    'LANG'     => '%LanguageCode',
    'MULTIPLE' => 'multiple',
    'NAME'     => '%Name',
    'SIZE'     => 'NUMBER',
    'TABINDEX' => 'NUMBER',
    'TITLE'    => '%Text',
  },
  'SPAN' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'STRONG' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'STYLE' => {
    'DIR'   => 'ltr|rtl',
    'LANG'  => '%LanguageCode',
    'MEDIA' => '%MediaDesc',
    'TITLE' => '%Text',
    'TYPE'  => 'CDATA',
  },
  'SUB' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'SUP' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'TABLE' => {
    'CLASS'   => '%Class',
    'DIR'     => 'ltr|rtl',
    'ID'      => 'ID',
    'LANG'    => '%LanguageCode',
    'SUMMARY' => '%Text',
    'TITLE'   => '%Text',
  },
  'TBODY' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'TD' => {
    'ABBR'    => '%Text',
    'AXIS'    => 'CDATA',
    'CLASS'   => '%Class',
    'COLSPAN' => 'NUMBER',
    'DIR'     => 'ltr|rtl',
    'HEADERS' => 'IDREFS',
    'ID'      => 'ID',
    'LANG'    => '%LanguageCode',
    'ROWSPAN' => 'NUMBER',
    'SCOPE'   => 'col|colgroup|row|rowgroup',
    'TITLE'   => '%Text',
  },
  'TEXTAREA' => {
    'ACCESSKEY' => '%Character',
    'CLASS'     => '%Class',
    'COLS'      => 'NUMBER',
    'DIR'       => 'ltr|rtl',
    'DISABLED'  => 'disabled',
    'ID'        => 'ID',
    'LANG'      => '%LanguageCode',
    'NAME'      => '%Name',
    'READONLY'  => 'readonly',
    'ROWS'      => 'NUMBER',
    'TABINDEX'  => 'NUMBER',
    'TITLE'     => '%Text',
  },
  'TFOOT' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'TH' => {
    'ABBR'    => '%Text',
    'AXIS'    => 'CDATA',
    'CLASS'   => '%Class',
    'COLSPAN' => 'NUMBER',
    'DIR'     => 'ltr|rtl',
    'HEADERS' => 'IDREFS',
    'ID'      => 'ID',
    'LANG'    => '%LanguageCode',
    'ROWSPAN' => 'NUMBER',
    'SCOPE'   => 'col|colgroup|row|rowgroup',
    'TITLE'   => '%Text',
  },
  'THEAD' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'TITLE' => {
    'DIR'  => 'ltr|rtl',
    'LANG' => '%LanguageCode',
  },
  'TR' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'TT' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'UL' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
  'VAR' => {
    'CLASS' => '%Class',
    'DIR'   => 'ltr|rtl',
    'ID'    => 'ID',
    'LANG'  => '%LanguageCode',
    'TITLE' => '%Text',
  },
);
%requiredAttrs = (
  'AREA'     => 'ALT',
  'BDO'      => 'DIR',
  'FORM'     => 'ACTION',
  'IMG'      => 'ALT&SRC',
  'MAP'      => 'NAME',
  'META'     => 'CONTENT',
  'OPTGROUP' => 'LABEL',
  'PARAM'    => 'NAME',
  'SELECT'   => 'NAME',
  'STYLE'    => 'TYPE',
  'TABLE'    => 'SUMMARY',
  'TEXTAREA' => 'COLS&NAME&ROWS',
);
#======= ENTITIES =======
%refEntities = (
  'AElig'    => '&#198;',
  'Aacute'   => '&#193;',
  'Acirc'    => '&#194;',
  'Agrave'   => '&#192;',
  'Alpha'    => '&#913;',
  'Aring'    => '&#197;',
  'Atilde'   => '&#195;',
  'Auml'     => '&#196;',
  'Beta'     => '&#914;',
  'Ccedil'   => '&#199;',
  'Chi'      => '&#935;',
  'Dagger'   => '&#8225;',
  'Delta'    => '&#916;',
  'ETH'      => '&#208;',
  'Eacute'   => '&#201;',
  'Ecirc'    => '&#202;',
  'Egrave'   => '&#200;',
  'Epsilon'  => '&#917;',
  'Eta'      => '&#919;',
  'Euml'     => '&#203;',
  'Gamma'    => '&#915;',
  'Iacute'   => '&#205;',
  'Icirc'    => '&#206;',
  'Igrave'   => '&#204;',
  'Iota'     => '&#921;',
  'Iuml'     => '&#207;',
  'Kappa'    => '&#922;',
  'Lambda'   => '&#923;',
  'Mu'       => '&#924;',
  'Ntilde'   => '&#209;',
  'Nu'       => '&#925;',
  'OElig'    => '&#338;',
  'Oacute'   => '&#211;',
  'Ocirc'    => '&#212;',
  'Ograve'   => '&#210;',
  'Omega'    => '&#937;',
  'Omicron'  => '&#927;',
  'Oslash'   => '&#216;',
  'Otilde'   => '&#213;',
  'Ouml'     => '&#214;',
  'Phi'      => '&#934;',
  'Pi'       => '&#928;',
  'Prime'    => '&#8243;',
  'Psi'      => '&#936;',
  'Rho'      => '&#929;',
  'Scaron'   => '&#352;',
  'Sigma'    => '&#931;',
  'THORN'    => '&#222;',
  'Tau'      => '&#932;',
  'Theta'    => '&#920;',
  'Uacute'   => '&#218;',
  'Ucirc'    => '&#219;',
  'Ugrave'   => '&#217;',
  'Upsilon'  => '&#933;',
  'Uuml'     => '&#220;',
  'Xi'       => '&#926;',
  'Yacute'   => '&#221;',
  'Yuml'     => '&#376;',
  'Zeta'     => '&#918;',
  'aacute'   => '&#225;',
  'acirc'    => '&#226;',
  'acute'    => '&#180;',
  'aelig'    => '&#230;',
  'agrave'   => '&#224;',
  'alefsym'  => '&#8501;',
  'alpha'    => '&#945;',
  'amp'      => '&#38;',
  'and'      => '&#8743;',
  'ang'      => '&#8736;',
  'aring'    => '&#229;',
  'asymp'    => '&#8776;',
  'atilde'   => '&#227;',
  'auml'     => '&#228;',
  'bdquo'    => '&#8222;',
  'beta'     => '&#946;',
  'brvbar'   => '&#166;',
  'bull'     => '&#8226;',
  'cap'      => '&#8745;',
  'ccedil'   => '&#231;',
  'cedil'    => '&#184;',
  'cent'     => '&#162;',
  'chi'      => '&#967;',
  'circ'     => '&#710;',
  'clubs'    => '&#9827;',
  'cong'     => '&#8773;',
  'copy'     => '&#169;',
  'crarr'    => '&#8629;',
  'cup'      => '&#8746;',
  'curren'   => '&#164;',
  'dArr'     => '&#8659;',
  'dagger'   => '&#8224;',
  'darr'     => '&#8595;',
  'deg'      => '&#176;',
  'delta'    => '&#948;',
  'diams'    => '&#9830;',
  'divide'   => '&#247;',
  'eacute'   => '&#233;',
  'ecirc'    => '&#234;',
  'egrave'   => '&#232;',
  'empty'    => '&#8709;',
  'emsp'     => '&#8195;',
  'ensp'     => '&#8194;',
  'epsilon'  => '&#949;',
  'equiv'    => '&#8801;',
  'eta'      => '&#951;',
  'eth'      => '&#240;',
  'euml'     => '&#235;',
  'euro'     => '&#8364;',
  'exist'    => '&#8707;',
  'fnof'     => '&#402;',
  'forall'   => '&#8704;',
  'frac12'   => '&#189;',
  'frac14'   => '&#188;',
  'frac34'   => '&#190;',
  'frasl'    => '&#8260;',
  'gamma'    => '&#947;',
  'ge'       => '&#8805;',
  'gt'       => '&#62;',
  'hArr'     => '&#8660;',
  'harr'     => '&#8596;',
  'hearts'   => '&#9829;',
  'hellip'   => '&#8230;',
  'iacute'   => '&#237;',
  'icirc'    => '&#238;',
  'iexcl'    => '&#161;',
  'igrave'   => '&#236;',
  'image'    => '&#8465;',
  'infin'    => '&#8734;',
  'int'      => '&#8747;',
  'iota'     => '&#953;',
  'iquest'   => '&#191;',
  'isin'     => '&#8712;',
  'iuml'     => '&#239;',
  'kappa'    => '&#954;',
  'lArr'     => '&#8656;',
  'lambda'   => '&#955;',
  'lang'     => '&#9001;',
  'laquo'    => '&#171;',
  'larr'     => '&#8592;',
  'lceil'    => '&#8968;',
  'ldquo'    => '&#8220;',
  'le'       => '&#8804;',
  'lfloor'   => '&#8970;',
  'lowast'   => '&#8727;',
  'loz'      => '&#9674;',
  'lrm'      => '&#8206;',
  'lsaquo'   => '&#8249;',
  'lsquo'    => '&#8216;',
  'lt'       => '&#60;',
  'macr'     => '&#175;',
  'mdash'    => '&#8212;',
  'micro'    => '&#181;',
  'middot'   => '&#183;',
  'minus'    => '&#8722;',
  'mu'       => '&#956;',
  'nabla'    => '&#8711;',
  'nbsp'     => '&#160;',
  'ndash'    => '&#8211;',
  'ne'       => '&#8800;',
  'ni'       => '&#8715;',
  'nontab'   => ' ',
  'not'      => '&#172;',
  'notin'    => '&#8713;',
  'nsub'     => '&#8836;',
  'ntilde'   => '&#241;',
  'nu'       => '&#957;',
  'oacute'   => '&#243;',
  'ocirc'    => '&#244;',
  'oelig'    => '&#339;',
  'ograve'   => '&#242;',
  'oline'    => '&#8254;',
  'omega'    => '&#969;',
  'omicron'  => '&#959;',
  'oplus'    => '&#8853;',
  'or'       => '&#8744;',
  'ordf'     => '&#170;',
  'ordm'     => '&#186;',
  'oslash'   => '&#248;',
  'otilde'   => '&#245;',
  'otimes'   => '&#8855;',
  'ouml'     => '&#246;',
  'para'     => '&#182;',
  'part'     => '&#8706;',
  'permil'   => '&#8240;',
  'perp'     => '&#8869;',
  'phi'      => '&#966;',
  'pi'       => '&#960;',
  'piv'      => '&#982;',
  'plusmn'   => '&#177;',
  'pound'    => '&#163;',
  'prime'    => '&#8242;',
  'prod'     => '&#8719;',
  'prop'     => '&#8733;',
  'psi'      => '&#968;',
  'quot'     => '&#34;',
  'rArr'     => '&#8658;',
  'radic'    => '&#8730;',
  'rang'     => '&#9002;',
  'raquo'    => '&#187;',
  'rarr'     => '&#8594;',
  'rceil'    => '&#8969;',
  'rdquo'    => '&#8221;',
  'real'     => '&#8476;',
  'reg'      => '&#174;',
  'rfloor'   => '&#8971;',
  'rho'      => '&#961;',
  'rlm'      => '&#8207;',
  'rsaquo'   => '&#8250;',
  'rsquo'    => '&#8217;',
  'sbquo'    => '&#8218;',
  'scaron'   => '&#353;',
  'sdot'     => '&#8901;',
  'sect'     => '&#167;',
  'shy'      => '&#173;',
  'sigma'    => '&#963;',
  'sigmaf'   => '&#962;',
  'sim'      => '&#8764;',
  'spades'   => '&#9824;',
  'sub'      => '&#8834;',
  'sube'     => '&#8838;',
  'sum'      => '&#8721;',
  'sup'      => '&#8835;',
  'sup1'     => '&#185;',
  'sup2'     => '&#178;',
  'sup3'     => '&#179;',
  'supe'     => '&#8839;',
  'szlig'    => '&#223;',
  'tau'      => '&#964;',
  'there4'   => '&#8756;',
  'theta'    => '&#952;',
  'thetasym' => '&#977;',
  'thinsp'   => '&#8201;',
  'thorn'    => '&#254;',
  'tilde'    => '&#732;',
  'times'    => '&#215;',
  'trade'    => '&#8482;',
  'uArr'     => '&#8657;',
  'uacute'   => '&#250;',
  'uarr'     => '&#8593;',
  'ucirc'    => '&#251;',
  'ugrave'   => '&#249;',
  'uml'      => '&#168;',
  'upsih'    => '&#978;',
  'upsilon'  => '&#965;',
  'uuml'     => '&#252;',
  'weierp'   => '&#8472;',
  'xi'       => '&#958;',
  'yacute'   => '&#253;',
  'yen'      => '&#165;',
  'yuml'     => '&#255;',
  'zeta'     => '&#950;',
  'zwj'      => '&#8205;',
  'zwnj'     => '&#8204;',
);
%refParams = (
  'Character'     => '[\x20-\x7E]',
  'Charset'       => 'CDATA+',
  'Charsets'      => 'CDATA+',
  'Class'         => 'CDATA+',
  'Content-Type'  => 'CDATA+',
  'Content-Types' => 'CDATA+',
  'Coords'        => '(?:\d+(?:\s*,\s*|\s+))+\d+',
  'Datetime'      => '\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])(?:T(?:[0-1][0-9]|2[0-3]):(?:[0-5][0-9]):(?:[0-5][0-9])(?:Z|[\+\-][0-5][0-9]:[0-5][0-9]))',
  'LanguageCode'  => '(?i)[A-Z]{1,8}(?:-[A-Z]{1,8})*',
  'LinkTypes'     => 'CDATA+',
  'MediaDesc'     => 'CDATA+',
  'Name'          => 'CDATA+',
  'Span'          => 'NUMBER+',
  'StyleSheet'    => 'CDATA',
  'Text'          => 'CDATA',
  'URI'           => '&URL',
  'URIs'          => '&URLs',
);

1;
