--- parser3/src/www/htdocs/Attic/index.html 2002/01/11 12:24:27 1.517
+++ parser3/src/www/htdocs/Attic/index.html 2002/01/25 11:22:52 1.538
@@ -4,13 +4,15 @@ $response:charset[windows-1251]
$response:content-type[$.value[text/html]$.charset[$response:charset]]
@main[]
-^xpath[]
+#^xmloutattrwithoutvalue[]
+#^precisionProblem[]
+#^xpath[]
#^ttablesetlang[]
#^mail3[]
#^ttime[]
#^tupper[]
#^treplace[]
-#^xslt2[]
+^xslt2[]
#^tcache2[]
#$ORIGINS(1)
#$t[^table::set{a b} ^table::set{c d}]
@@ -87,14 +89,41 @@ $response:content-type[$.value[text/html
OK
+@xmloutattrwithoutvalue[]
+#$ORIGINS(1)
+$doc[^xdoc::set{zz}]
+$doc[^doc.transform[global.xsl]]
+=^taint[html][^doc.string[$.method[html]]]=
+
+
+
+@precisionProblem[]
+$a[123456789012345678901234567890]
+$b(^a.double[])
+^b.format{%.20E}
+
+^eval(2*2)
+
@xpath[]
$xdoc[^xdoc::set{
привет
}]
#^show-xdoc2[$xdoc]
$node[^xdoc.selectSingle[/document/block/p]]
-$node.firstChild.nodeValue
-
+^if(def $node){
+ ^if($node is string){
+ $node
+ }{
+ ^if($node is hash){
+ ^node._count[]
+ }{
+ $node.nodeType
+ }
+ }
+#$node.firstChild.nodeValue
+}{
+ node not found
+}
@ttablesetlang[]
@@ -165,7 +194,7 @@ $xdoc[^xdoc::set{привет
}]
^show-xdoc2[$xdoc]
-#^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
+^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
@@ -789,27 +818,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]
]]