|
|
| version 1.6, 2004/02/18 13:07:55 | version 1.32, 2004/03/19 12:23:04 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| $request:charset[UTF-8] | $soft(1) |
| #$response:charset[UTF-8] | ^cache[/cache/soft-$soft.id](86400){ |
| ^math:random(1000); | |
| } | |
| #^xdoc::load[a.xml] | |
| @main2[] | |
| ^connect[odbc://DSN=test_dbf]{ | |
| ^int:sql{select count(*) from test} | |
| } | |
| @mainx[] | |
| $request:charset[windows-1251] | |
| $response:charset[windows-1251] | $response:charset[windows-1251] |
| $response:content-type[$.value[text/html]$.charset[$response:charset]] | |
| $xdoc[^xdoc::create{<?xml version="1.0" encoding="$request:charset"?> | |
| <doc> | |
| исходный | |
| </doc> | |
| }] | |
| $xdoc[^xdoc.transform[_bug.xsl]] | |
| ^xdoc.string[] | |
| ^xdoc.save[_bug.xml;$.encoding[koi8-r]] | |
| <hr> | |
| $request:charset/$response:charset | |
| $response:content-type[text/html] | |
| $xdoc[^xdoc::load[_bug.xml]] | |
| #^xdoc.string[] | |
| $xdoc.search-namespaces.x[http://pif.design.ru/] | |
| $nodes[^xdoc.select[//x:second]] | |
| ^nodes._count[] | |
| @main[] | |
| ^bug.bug[] | |
| @main[] | |
| $d[^date::unix-timestamp(1079695550.808)] | |
| #$d[^date::unix-timestamp(1079695983.321)] | |
| ^d.sql-string[] | |
| @main[] | |
| ^date::now[] | |