--- parser3/operators.txt 2002/06/14 11:59:12 1.45
+++ parser3/operators.txt 2002/06/20 13:39:56 1.48
@@ -537,6 +537,11 @@ Xhashfile
выполняется код
разблокируется
Xchmod[...] НЕТ И НЕ БУДЕТ, ЧТОБЫ НЕ МОГЛИ СДЕЛАТЬ executable и запустить, даже если ftp запрещает chmod.
+ ^file:dirname[/a/some.tar.gz]=/a
+ ^file:dirname[/a/b/]=/a
+ ^file:basename[/a/some.tar.gz]=some.tar.gz
+ ^file:justname[/a/some.tar.gz]=some.tar
+ ^file:justext[/a/some.tar.gz]=gz
math
!$math:PI
@@ -602,7 +607,7 @@ xdoc(xnode)
!равно текущей кодировке выходной страницы,
$response:charset
::sql{...}
- !::create{} старое имя 'set'
+ !::create{} старое имя 'set'
!::create[qualifiedName]
!::load[file.xml]
!.transform[rules.xsl][[params hash]] выдаёт dom
@@ -623,9 +628,9 @@ xdoc(xnode)
!media-type = string />
!параметры передаются как есть, не xpath выражения
- !.string[output options]
- !.save[file.xml;output options] с шапкой
- !.file[output options] = file
+ !.string[[output options]]
+ !.save[file.xml[;output options]] с шапкой
+ !.file[[output options]] = file
output options идентичны атрибутам xsl:output
[исключение: игнорируется cdata-section-elements, нужно будет, сделаю]
выдаёт media-type при подстановке $response:body[сюда]
@@ -662,10 +667,15 @@ xdoc(xnode)
true if the attribute received its value explicitly in the XML document,
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.
+ !$attribute_node.name
+ !$attribute_node.value
$text_node/cdata_node/comment_node.substringData
!$pi_node.target = target of this processing instruction
XML defines this as being the first token following the markup
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.
readonly attribute DocumentType doctype
readonly attribute DOMImplementation implementation
@@ -705,9 +715,9 @@ xdoc(xnode)
!^node.select[xpath/query/expression] = 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
- !^node.selectNumber[xpath/query/expression] = double if any
- !^node.selectString[xpath/query/expression] = string 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
!error codes(пока придут как текст в случае соответствующих ошибок):
INDEX_SIZE_ERR