--- parser3/src/www/htdocs/Attic/index.html 2001/12/25 09:00:29 1.514
+++ parser3/src/www/htdocs/Attic/index.html 2002/01/11 13:00:52 1.519
@@ -4,7 +4,8 @@ $response:charset[windows-1251]
$response:content-type[$.value[text/html]$.charset[$response:charset]]
@main[]
-^ttablesetlang[]
+^xpath[]
+#^ttablesetlang[]
#^mail3[]
#^ttime[]
#^tupper[]
@@ -86,6 +87,22 @@ $response:content-type[$.value[text/html
OK
+@xpath[]
+$xdoc[^xdoc::set{
+привет
+}]
+#^show-xdoc2[$xdoc]
+$node[^xdoc.selectSingle['1<2']]
+^if(def $node){
+ ^if($node is string){$node}
+ $node.nodeType
+ }
+#$node.firstChild.nodeValue
+}{
+ node not found
+}
+
+
@ttablesetlang[]
$a-tab-b[a b
1 2]
@@ -151,10 +168,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]]
@@ -778,6 +795,7 @@ by id:
}
@show-xdoc2[xdoc]
+^rem{
^xdoc.save[out/save.xml;
# $.encoding[windows-1251]
$.method[xml]
@@ -787,6 +805,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]