|
|
| version 1.36, 2001/03/22 17:13:53 | version 1.309, 2001/09/11 09:14:04 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| $env:REMOTE_ADDR<BR> | ^testdom4[] |
| #^testdom3[] | |
| ^rem{ | #^testdom2[] |
| $response:body[] | #^testdom1[] |
| $response:location[http://parser3/123] | #^testdom0[] |
| } | OK |
| @testdom4[] | |
| ^$root_test=$root_test !<BR> | $dom[^dom::set[<?xml version="1.0" encoding="windows-1251"?> |
| ^$site_test=$site_test !<BR> | |
| ^${cookie:âîò}=${cookie:âîò}?<BR> | <doc>testing ïðîâåðêà ÏÐÎÂÅÐÊÀ</doc> |
| ^$request:query=$request:query<BR> | ]] |
| ^$request:uri=$request:uri<BR> | $response:body[^dom.file[$.encoding[windows-1251]]] |
| <form method=post> | @testdom3[] |
| (^$form:name=$form:name)<BR> | $dom[^dom::load[test.xml]] |
| <input name=name value="^default[$form:name;íå çíàþ]"> | $dom[^dom.xslt[test.xsl;$.param1(48)]] |
| <input type=submit> | $dom[^dom.xslt[test.xsl;$.param1(48)]] |
| </form> | |
| @testdom2[] | |
| @default[test;def] | $dom[^dom::load[test.xml]] |
| ^if(^test.length[]){$test}{$def} | #^dom.save[$.encoding[windows-1251];write.xml] |
| #^dom.save[;write.xml] | |
| @exception[origin;source;comment;type;code] | ^dom.save[$.encoding[windows-1251] $.method[xml];write.xml] |
| <body bgcolor=black> | ^dom.save[$.encoding[windows-1251] $.method[html];write.html] |
| <font color=white> | ^dom.save[$.encoding[windows-1251] $.method[text];write.txt] |
| ERROR: | |
| ^if(def $source){$origin '$source'} | @testdom1[] |
| ${comment}. | $dom[^dom::load[test.xml]] |
| ^if(def $type){type=$type} | $dom[^dom.xslt[test.xsl;$.param1(48)]] |
| ^if(def $code){code=$code} | $response:body[^dom.file[$.encoding[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 | |