--- parser3/src/www/htdocs/Attic/index.html 2002/01/10 15:41:50 1.516
+++ parser3/src/www/htdocs/Attic/index.html 2002/01/21 17:06:35 1.528
@@ -4,14 +4,14 @@ $response:charset[windows-1251]
$response:content-type[$.value[text/html]$.charset[$response:charset]]
@main[]
-$wl(10)
-^while($wl>0){
-
$wl негритят пошли купаться в море. Один из них утоп, ему срубили гроб, и вот вам результат -
- ^wl.dec(1)
- $wl негритят.
-}
-
+передаетсЯ
+index1.html?cost=252333.22
+
+принимаетсЯ
+^form:cost.double[]
+
+#^xpath[]
#^ttablesetlang[]
#^mail3[]
#^ttime[]
@@ -94,6 +94,28 @@ $wl(10)
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]
@@ -162,7 +184,7 @@ $xdoc[^xdoc::set{привет
}]
^show-xdoc2[$xdoc]
-#^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
+^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
@@ -786,27 +808,24 @@ by id:
}
@show-xdoc2[xdoc]
-^rem{
^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]
]]