--- parser3/operators.txt 2004/03/05 10:16:49 1.163 +++ parser3/operators.txt 2004/03/10 10:04:30 1.168 @@ -887,12 +887,13 @@ xdoc(xnode) !NodeList getElementsByTagNameNS(in DOMString namespaceURI, in DOMString localName); !XPath: - !^node.select[xpath/query/expression] = array of nodes, + !^node.select[xpath/query/expression][[namespaces]] = array of nodes, empty array if nothing found - !^node.selectSingle[xpath/query/expression] = first node if any - !^node.selectBool[xpath/query/expression] = bool if any or die - !^node.selectNumber[xpath/query/expression] = double if any or die - !^node.selectString[xpath/query/expression] = string if any or die + !^node.selectSingle[xpath/query/expression][[namespaces]] = first node if any + !^node.selectBool[xpath/query/expression][[namespaces]] = bool if any or die + !^node.selectNumber[xpath/query/expression][[namespaces]] = double if any or die + !^node.selectString[xpath/query/expression][[namespaces]] = string if any or die + ![[namespaces]] hash, where keys=prefixes, values=urls !error codes(пока придут как текст в случае соответствующих ошибок): INDEX_SIZE_ERR @@ -1019,18 +1020,28 @@ console операторов/методов, приведших к ошибке. !при загрузке файла (file::load, table::load, xdoc::load) можно указать такое имя файла: - !http://domain/document?params + !http://domain/document[?params<> создает http.status ошибку, !это можно отключить, передав !$.any-status(1) !$.charset[кодировка удалённых докуметов по-умолчанию] << если сервер вернёт content-type:charset=ОНА_ПЕРЕБИВАЕТ + !$.user[пользователь] + !$.password[пароль] !file::load в дополнительные поля записывает !ПОЛЕ:значение (имена полей ответа заглавными буквами) !tables << хеш их ПОЛЕ->table с единственным столбцом "value".