--- parser3/src/www/htdocs/Attic/index.html 2001/12/26 08:46:13 1.515
+++ parser3/src/www/htdocs/Attic/index.html 2002/01/14 17:48:58 1.522
@@ -4,6 +4,7 @@ $response:charset[windows-1251]
$response:content-type[$.value[text/html]$.charset[$response:charset]]
@main[]
+#^xpath[]
#^ttablesetlang[]
#^mail3[]
#^ttime[]
@@ -86,6 +87,28 @@ $response:content-type[$.value[text/html
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]
@@ -151,9 +174,9 @@ $cache[^file:list[.;\.cache^$]]
@xslt2[]
$xdoc[^xdoc::set{
-hi
+привет
}]
-#^show-xdoc2[$xdoc]
+^show-xdoc2[$xdoc]
^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
@@ -778,6 +801,7 @@ by id:
}
@show-xdoc2[xdoc]
+^rem{
^xdoc.save[out/save.xml;
# $.encoding[windows-1251]
$.method[xml]
@@ -787,6 +811,7 @@ $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]