
                          XML HRC Pack
                            Ver. 1.04

               Copyright (c) ᠭ ⬠; 2001
                  Email: gutman@novosoft-us.com

         HRC-䠩  ᪨ ᨭ⠪ XML  XSL
                 Colorer 4ever (c) Cail Lomecb
                 FAR Manager (c) Eugene Roshal


 1. 饥 ᠭ

    XML: ᯮ XML- ( ⮬ )
           ਡ, 䨪 ࠭    樨,
         ᮡ ਡ  xml:space  xml:lang, 뫪 
         魮 (entities) , 筮 , ਨ,
         ᥪ樨 CDATA,  ࠢ (processing instructions)
          । ⨯ 㬥 (DTD).

          쭮 ⢨⥫  襭 ᨭ⠪.
         ਬ, ᯮ ⠪ "",  訡筮
         祭 ਡ xml:space.

    XSL: ᯮ   XSL-   ਡ,
          ⠪  FO-⮢.

           ਡ  XSL- ᯮ
         ࠪ   ⮣ ਡ ᨭ⠪ 祭
         (XPath/XSLT-ࠦ, QName, NCName,  ..).

         ᯮ 蠡 祭 ਡ⮢ (attribute value
         templates), 祬 ⮫쪮 ⠬,   ⨬.

          XPath/XSLT-ࠦ ᯮ  㧫, ,
         ப ⠭, ।  㭪樨 ( ⮬ ୮
         ᪮  ), ६, ⭮襭  樨
          .. -- ᫮,   ᨭ⠪᪨ 樨.

           訡     ਡ
          ᨭ⠪᪠ 訡  ⨯஢ 祭
         ⠭⭮ ਡ   XPath/XSLT-ࠦ 
          襭 ᪨,  ᯥ樠쭮 ।ᬮ७
         梥⮢ 뤥 訡.

     ᭠ ⭥ ⤥쭮 ࠨ 梥⮢ ॣ
    (䠩 "xml_colors.hrc"). ।  , ਬ, ॣ 
    梥⮢ 뤥 ⤥ ࠣ⮢ 뢠 ⥣
     .. --  , ᪠,  "$"  뫪  ६.

     15 ॣ, ன   ॣ㫨஢
    ⢨⥫쭮   ࠧࠧ 訡 .

    ன ⨯ ॣ ਥ  XSLT-蠡
        ᯨ᮪ 㭪権, 뢮  
     譨 㫥 ->  -> ᮪ 㭪権
    (Plugin commands -> Colorer -> List functions).

    樠쭠 奬 "xmlCustom"   梥⮢
    뤥  "६" ⮪ (ਬ, "?!").

    ⠫쭮 ᠭ  ࠨ ॣ   䠩
    "xml_colors.txt".


 2. ⠭ 

    ()   ४ਨ "Far\Plugins\Colorer\hrc\xml"
        ४   "xpack"     
        ᮤন   ⮫쪮  HRC-䠩 "xml.hrc",
        "xml_colors.hrc", "xsl.hrc", "xsl_elements.hrc".

    ()  ᯮ㥬   䠩 (Base file) Colorer'
        ( 㬮砭  "Far\Plugins\Colorer\hrc\colorer.hrc")
          ப: 

          <load name="xml/xml.hrc"/>
          <load name="xml/xsl.hrc"/>

         ᮮ⢥⢥

          <load name="xml/xpack/xml.hrc"/>
          <load name="xml/xpack/xsl.hrc"/>

         ப ᯮ   <type descr="xml" ...>
         <type descr="xsl" ...> ᮮ⢥⢥.

    () ᫨  ᯮ﫨 㭪 ()  ()  FAR',  直
        砩 १㧨 Colorer   ன  
         FAR. ( 室, ਬ,  ⮬ 砥,
        ᫨  ।஢ ⥬ 뫪 (hard link) 
        䠩, ᯮ  ⥬ ४਩ Colorer'.)

    () 㧨  ஥  FAR । -
        XML-䠩 (  , XSL-䠩)  㡥  ⮬,
         ᪠ ᨭ⠪   㧭.

    () 㣠  ⠭ 梥⮢, 㧨  ।
        䠩 "xml_colors.hrc" , 뢠  "xml_colors.txt",
         梥⮢ ன  ᢮ .


 3.   ன  ᯮ짮

    * 猪 ࢮ砫 梥⮢ ன   
        ᫨誮 묨.  ᫮ ⥬, ,
       ,  ᥣ  ࠦ   ,
       -,  ᭮   ᮭ ன
       䠩 樠権 (Assigns file) Colorer' ( 㬮砭
       "Far\Plugins\Colorer\hrd\console\default.hrd"),
      , ᮬ, ⫨  ஥  .

       梥⮢ ன 뭥ᥭ  ⤥ 䠩
      "xml_colors.hrc". ᯥਬ     猪
      ᬮ  ࠨ饥  ⠭ 梥⮢.

    * ,     ⪫ 
      梥⮢ 뤥.  ⮩ ᯮᮡ ᤥ  --
       㤠 ᮮ⢥騥 ப  䠩
      "xml_colors.hrc".     㤠 ப
        ஢ (  "<!--"  "-->")
        砩, ᫨    -
         뤥.

    *  ⪫砩 梥⮢ 뤥 訡 権
       ࠭   祭 "dError", ᫨  ,
      ⮡ Colorer 㫥 ᫥   
      ४ W3C.  뢠,  ᯨ᮪ 㦥
      ᨭ⠪᪨ 訡  㢨  
       譨 㫥 ->  -> ᮪ 訡
      (Plugin commands -> Colorer -> Find errors).

    *   ,  ⪫祭   
      梥⮢ ஥   ⮬᪮ 
        㣨 ஥, ⠪   䠩
      "xml_colors.hrc"  ४ 뫪.

    * ࠩ । 祭 ஥ "xmlAttrValue"
       "xslXPath" ⠪, ⮡   ࠧ 梥 䮭.
          ⫨  ப 祭
       XPath/XSLT-ࠦ.

    * ᯮ㥬  奬  쭮 ஬,
         ⥫쭮 ᪠  ᪮ 梥⪨.
       ᮦ, ⮥ ⪫祭 ஥  䠩
      "xml_colors.hrc"  㢥稢  ᪮.

      ᪮쪮  ᪮ 梥⪨  ,
       䠩 "xsl_elements.hrc".   ⮨
      ।⢥ ।஢  䠩.  ⮣
      ᤥ ᫥饥.

        () ३  ४ "generator" .

        ()  १ࢭ  䠩 "xsl_elements.xml"
            (ਬ,   "xsl_elements.old.xml").

        ()  䠩 "xsl_elements.xml".

        ()  batch-䠩 "generate_hrc.bat".
             १  ⮩  ४ਨ 
             䠩 "xsl_elements.hrc".

        () ६ ᮧ 䠩 "xsl_elements.hrc"
             ४ "Far\Plugins\Colorer\hrc\xml\xpack",
                䠩.

        ()  直 砩 १㧨 Colorer
             १ FAR.
      
       "xsl_elements.xml", 室騩  ४ਨ "generator"
      , ࠦ ᯥ䨪 XSLT 1.0 (W3C Recommendation;
      http://www.w3.org/TR/1999/REC-xslt-19991116).
       ᮤন ᯨ᮪ XSLT-⮢   ॣ஢
      ਡ⮢. 祭  ਡ  ⮬ 䠩 
       ᮮ⢥饣 ⨯ 祭 ("Expr", "QName"  ..).

       㧫  ୥  <elements> ॢ
      ᮮ⢥騩   ⥣ਨ XSL-⮢
       ⥣  (訡) XSL-⮢,
      ⮬ 㤠  㧫  ⮨.  ᪮ ᪨
      ᪠뢠 㤠  ᠬ 㧫,   ਡ⮢:
      㤠 ਡ ॢ   ⥣
      ॣ஢ ਡ⮢, ⪫ ᮮ⢥騩
        祭.

       祭 ॣ "xslErrAttrName" ( 㬮砭
       ࠢ "dError"), ⮡ 㤠  ਡ
       ᯮ  訡.

    * ᯮ ᢥ ᨭ⠪   ࠢ筨
       XSLT. ਬ, ᫨   㧭,    祭
       ਡ ᯮ짮 蠡 (attribute value
      templates),      ᪮ "{}"
       ᬮ  梥 ⮩ 樨: ᫨  ᬥ
       梥 ࠦ, 蠡 ⨬,  -- .

    * ᫨    - 砭  ।
        XML HRC Pack, 令   ஬
      (ᠭ ⬠, gutman@novosoft-us.com).  ᪫祭,
         ᫥  ,    
      ⥭  ᫥饩 ᨨ.
