--- parser3/src/www/htdocs/Attic/index.html 2001/07/25 12:18:23 1.242
+++ parser3/src/www/htdocs/Attic/index.html 2001/09/11 08:49:22 1.308
@@ -1,46 +1,33 @@
-
-
-
-#################################################################
-# тут описаны следующие макросы :
-# default[val;deflt]
-# ifdef[value;deflt;undef]
-# color[color1;color2]
-# load[file]
-# include[file]
-# trim[string;char]
-# getFileExt[file]
-
-
-
-
-#################################################################
-# старый добрый default
@main[]
-#$response:status[404]
-#$response:location[/inh.html]
-#
-$таблица[^table:set{a b
-1 2
-11 22
-}]
-^$таблица.fields.a=$таблица.fields.a
-^$таблица.a=$таблица.a
-
-$n[]
-=^n.match[sdf][]{123}=
-
-
-=$3=
-
-
-$строка[123]
-^строка.match[(.);g]{($match.1)}
-
-$a{
- $b[1]
-}
-^$b=$b
-^$a!$a
-^$b=$b
-
+#^testdom3[]
+#^testdom2[]
+#^testdom1[]
+^testdom0[]
+OK
+
+@testdom3[]
+$dom[^dom::load[test.xml]]
+$dom[^dom.xslt[test.xsl;$.param1(48)]]
+$dom[^dom.xslt[test.xsl;$.param1(48)]]
+
+@testdom2[]
+$dom[^dom::load[test.xml]]
+#^dom.save[$.encoding[windows-1251];write.xml]
+#^dom.save[;write.xml]
+^dom.save[$.encoding[windows-1251] $.method[xml];write.xml]
+^dom.save[$.encoding[windows-1251] $.method[html];write.html]
+^dom.save[$.encoding[windows-1251] $.method[text];write.txt]
+
+@testdom1[]
+$dom[^dom::load[test.xml]]
+$dom[^dom.xslt[test.xsl;$.param1(48)]]
+$response:body[^dom.file[windows-1251]]
+
+@testdom0[]
+$dom[^dom::load[test.xml]]
+^dom.save[$.encoding[windows-1251];write.xml]
+^dom.string[$.encoding[windows-1251]]
+$файл[^dom.file[$.encoding[windows-1251]]]
+^файл.save[binary;writefile.xml]
+$response:body[$файл]
+OK
\ No newline at end of file