|
|
| version 1.241, 2001/07/25 11:22:47 | version 1.313, 2001/09/17 16:49:15 |
|---|---|
| Line 1 | Line 1 |
| @main[] | |
| ^xslt[] | |
| @xslt[] | |
| $dom[^dom::set{<?xml version="1.0" encoding="windows-1251"?> | |
| <people> | |
| ################################################################# | <man id="1"> |
| # тут описаны следующие макросы : | <name>PAF</name> |
| # default[val;deflt] | </man> |
| # ifdef[value;deflt;undef] | <man id="2"> |
| # color[color1;color2] | <name>ПИФ</name> |
| # load[file] | </man> |
| # include[file] | </people> |
| # trim[string;char] | |
| # getFileExt[file] | |
| ################################################################# | |
| # старый добрый default | |
| @main[] | |
| #$response:status[404] | |
| #$response:location[/inh.html] | |
| #<hr> | |
| $таблица[^table:set{a b | |
| 1 2 | |
| 11 22 | |
| }] | }] |
| ^$таблица.fields.a=$таблица.fields.a<br> | |
| ^$таблица.a=$таблица.a<br> | |
| <hr> | |
| $n[] | |
| =^n.match[sdf][]{123}= | |
| <hr> | |
| =$3= | $people[^dom.xpath[/people/man/name]] |
| <hr> | |
| $строка[123] | ^for[i](0;^people._count[]-1){ |
| ^строка.match[(.);g]{($match.1)} | z$people.$i.first-child.value<br> |
| <hr> | |
| $a{ | |
| $b[1] | |
| } | } |
| ^$b=$b<br> | OK |
| ^$a!$a<br> | |
| ^$b=$b<br> | |
| <hr> | |