Diff for /parser3/operators.ru.txt between versions 1.40 and 1.47

version 1.40, 2002/06/03 15:02:40 version 1.47, 2002/06/14 15:22:45
Line 538  Xhashfile Line 538  Xhashfile
         разблокируется          разблокируется
     Xchmod[...] НЕТ И НЕ БУДЕТ, ЧТОБЫ НЕ МОГЛИ СДЕЛАТЬ executable и запустить, даже если ftp запрещает chmod.      Xchmod[...] НЕТ И НЕ БУДЕТ, ЧТОБЫ НЕ МОГЛИ СДЕЛАТЬ executable и запустить, даже если ftp запрещает chmod.
   
 !math  math
     !$math:PI      !$math:PI
     !^math:round floor ceiling       !^math:round floor ceiling 
     !^math:trunc frac      !^math:trunc frac
Line 548  Xhashfile Line 548  Xhashfile
     !^math:degrees radians      !^math:degrees radians
     !^math:pow sqrt      !^math:pow sqrt
     !^math:random(ширина диапазона)      !^math:random(ширина диапазона)
       ^math:{C2C0983C-E26E-4169-BD07-77ECE9405BA5}
   
   
 !date  !date
     !время типа time можно использовать в выражениях, подставляет       !время типа time можно использовать в выражениях, подставляет 
Line 558  Xhashfile Line 560  Xhashfile
     !^date::now(смещение в днях) выдаёт сейчас+смещение      !^date::now(смещение в днях) выдаёт сейчас+смещение
     !^date::create(дней с epoch) // старое имя set      !^date::create(дней с epoch) // старое имя set
     !^date::create(year;month[;day[;hour[;minute[;second]]]]) // старое имя set      !^date::create(year;month[;day[;hour[;minute[;second]]]]) // старое имя set
     ^date::sql-create[дата в формате %Y-%m-%d %H:%M:%S]      !^date::create[дата в формате %Y-%m-%d %H:%M:%S]
         для удобного создания по значению из базы          для удобного создания по значению из базы
 <<<<<<< operators.txt  
         формат1: %Y[-%m[-%d[ %H[:%M[:%S]]]]]          формат1: %Y[-%m[-%d[ %H[:%M[:%S]]]]]
         формат2: %H:%M[:%S]          формат2: %H:%M[:%S]
     !$date.year month day  hour minute second  weekday todo:yearday      !$date.year month day  hour minute second  weekday todo:yearday
         read-only          read-only
 =======  
     !$date.year month day  hour minute second  weekday read-only      
 >>>>>>> 1.34  
     !^date.roll[year|month|day](+-смещение) сдвигает дату      !^date.roll[year|month|day](+-смещение) сдвигает дату
     !^date.sql-string[] %Y-%m-%d %H:%M:%S      !^date.sql-string[] %Y-%m-%d %H:%M:%S
         where published='$дата.sql-string[]'          where published='$дата.sql-string[]'
Line 604  xdoc(xnode) Line 602  xdoc(xnode)
     !равно текущей кодировке выходной страницы,      !равно текущей кодировке выходной страницы,
         $response:charset          $response:charset
     ::sql{...}      ::sql{...}
     !::create{<string/>} старое имя 'set'      !::create{<?xml?><string/>} старое имя 'set'
     !::create[qualifiedName]      !::create[qualifiedName]
     !::load[file.xml]      !::load[file.xml]
     !.transform[rules.xsl][[params hash]] выдаёт dom      !.transform[rules.xsl][[params hash]] выдаёт dom
Line 625  xdoc(xnode) Line 623  xdoc(xnode)
         !media-type = string />           !media-type = string /> 
         !параметры передаются как есть, не xpath выражения          !параметры передаются как есть, не xpath выражения
   
     !.string[output options]      !.string[[output options]]
     !.save[file.xml;output options] с шапкой      !.save[file.xml[;output options]] с шапкой
     !.file[output options] = file      !.file[[output options]] = file
         output options идентичны атрибутам xsl:output           output options идентичны атрибутам xsl:output 
             [исключение: игнорируется cdata-section-elements, нужно будет, сделаю]              [исключение: игнорируется cdata-section-elements, нужно будет, сделаю]
         выдаёт media-type при подстановке $response:body[сюда]          выдаёт media-type при подстановке $response:body[сюда]
Line 664  xdoc(xnode) Line 662  xdoc(xnode)
         true if the attribute received its value explicitly in the XML document,           true if the attribute received its value explicitly in the XML document, 
         or if a value was assigned programatically with the setValue function.          or if a value was assigned programatically with the setValue function.
         false if the attribute value came from the default value declared in the document's DTD.           false if the attribute value came from the default value declared in the document's DTD. 
       !$attribute_node.name
       !$attribute_node.value
     $text_node/cdata_node/comment_node.substringData      $text_node/cdata_node/comment_node.substringData
     !$pi_node.target = target of this processing instruction      !$pi_node.target = target of this processing instruction
         XML defines this as being the first token following the markup           XML defines this as being the first token following the markup 
         that begins the processing instruction.          that begins the processing instruction.
       !$pi_node.data = The content of this processing instruction
           This is from the first non white space character after the target 
           to the character immediately preceding the ?>. 
     document_node.      document_node.
         readonly attribute DocumentType doctype          readonly attribute DocumentType doctype
         readonly attribute DOMImplementation implementation              readonly attribute DOMImplementation implementation    
Line 694  xdoc(xnode) Line 697  xdoc(xnode)
     !void removeAttribute(in DOMString name) raises(DOMException)      !void removeAttribute(in DOMString name) raises(DOMException)
     !Attr getAttributeNode(in DOMString name)      !Attr getAttributeNode(in DOMString name)
     !Attr setAttributeNode(in Attr newAttr) raises(DOMException)      !Attr setAttributeNode(in Attr newAttr) raises(DOMException)
     !/*Attr*/ removeAttributeNode(in Attr oldAttr) raises(DOMException)      !Attr removeAttributeNode(in Attr oldAttr) raises(DOMException)
     !NodeList getElementsByTagName(in DOMString name)      !NodeList getElementsByTagName(in DOMString name)
     !void normalize()      !void normalize()
   
Line 707  xdoc(xnode) Line 710  xdoc(xnode)
     !^node.select[xpath/query/expression] = array of nodes,       !^node.select[xpath/query/expression] = array of nodes, 
         empty array if nothing found          empty array if nothing found
     !^node.selectSingle[xpath/query/expression] = first node if any      !^node.selectSingle[xpath/query/expression] = first node if any
     !^node.selectBool[xpath/query/expression] = bool if any      !^node.selectBool[xpath/query/expression] = bool if any or die
     !^node.selectNumber[xpath/query/expression] = double if any      !^node.selectNumber[xpath/query/expression] = double if any or die
     !^node.selectString[xpath/query/expression] = string if any      !^node.selectString[xpath/query/expression] = string if any or die
   
     !error codes(пока придут как текст в случае соответствующих ошибок):      !error codes(пока придут как текст в случае соответствующих ошибок):
         INDEX_SIZE_ERR          INDEX_SIZE_ERR
Line 791  xdoc(xnode) Line 794  xdoc(xnode)
     кучи auto.p и запрашиваемого документа:      кучи auto.p и запрашиваемого документа:
         !parser3.conf           !parser3.conf 
             cgi:               cgi: 
                 1. или полный путь из переменной окружения HTTP_PARSER_ROOT_CONFIG                  1. или полный путь из переменной окружения CGI_PARSER_SITE_CONFIG
                    или configure sysconfdir|windows directory   
                 2. или полный путь из переменной окружения HTTP_PARSER_SITE_CONFIG  
                    или рядом с бинарником parser'а                      или рядом с бинарником parser'а 
             isapi: windows directory              isapi: windows directory
             apache module:               apache module: 
                 1) ParserRootConfig [httpd.conf only]                   1) ParserConfig [can be in .htaccess]
                 2) ParserSiteConfig [can be in .htaccess]  
         !auto.p вниз от DOCUMENT_ROOT/ по дереву до каталога с обрабатываемым файлом включительно          !auto.p вниз от DOCUMENT_ROOT/ по дереву до каталога с обрабатываемым файлом включительно
     класс собирается из всех этих файлов, последующие становятся родителями предыдущих      класс собирается из всех этих файлов, последующие становятся родителями предыдущих
     имя последнего загруженного MAIN, имён у предыдущих нет      имя последнего загруженного MAIN, имён у предыдущих нет
Line 823  xdoc(xnode) Line 823  xdoc(xnode)
     !parser.runtime       ^if(0).                параметры (больше/меньше, чем нужно, не тех типов, ...)      !parser.runtime       ^if(0).                параметры (больше/меньше, чем нужно, не тех типов, ...)
     !number.zerodivision  ^eval(1/0) ^eval(1%0)      !number.zerodivision  ^eval(1/0) ^eval(1%0)
     !number.format        ^eval(abc*5)      !number.format        ^eval(abc*5)
       !file.lock                                                        shared/exclusive lock error
     !file.missing         ^file:delete[delme]                         not found      !file.missing         ^file:delete[delme]                         not found
     !file.access          ^table::load[.]                             no rights      !file.access          ^table::load[.]                             no rights
     !image.format         ^image::measure[index.html]                 not gif/jpg      !image.format         ^image::measure[index.html]                 not gif/jpg

Removed from v.1.40  
changed lines
  Added in v.1.47


E-mail: