Annotation of parser3/src/www/htdocs/index.html, revision 1.355
1.312 parser 1: @main[]
1.352 parser 2: #^ttablerem[]
1.349 parser 3: #^pcre[]
1.340 parser 4: #^regexp[]<hr>
1.339 parser 5: #^mail[]
1.334 parser 6: #^exec[]
1.333 parser 7: #^fori[]
1.351 parser 8: #^tconnect[]
1.355 ! parser 9: #^xslt[]
! 10: ^header[]
1.351 parser 11: OK
1.355 ! parser 12:
! 13: @header[]
! 14: $response:refresh[
! 15: $.value[0]
! 16: $.url[http://design.ru]
! 17: ]
1.351 parser 18:
19: @ttablerem[]
20: $table[^table::load[a.cfg]]
21: ^table.menu{$table.a}
22:
23: @tconnect[]
1.353 parser 24: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
1.350 parser 25: $tables[^table::sql{show tables}]
26: #$cols[^tables.columns[]]
27: #$cols.column
28: ^tables.menu{
29: $tables.[Tables_in_test]<br>
30: }
31: }
1.348 parser 32:
33: @pcre[]
34: $s[1 2]
35: ^s.match[\s;ig]{!}
36: #^s.match[\d;ig]{!}
37:
1.339 parser 38:
39: @regexp[]
40: $s[abcÀÁÂ]
41: ^if(^s.match[á][i]){y}{n}
1.338 parser 42:
43: @mail[]
44: #$ORIGINS(1)
45: ^mail:send[
46: $.from[paf@design.ru]
47: $.to[paf@design.ru]
48: $.body[1
49:
50: 2
51:
52:
53: 3]
54: ]
1.332 parser 55:
1.334 parser 56: @exec[]
57: $a[^file::exec[fc.exe;a;b]]
58: $a.status|$a.stderr<hr>
59:
1.332 parser 60: @fori[][i]
61: ^for[i](1;3){... =$i= ...}
1.307 parser 62:
1.312 parser 63: @xslt[]
1.351 parser 64: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
1.347 parser 65: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
1.345 parser 66: #<!DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd">
1.312 parser 67:
68: <people>
1.353 parser 69: <man id="1" èìÿ="word ñëîâî">
1.354 parser 70: <name>P«^;AF B</name>
1.312 parser 71: </man>
72: <man id="2">
73: <name>ÏÈÔ</name>
74: </man>
75: </people>
76: }]
77:
1.331 parser 78: ^show-xdoc2[$xdoc]<hr>
79: #^show-xnode1[$xdoc]<hr>
80: $people[^xdoc.select[*/man]]
1.319 parser 81: #^show1[]
1.331 parser 82: ^show-xnodes1[$people]<hr>
1.316 parser 83: #^people.0.owner.hren[]
1.312 parser 84:
1.331 parser 85: ^show-xnode1[^xdoc.select-single[*/man[2]/name];0;1]<hr>
1.318 parser 86:
1.334 parser 87: by id:
1.335 parser 88: ^show-xnode1[^xdoc.getElementById[1];0;1]
1.334 parser 89: <hr>
90:
91: @show1[array]
92: ^for[i](0;^array._count[]-1){
93: $x[$array.$i]
1.333 parser 94: $x.firstChild.nodeValue:
95: $pattributes[$x.parentNode.attributes]
1.314 parser 96: ^if(^pattributes._count[]){
1.333 parser 97: $pattributes.id.name=$pattributes.id.nodeValue
1.314 parser 98: }
99: <br>
1.312 parser 100: }
1.318 parser 101:
1.331 parser 102: @show-xnodes1[array][i]
1.315 parser 103: ^for[i](0;^array._count[]-1){
1.331 parser 104: ^show-xnode1[$array.$i;0;1]
1.314 parser 105: }
106:
1.333 parser 107: @show-xnode1[x;level;single][l]
108: ^if(def $x){
1.318 parser 109: ^for[l](0;$level-1){ ^; ^; ^; ^;}
1.333 parser 110: ^if($x.nodeType == $xnode:ELEMENT_NODE){
111: <^;$x.nodeName
112: $pairs[$x.attributes]
1.318 parser 113: ^if(def $pairs){
114: $names[^pairs._keys[]]
1.333 parser 115: ^names.menu{$names.key=$pairs.[$names.key].nodeValue }
1.318 parser 116: }
117: >^;
118: }{
1.333 parser 119: [$x.nodeType]
1.318 parser 120: }
121:
1.333 parser 122: ^if(def $x.nodeValue){$x.nodeValue}<br>
123: ^show-xnode1[$x.firstChild]($level+1)
1.318 parser 124: ^if(!$single){
1.333 parser 125: ^show-xnode1[$x.nextSibling]($level)
1.318 parser 126: }
127:
1.333 parser 128: ^if($x.nodeType == $xnode:ELEMENT_NODE){
129: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
1.318 parser 130: }
1.315 parser 131: }
1.320 parser 132:
1.331 parser 133: @show-xdoc2[xdoc]
134: ^xdoc.save[save.xml;
1.347 parser 135: # $.encoding[windows-1251]
1.321 parser 136: $.method[xml]
137: ]
1.331 parser 138: $file[^xdoc.file[
1.347 parser 139: # $.encoding[windows-1251]
1.321 parser 140: $.method[html]
141: ]]
1.322 parser 142: ^file.save[text;save_file.html]
1.354 parser 143: <pre>^taint[^xdoc.string[]]</pre>
1.347 parser 144: # $.encoding[windows-1251]
1.328 parser 145: # $.method[xml]
1.342 parser 146: #]]
E-mail: