--- parser3/src/www/htdocs/Attic/index.html 2001/12/15 21:28:23 1.501
+++ parser3/src/www/htdocs/Attic/index.html 2002/01/11 12:39:05 1.518
@@ -1,4 +1,14 @@
+@auto[]
+$request:charset[windows-1251]
+$response:charset[windows-1251]
+$response:content-type[$.value[text/html]$.charset[$response:charset]]
+
@main[]
+^xpath[]
+#^ttablesetlang[]
+#^mail3[]
+#^ttime[]
+#^tupper[]
#^treplace[]
#^xslt2[]
#^tcache2[]
@@ -9,7 +19,7 @@
#^badvsnprintf[]
#^badoracequoting[]
#^badconstructors[]
-^xloadwrongtable[]
+#^xloadwrongtable[]
#^xsetwrongtable[]
#^if($form:test){y}{n}
#^tablecolumnerror[]
@@ -77,6 +87,60 @@
OK
+@xpath[]
+$xdoc[^xdoc::set{
+привет
+}]
+#^show-xdoc2[$xdoc]
+$node[^xdoc.selectSingle[/document/block/p]]
+^if(def $node){$node.nodeType}{node not found}
+#$node.firstChild.nodeValue
+
+
+@ttablesetlang[]
+$a-tab-b[a b
+1 2]
+
+$t[^table::set{$a-tab-b}]
+=$t.a=
+
+
+$t[^table::set[nameless]{^taint[$a-tab-b]}]
+=$t.0=
+
+
+$t[^table::set{^untaint{^taint[$a-tab-b]}}]
+=$t.a=
+
+#^t.append{1 2}
+
+@mail3[]
+^mail:send[
+ $.from[Александр Петросян ]
+ $.to[Александр Петросян ]
+ $.subject[проверка4]
+ $.body[
+ $.text[
+ $.content-type[$.value[text/plain] $.charset[windows-1251]]
+ $.body[проверка]
+ ]
+ $.attachment[
+ $.value[^file::load[text;index.html]]
+ $.file-name[привет всем.html]
+ ]
+ ]
+]
+
+
+@ttime[]
+$now[^date::now[]]
+$now.hour:$now.minute
+
+@tupper[]
+$t[abcABCабвАБВ]
+$t
+^t.upper[]
+
@treplace[]
$copy-paste-clean[^table::set{a b
. _
@@ -98,10 +162,10 @@ $cache[^file:list[.;\.cache^$]]
@xslt2[]
$xdoc[^xdoc::set{
-hi
+привет
}]
-#^show-xdoc2[$xdoc]
-^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
+^show-xdoc2[$xdoc]
+#^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
@@ -165,6 +229,7 @@ $bred[^int::int[]]
@xloadwrongtable[]
$constr[^xdoc::load[wrongtable.xml]]
+^show-xdoc2[$constr]
@xsetwrongtable[]
$constr[^xdoc::set{
@@ -299,14 +364,12 @@ $dom_created_in_air[^xdoc::create[doc]]
@tcache[]
-^rem{
#^hashfile:clear[cache]
$code[^hashfile::open[$DB_HOME;cache]]
^code.cache[key](2){
^math:random(100)
# ^code.delete[]
}
-}
@thashfileexp[]
$hf[^hashfile::open[$DB_HOME;hashfile]]
@@ -726,6 +789,7 @@ by id:
}
@show-xdoc2[xdoc]
+^rem{
^xdoc.save[out/save.xml;
# $.encoding[windows-1251]
$.method[xml]
@@ -735,9 +799,10 @@ $file[^xdoc.file[
$.method[html]
]]
^file.save[text;out/save_file.html]
+}
#$response:body[^xdoc.file[ $.media-type[text/paf] ]]
^taint[html][^xdoc.string[
-# $.method[html]
+ $.method[html]
# $.version[1.0]
# $.encoding[utf-8]
# $.omit-xml-declaration[yes]
@@ -748,4 +813,3 @@ $file[^xdoc.file[
$.media-type[text/paf]
]]
-