--- parser3/src/www/htdocs/Attic/index.html 2001/12/24 15:29:02 1.513 +++ parser3/src/www/htdocs/Attic/index.html 2002/01/22 09:08:36 1.530 @@ -1,13 +1,30 @@ @auto[] $request:charset[windows-1251] $response:charset[windows-1251] +$response:content-type[$.value[text/html]$.charset[$response:charset]] @main[] +$paint_nodes[^table::set{x y +50 0 +100 50 +} +] + +$square[^image::create(100;100;0x000000)] +^square.line(0;0;100;100;0xFFFFFF) +^square.line(100;0;0;100;0xFFFFFF) + +^square.replace(0x000000;0xFF00FF)[$paint_nodes] +$response:body[^square.gif[]] +^response:body.save[binary;square.gif] + +#^xpath[] +#^ttablesetlang[] #^mail3[] #^ttime[] #^tupper[] #^treplace[] -#^xslt2[] +^xslt2[] #^tcache2[] #$ORIGINS(1) #$t[^table::set{a b} ^table::set{c d}] @@ -16,7 +33,7 @@ $response:charset[windows-1251] #^badvsnprintf[] #^badoracequoting[] #^badconstructors[] -^xloadwrongtable[] +#^xloadwrongtable[] #^xsetwrongtable[] #^if($form:test){y}{n} #^tablecolumnerror[] @@ -84,6 +101,45 @@ $response:charset[windows-1251]
OK +@xpath[] +$xdoc[^xdoc::set{ +

привет

+}] +#^show-xdoc2[$xdoc] +$node[^xdoc.selectSingle[/document/block/p]] +^if(def $node){ + ^if($node is string){ + $node + }{ + ^if($node is hash){ + ^node._count[] + }{ + $node.nodeType + } + } +#$node.firstChild.nodeValue +}{ + node not found +} + + +@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[Александр Петросян ] @@ -132,9 +188,9 @@ $cache[^file:list[.;\.cache^$]] @xslt2[] $xdoc[^xdoc::set{ -

hi

+

привет

}] -#^show-xdoc2[$xdoc] +^show-xdoc2[$xdoc] ^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
@@ -760,24 +816,23 @@ by id: @show-xdoc2[xdoc] ^xdoc.save[out/save.xml; -# $.encoding[windows-1251] +# $.encoding[utf-8] $.method[xml] ] $file[^xdoc.file[ -# $.encoding[windows-1251] + $.encoding[utf-8] $.method[html] ]] ^file.save[text;out/save_file.html] #$response:body[^xdoc.file[ $.media-type[text/paf] ]]
^taint[html][^xdoc.string[
 	$.method[html]
-#	$.version[1.0]
-#	$.encoding[utf-8]
+#	$.encoding[utF-8]
 #  	$.omit-xml-declaration[yes]
-#	$.standalone[yes]
-#	$.doctype-public[-//W3C//DTD XHTML]
-#	$.doctype-system[/a/b/c/]
-#	$.indent[no]
-	$.media-type[text/paf]
+#	$.standalone[no]
+#	-$.doctype-public[-//W3C//DTD XHTML]
+#	-$.doctype-system[/a/b/c/]
+#	$.indent[yes]
+#	$.media-type[text/paf]
 ]]